:root{color-scheme:light;--ink:#172033;--muted:#697386;--accent:#215e99;--accent-dark:#153d64;--accent-soft:#e8f1fa;--nav:#153d64;--line:#d6e2ee;--paper:#fff;--bg:#f3f6fa;--danger:#c43c3c;--warning:#b66a00;--success:#197244;font-family:Inter,Segoe UI,Arial,sans-serif;font-synthesis:none}*{box-sizing:border-box}html,body,#app{margin:0;min-height:100%;background:var(--bg);color:var(--ink)}button,input,select,textarea{font:inherit}button{cursor:pointer}.app-shell{display:grid;grid-template-columns:248px 1fr;min-height:100vh}.sidebar{position:sticky;top:0;height:100vh;background:var(--nav);color:#fff;padding:22px 14px;display:flex;flex-direction:column}.brand{display:flex;align-items:center;gap:12px;padding:0 8px 22px;border-bottom:1px solid #ffffff20}.brand-mark{display:grid;place-items:center;width:42px;height:42px;border-radius:12px;background:#fff;color:var(--accent-dark);font-weight:900}.brand strong,.brand span{display:block}.brand strong{font-size:1.1rem}.brand span{font-size:.72rem;color:#b8cde0;margin-top:2px}.sidebar nav{display:grid;gap:3px;padding:16px 0;overflow:auto}.sidebar nav button{display:flex;align-items:center;gap:11px;width:100%;padding:10px 12px;border:0;border-radius:9px;background:transparent;color:#dceaf5;text-align:left}.sidebar nav button span{width:20px;text-align:center}.sidebar nav button:hover,.sidebar nav button.active{background:#ffffff18;color:#fff}.sidebar nav button.active{box-shadow:inset 3px 0 #4d94d8}.sidebar-foot{margin-top:auto;padding:12px;color:#b8cde0;font-size:.82rem}.connection-dot{display:inline-block;width:8px;height:8px;border-radius:50%;background:#cf5757;margin-right:8px}.connection-dot.online{background:#56d68b}.main{min-width:0}.mobile-head{display:none}.content{padding:30px 34px 60px;max-width:1500px;margin:auto}.hero-row,.page-head{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin-bottom:24px}.hero-row h1,.page-head h1,.search-hero h1{font-size:clamp(1.8rem,4vw,2.8rem);letter-spacing:-.04em;margin:2px 0}.lede{color:var(--muted);margin:6px 0 0}.eyebrow{text-transform:uppercase;letter-spacing:.13em;font-size:.72rem;font-weight:800;color:var(--accent);margin:0}.primary,.secondary,.file-button{border:1px solid transparent;border-radius:9px;padding:10px 15px;font-weight:700}.primary{background:var(--accent);color:#fff}.primary:hover{background:var(--accent-dark)}.secondary,.file-button{background:#fff;color:var(--ink);border-color:var(--line)}.small{padding:7px 10px;font-size:.82rem}.link{border:0;background:transparent;color:var(--accent);font-weight:700}.icon-btn{display:inline-grid;place-items:center;width:36px;height:36px;border:1px solid var(--line);border-radius:9px;background:#fff;color:var(--ink)}.danger-text{color:var(--danger)!important}.metrics{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin-bottom:20px}.metric{background:#fff;border:1px solid var(--line);border-left:5px solid var(--accent);border-radius:12px;padding:17px;text-align:left}.metric span{display:block;color:var(--muted);font-size:.86rem}.metric strong{display:block;font-size:2rem;margin-top:7px}.metric.danger-border{border-left-color:var(--danger)}.metric.warning-border{border-left-color:#d88812}.panel,.simple-card,.machine-card,.preventive-card,.report-card{background:#fff;border:1px solid var(--line);border-radius:14px}.panel{padding:21px}.panel h2{margin:0;font-size:1.12rem}.panel-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:15px}.dashboard-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}.order-panel{margin-top:18px}.list{display:grid}.list-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 2px;border:0;border-top:1px solid #edf0f3;background:transparent;color:inherit;text-align:left}.list-row:first-child{border-top:0}.list-row span:first-child{display:grid;gap:3px}.list-row small{color:var(--muted)}.badge{display:inline-block;padding:4px 8px;border-radius:999px;background:#eef1f4;color:#4d596a;font-size:.72rem;font-weight:800;margin:2px}.badge.success{background:#e5f5eb;color:var(--success)}.badge.warning{background:#fff1d9;color:#8a5700}.badge.danger{background:#fde8e8;color:var(--danger)}.chips{display:flex;flex-wrap:wrap;gap:8px}.order-chip{padding:9px 12px;border-radius:9px;background:var(--accent-soft);color:var(--accent-dark);text-decoration:none}.order-chip em{font-style:normal;color:var(--danger);margin-left:6px}.group-panel{margin-bottom:18px}.count{color:var(--muted);font-size:.85rem}.card-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:14px}.machine-card{display:grid;grid-template-columns:48px 1fr auto;gap:13px;padding:16px}.machine-mark{display:grid;place-items:center;width:46px;height:46px;border-radius:12px;background:var(--accent-soft);color:var(--accent);font-weight:900}.machine-info h3,.simple-card h3,.preventive-card h3{margin:8px 0 4px}.machine-info p,.machine-info small,.simple-card p,.preventive-card p{color:var(--muted);margin:3px 0}.card-actions{display:flex;align-items:flex-start;gap:6px;margin-top:auto}.simple-card,.preventive-card{padding:18px;display:flex;flex-direction:column;min-height:170px}.simple-card a{color:var(--accent);margin:3px 0}.preventive-card.overdue{border-color:#f0b6b6}.preventive-card dl{display:grid;gap:7px}.preventive-card dl div,.settings-list div{display:flex;justify-content:space-between;gap:12px}.preventive-card dt,.settings-list dt{color:var(--muted)}.preventive-card dd,.settings-list dd{margin:0;font-weight:700}.table-panel{padding:0;overflow:hidden}.table-wrap{overflow:auto}table{width:100%;border-collapse:collapse;min-width:760px}th,td{padding:13px 15px;border-bottom:1px solid #edf0f3;text-align:left}th{background:#f8fafb;color:var(--muted);font-size:.75rem;text-transform:uppercase;letter-spacing:.06em}.row-actions{white-space:nowrap}.compact{border:1px solid var(--line);border-radius:8px;padding:7px;background:#fff}.empty{text-align:center;padding:48px 20px;color:var(--muted)}.empty strong{display:block;color:var(--ink);font-size:1.05rem}.empty p{margin:6px 0}.search-hero{text-align:center;max-width:780px;margin:35px auto}.search-box{display:flex;align-items:center;gap:12px;background:#fff;border:1px solid var(--line);border-radius:14px;padding:8px 14px;margin-top:22px;box-shadow:0 12px 30px #1720330d}.search-box input{flex:1;border:0;outline:0;padding:10px 0;font-size:1.05rem}.search-box kbd{color:var(--muted);font-size:.72rem}.result-count{color:var(--muted)}.narrow{max-width:720px}.stack{display:grid;gap:14px;margin-top:18px}.stack label,label{display:grid;gap:6px;font-size:.83rem;font-weight:700;color:#485364}input,select,textarea{width:100%;border:1px solid #cfd7df;border-radius:8px;background:#fff;padding:10px 11px;color:var(--ink)}input:focus,select:focus,textarea:focus{outline:3px solid #215e9924;border-color:var(--accent)}.success-message{padding:12px;background:#e5f5eb;color:var(--success);border-radius:9px}.report-card{display:flex;flex-direction:column;align-items:flex-start;gap:7px;padding:22px;text-align:left}.report-card>span{font-size:1.7rem;color:var(--accent)}.report-card small{color:var(--muted)}.file-button{display:inline-block;position:relative;overflow:hidden}.file-button input{position:absolute;top:0;right:0;bottom:0;left:0;opacity:0;cursor:pointer}.settings-list{display:grid;gap:10px}.muted{color:var(--muted)}dialog{width:min(650px,calc(100% - 24px));max-height:90vh;border:0;border-radius:16px;padding:24px;color:var(--ink);box-shadow:0 30px 80px #07171b55;overflow:auto}dialog.wide{width:min(860px,calc(100% - 24px))}dialog::backdrop{background:#07171b99;-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px)}.dialog-head{display:flex;align-items:flex-start;justify-content:space-between;margin-bottom:20px}.dialog-head h2{margin:2px 0;font-size:1.5rem}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.span-2{grid-column:span 2}.dialog-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:20px}.detail-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}.detail-grid div{padding:12px;background:#f5f8f9;border-radius:9px}.detail-grid small,.detail-grid strong{display:block}.detail-grid small{color:var(--muted);margin-bottom:5px}#toast{position:fixed;right:24px;bottom:24px;z-index:50;transform:translateY(120px);opacity:0;padding:12px 16px;border-radius:10px;background:var(--nav);color:#fff;transition:.25s}#toast.show{transform:none;opacity:1}#toast.danger{background:var(--danger)}.sidebar-brand{display:grid;justify-items:start;gap:10px;padding:0 8px 18px;border-bottom:1px solid #ffffff20}.sidebar-product strong,.sidebar-product span,.sidebar-identity strong,.sidebar-identity span{display:block}.sidebar-product strong{font-size:1.32rem;line-height:1.1;letter-spacing:.01em}.sidebar-product span{margin-top:4px;color:#c9d9e8;font-size:.82rem;line-height:1.25}.sidebar-logo{display:inline-flex;align-items:center;justify-content:center;width:max-content;max-width:148px;min-height:42px;padding:0;border-radius:11px;background:transparent;overflow:hidden}.sidebar-logo img{display:block;width:auto;height:auto;max-width:148px;max-height:68px;border-radius:11px;object-fit:cover}.sidebar-logo.fallback{width:42px;height:42px;min-height:42px;padding:0;background:#fff;color:var(--accent-dark);font-weight:900}.sidebar-identity{min-width:0;max-width:100%}.sidebar-identity strong{overflow:hidden;color:#fff;font-size:.82rem;line-height:1.25;text-overflow:ellipsis}.sidebar-identity span{margin-top:3px;overflow:hidden;color:#b8cde0;font-size:.72rem;line-height:1.3;text-overflow:ellipsis}.dashboard-title{max-width:1000px;font-size:clamp(1.65rem,3.3vw,2.45rem)!important;line-height:1.12}.dashboard-title span{color:var(--accent);font-weight:700}@media(max-width:1000px){.metrics{grid-template-columns:1fr 1fr}.dashboard-grid{grid-template-columns:1fr}.content{padding:24px}.detail-grid{grid-template-columns:1fr 1fr}}@media(max-width:760px){.app-shell{grid-template-columns:1fr}.sidebar{position:fixed;z-index:20;left:-265px;width:248px;transition:.2s}.sidebar.open{left:0}.mobile-head{display:flex;position:sticky;top:0;z-index:10;align-items:center;justify-content:space-between;padding:10px 14px;background:#fff;border-bottom:1px solid var(--line)}.content{padding:20px 15px 50px}.hero-row,.page-head{align-items:flex-start;flex-direction:column}.hero-row .primary,.page-head .primary{width:100%}.metrics{grid-template-columns:1fr 1fr;gap:9px}.metric{padding:13px}.metric strong{font-size:1.55rem}.card-grid,.form-grid{grid-template-columns:1fr}.span-2{grid-column:auto}.detail-grid{grid-template-columns:1fr 1fr}.search-box kbd{display:none}dialog{padding:18px}}@media(max-width:420px){.metrics,.detail-grid{grid-template-columns:1fr}}@media print{.sidebar,.mobile-head,.page-head button,.hero-row button,#toast{display:none!important}.app-shell{display:block}.content{padding:0}.panel,.simple-card,.machine-card,.preventive-card{box-shadow:none;break-inside:avoid}}.machine-mark{overflow:hidden}.machine-mark img{width:100%;height:100%;object-fit:cover}.task-photos{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}.task-photos a{display:block}.task-photos img{display:block;width:54px;height:54px;object-fit:cover;border:1px solid var(--line);border-radius:8px}.group-panel .card-grid{row-gap:30px}.machine-card{position:relative;grid-template-columns:96px minmax(0,1fr);align-items:center;gap:15px;min-height:132px;padding-bottom:18px;overflow:visible}.machine-card-media{display:grid;align-self:start;justify-items:center;gap:7px}.machine-mark{width:96px;height:72px;border-radius:13px}.machine-mark img{display:block;object-position:center}.machine-card-status{min-height:22px;text-align:center}.machine-card-status .badge{margin:0;padding:3px 7px;white-space:nowrap;font-size:.66rem}.machine-info{min-width:0;align-self:start}.machine-info h3{margin-top:3px}.machine-card-actions{position:absolute;right:12px;bottom:-17px;z-index:2;display:flex;gap:2px;margin:0;padding:3px;border:1px solid var(--line);border-radius:11px;background:#fff;box-shadow:0 5px 14px #1720331c}.machine-card-actions .icon-btn{width:30px;height:30px;border:0;border-radius:7px;background:transparent}.machine-card-actions .icon-btn:hover{background:var(--accent-soft)}.machine-photo-button{border:0;padding:0;transition:transform .18s,box-shadow .18s}.machine-photo-button:hover,.machine-photo-button:focus-visible{transform:scale(1.05);box-shadow:0 0 0 3px #4d94d84d;outline:0}.subassembly-card{display:grid;grid-template-columns:52px 1fr auto;align-items:center;gap:14px;min-height:105px;padding:17px;border:1px solid var(--line);border-radius:14px;background:#fff;color:var(--ink);text-align:left;transition:.18s}.subassembly-card:hover{border-color:var(--accent);box-shadow:0 8px 24px #17203312;transform:translateY(-2px)}.subassembly-card span:nth-child(2){display:grid;gap:5px}.subassembly-card strong{font-size:1.05rem}.subassembly-card small{color:var(--muted)}.subassembly-card em{color:var(--accent);font-size:.78rem;font-style:normal;font-weight:800}.subassembly-card b{font-size:1.5rem;color:var(--accent)}.subassembly-icon{display:grid;place-items:center;width:50px;height:50px;border-radius:12px;background:var(--accent-soft);color:var(--accent);font-size:1.25rem}.direct-photo-input{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}.machine-photo-button,.direct-photo-slot{position:relative;cursor:pointer}.machine-title-link{border:0;padding:0;background:transparent;color:var(--ink);font:inherit;font-weight:inherit;cursor:pointer}.machine-title-link:hover,.machine-title-link:focus-visible{color:var(--accent);text-decoration:underline}.subassembly-card{grid-template-columns:52px 1fr}.subassembly-open{display:grid;grid-template-columns:1fr auto;align-items:center;gap:12px;width:100%;padding:0;border:0;background:transparent;color:inherit;text-align:left}.subassembly-open>span{display:grid;gap:5px}.direct-photo-slot{overflow:hidden}.direct-photo-slot img{width:100%;height:100%;object-fit:cover}.machine-gallery-panel{margin-bottom:18px}.machine-gallery{display:grid;grid-template-columns:repeat(auto-fill,minmax(120px,1fr));gap:10px}.machine-gallery button{display:grid;place-items:center;aspect-ratio:4/3;padding:0;border:0;border-radius:10px;overflow:hidden;background:var(--accent-soft);color:var(--accent);font-weight:800}.machine-gallery img{display:block;width:100%;height:100%;object-fit:cover}.subassembly-card{grid-template-columns:96px 1fr auto}.subassembly-icon{width:96px;height:72px;border-radius:13px}.subassembly-card>.icon-btn{align-self:center}.photo-crop-dialog{width:min(760px,calc(100% - 24px))}.photo-crop-dialog>p{margin-top:-8px}.photo-crop-stage{display:grid;place-items:center;overflow:hidden;margin-top:16px;border-radius:14px;background:#153d64}.photo-crop-stage canvas{display:block;width:100%;max-height:58vh;aspect-ratio:4/3;object-fit:contain;cursor:grab;touch-action:none}.photo-crop-stage canvas:active{cursor:grabbing}.photo-crop-zoom{margin-top:16px}.photo-crop-zoom input{padding:0;accent-color:var(--accent)}.auth-shell{min-height:100vh;display:grid;place-items:center;padding:24px;background:radial-gradient(circle at top left,#dfeaf5 0,transparent 38%),var(--bg)}.auth-card{width:min(520px,100%);padding:30px;background:#fff;border:1px solid var(--line);border-radius:18px;box-shadow:0 24px 70px #17203318}.auth-card h1{margin:8px 0 10px;font-size:clamp(1.8rem,5vw,2.5rem);letter-spacing:-.04em}.auth-brand{margin-bottom:26px;padding:0 0 20px}.auth-brand span{color:var(--muted)}.auth-card .primary:disabled{opacity:.65;cursor:wait}.conflict-card{width:min(920px,100%)}.conflict-explanation{margin:16px 0;padding:14px 16px;background:var(--accent-soft);border-radius:10px}.version-choice{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin:22px 0}.version-choice article{display:flex;flex-direction:column;height:400px;padding:18px;overflow:hidden;border:1px solid var(--line);border-radius:12px}.version-choice h2{margin:0 0 8px}.version-choice>article>strong{font-size:1.25rem}.version-choice article>p:last-of-type{flex:0 0 auto;margin-top:14px}.version-choice button{flex:0 0 auto;width:100%;margin-top:8px}.conflict-summary{display:grid;flex:1 1 auto;gap:8px;min-height:0;margin:16px 0 0;padding:0 6px 0 0;overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable;list-style:none}.conflict-summary li{padding:10px 12px;background:#f5f8f9;border-radius:9px}.conflict-summary strong{display:block;font-size:.95rem}.conflict-summary span{display:block;margin-top:3px;color:var(--muted);font-size:.88rem;line-height:1.35}.conflict-empty{flex:1 1 auto;min-height:0;margin:16px 0 0;padding:10px 12px;overflow-y:auto;background:#f5f8f9;border-radius:9px;color:var(--muted)}@media(max-width:650px){.version-choice{grid-template-columns:1fr}.version-choice article{height:400px}.auth-card{padding:22px}}.calendar-shell{overflow:hidden;border:1px solid var(--line);border-radius:16px;background:#fff;box-shadow:0 8px 28px #1720330a}.calendar-toolbar{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:22px;padding:18px 20px;border-bottom:1px solid var(--line)}.calendar-create{display:flex;align-items:center;gap:10px;border:1px solid var(--line);border-radius:14px;padding:10px 17px;background:#fff;color:var(--ink);font-weight:700;box-shadow:0 2px 8px #17203312}.calendar-create span{font-size:1.6rem;font-weight:400;color:var(--accent);line-height:1}.calendar-navigation{display:flex;align-items:center;gap:8px}.calendar-navigation h1{margin:0 0 0 8px;font-size:1.35rem;font-weight:600}.calendar-view-switch .active{background:var(--accent-soft);border-color:#b8d2ea;color:var(--accent-dark)}.calendar-scroll{overflow-x:auto}.calendar-grid{display:grid;grid-template-columns:repeat(7,minmax(120px,1fr));min-width:840px}.calendar-weekday{padding:10px 12px;border-right:1px solid var(--line);color:var(--muted);font-size:.75rem;font-weight:800;text-align:center;text-transform:uppercase}.calendar-weekday:nth-child(7){border-right:0}.calendar-day{min-height:126px;padding:8px;border-top:1px solid var(--line);border-right:1px solid var(--line);background:#fff}.calendar-day:nth-child(7n){border-right:0}.calendar-day.other-month{background:#f8fafb}.calendar-day.other-month .calendar-date{color:#a3abb8}.calendar-date{display:grid;place-items:center;width:28px;height:28px;margin-left:auto;border-radius:50%;font-size:.82rem}.calendar-date.today{background:var(--accent);color:#fff;font-weight:800}.calendar-events{display:grid;gap:5px;margin-top:5px}.calendar-event{display:grid;gap:2px;width:100%;padding:5px 7px;overflow:hidden;border:0;border-left:3px solid var(--accent);border-radius:5px;background:var(--accent-soft);color:var(--accent-dark);text-align:left}.calendar-event strong,.calendar-event small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.calendar-event strong{font-size:.76rem}.calendar-event small{font-size:.66rem;opacity:.78}.calendar-event.priority-urgente{border-left-color:#d88812;background:#fff1d9;color:#8a5700}.calendar-event.priority-faible{border-left-color:#78909c;background:#eef1f4;color:#4d596a}.task-dialog-actions{flex-wrap:wrap}@media(max-width:760px){.calendar-toolbar{grid-template-columns:1fr auto;gap:12px}.calendar-create{grid-column:1/-1;justify-content:center}.calendar-navigation{min-width:0}.calendar-navigation h1{font-size:1.05rem}.calendar-navigation .secondary{padding-inline:10px}.calendar-view-switch{justify-self:end}.task-dialog-actions>*{flex:1 1 150px}}.dashboard-calendar{margin-top:20px}.dashboard-calendar-heading{display:flex;align-items:end;justify-content:space-between;margin:0 0 10px}.dashboard-calendar-heading h2{margin:3px 0 0;font-size:1.25rem}.calendar-toolbar{grid-template-columns:auto minmax(0,1fr) auto}.calendar-navigation h2{margin:0 0 0 8px;overflow:hidden;font-size:1.18rem;font-weight:700;text-overflow:ellipsis;white-space:nowrap}.calendar-view-switch{display:flex;gap:5px}.calendar-view-switch .secondary{padding:8px 11px}.calendar-filters{display:grid;grid-template-columns:repeat(4,minmax(120px,1fr)) 38px;gap:9px;align-items:end;padding:12px 20px 4px;background:#fbfcfd}.calendar-filters label{gap:3px;font-size:.68rem}.calendar-filters select{height:36px;padding:7px 8px;font-size:.78rem}.calendar-filter-reset{display:grid;place-items:center;width:36px;height:36px;padding:0;border:1px solid var(--line);border-radius:8px;background:#fff;color:var(--accent);font-size:1.15rem;font-weight:800}.calendar-result-count{margin:0;padding:7px 20px 12px;background:#fbfcfd;color:var(--muted);font-size:.72rem;font-weight:700}.calendar-grid.has-week-numbers{grid-template-columns:54px repeat(7,minmax(120px,1fr));min-width:900px}.calendar-week-number{display:grid;place-items:center;min-height:126px;border-top:1px solid var(--line);border-right:1px solid var(--line);background:#f6f9fa;color:var(--accent-dark);font-size:.72rem;font-weight:800}.week-number-heading{background:#f2f6f7}.calendar-week-grid .calendar-day,.calendar-week-grid .calendar-week-number{min-height:360px}.calendar-event.overdue{box-shadow:inset 0 0 0 1px #e8a3a3}.calendar-list-view{display:grid;padding:8px 20px 18px}.calendar-list-row{display:grid;grid-template-columns:64px minmax(0,1fr) auto;align-items:center;gap:14px;padding:12px 4px;border:0;border-top:1px solid #edf0f3;background:#fff;color:inherit;text-align:left}.calendar-list-row:first-child{border-top:0}.calendar-list-row time{display:grid;justify-items:center;padding:7px;border-radius:9px;background:var(--accent-soft);color:var(--accent-dark)}.calendar-list-row time strong{font-size:1.2rem;line-height:1}.calendar-list-row time span{text-transform:uppercase;font-size:.68rem;font-weight:800}.calendar-list-row time small{margin-top:3px;color:var(--muted);font-size:.62rem}.calendar-list-row>span:nth-child(2){display:grid;gap:4px;min-width:0}.calendar-list-row>span:nth-child(2)>strong,.calendar-list-row>span:nth-child(2)>small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.calendar-list-row>span:nth-child(2)>small{color:var(--muted)}.calendar-embedded{box-shadow:none}.calendar-embedded .calendar-toolbar{padding-block:14px}.calendar-embedded .calendar-day,.calendar-embedded .calendar-week-number{min-height:112px}.calendar-embedded .calendar-week-grid .calendar-day,.calendar-embedded .calendar-week-grid .calendar-week-number{min-height:260px}@media(max-width:950px){.calendar-toolbar{grid-template-columns:1fr auto}.calendar-toolbar>.calendar-create,.calendar-toolbar>.link{grid-column:1/-1;justify-self:start}.calendar-filters{grid-template-columns:repeat(2,minmax(0,1fr)) 38px}.calendar-filter-reset{grid-column:3;grid-row:2}.calendar-navigation h2{font-size:1rem}}@media(max-width:620px){.calendar-toolbar{grid-template-columns:1fr;gap:10px;padding:14px}.calendar-toolbar>.calendar-create,.calendar-toolbar>.link{grid-column:auto}.calendar-navigation{display:grid;grid-template-columns:auto 36px 36px 1fr}.calendar-navigation .secondary{grid-column:1/-1;width:100%}.calendar-navigation h2{margin-left:4px}.calendar-view-switch{display:grid;grid-template-columns:repeat(3,1fr);width:100%}.calendar-filters{grid-template-columns:1fr 1fr;padding:10px 14px 4px}.calendar-filter-reset{grid-column:auto;grid-row:auto}.calendar-result-count,.calendar-list-view{padding-inline:14px}.calendar-list-row{grid-template-columns:56px minmax(0,1fr)}.calendar-list-row>span:last-child{grid-column:2}.dashboard-calendar-heading{align-items:flex-start}.calendar-grid.has-week-numbers{grid-template-columns:44px repeat(7,minmax(105px,1fr));min-width:779px}}.task-photos button{display:block;padding:0;border:0;border-radius:8px;background:transparent;color:var(--accent);font-size:.72rem}.attachment-link{padding:0;text-align:left}.attachment-chip{border:0;font:inherit;cursor:pointer}.task-attachment-editor{display:grid;gap:7px}.task-attachment-editor-title{font-size:.83rem;font-weight:700;color:#485364}.task-edit-photos{display:flex;flex-wrap:wrap;gap:10px}.task-edit-photo{position:relative;width:76px;height:76px}.task-edit-preview{display:grid;place-items:center;width:100%;height:100%;padding:0;overflow:hidden;border:1px solid var(--line);border-radius:10px;background:#f5f8f9;color:var(--muted);font-size:.65rem}.task-edit-preview img{width:100%;height:100%;object-fit:cover}.task-photo-remove{position:absolute;top:-7px;right:-7px;display:grid;place-items:center;width:25px;height:25px;padding:0;border:2px solid #fff;border-radius:50%;background:var(--danger);color:#fff;font-size:1rem;font-weight:800;line-height:1;box-shadow:0 2px 7px #17203333}.task-edit-files{display:grid;grid-template-columns:repeat(auto-fill,minmax(125px,1fr));gap:10px}.task-edit-file{position:relative;min-width:0;height:105px}.task-edit-file .task-edit-preview{gap:5px;padding:7px}.task-edit-file .task-edit-preview small{display:block;width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.task-file-icon,.task-list-file-icon{display:grid;place-items:center;border-radius:7px;background:#fff;color:var(--accent-dark);font-weight:900;box-shadow:0 2px 8px #17203318}.task-file-icon{width:48px;height:52px}.task-list-file-icon{flex:0 0 34px;width:34px;height:34px;font-size:.58rem}.task-photos .task-file-button{display:flex;align-items:center;gap:7px;max-width:240px;padding:5px 9px;border:1px solid var(--line);background:#f7fafb;text-align:left}.task-list-file-name{overflow:hidden;color:var(--accent-dark);font-size:.72rem;font-weight:700;text-overflow:ellipsis;white-space:nowrap}.task-photos .task-photo-button{padding:0}.task-additional-info{margin-top:12px;padding:10px 12px;border:1px solid #f0c56d;border-left:4px solid #d58a00;border-radius:9px;background:#fff8e8;color:#704700}.task-additional-info strong{display:block;margin-bottom:4px;color:#9a5c00;font-size:.7rem;letter-spacing:.08em;text-transform:uppercase}.task-additional-info p{margin:0;white-space:pre-wrap;font-size:.82rem;line-height:1.45}.task-additional-info+.task-photos{margin-top:10px}.task-additional-info{position:relative;padding-right:44px}.task-additional-attachment{position:absolute;top:10px;right:12px;display:block;width:22px;height:22px;color:#9a5c00}.task-additional-attachment svg{display:block;width:100%;height:100%;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}.task-priority-control{display:inline-flex;align-items:center;gap:5px;white-space:nowrap}.task-priority-picker{position:relative;display:grid;place-items:center;width:22px;height:22px;margin:0;color:#607080;cursor:pointer}.task-priority-picker svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}.task-priority-picker:hover{color:var(--accent)}.task-priority-picker select{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;height:100%;margin:0;opacity:0;cursor:pointer}.task-priority-picker select option{color:#172033;font-size:.85rem}.task-filter-panel{margin-bottom:12px;padding:10px 12px;border:1px solid var(--line);border-radius:12px;background:#fff}.task-filter-toggle{display:none}.task-filters{display:grid;grid-template-columns:minmax(190px,1.6fr) repeat(6,minmax(105px,1fr)) 38px;gap:8px;align-items:end}.task-filters label{gap:3px;font-size:.68rem}.task-filters input,.task-filters select{height:36px;padding:7px 8px;font-size:.78rem}.task-filter-reset{display:grid;place-items:center;width:36px;height:36px;padding:0;border:1px solid var(--line);border-radius:8px;background:#fff;color:var(--accent);font-size:1.15rem;font-weight:800}.task-filter-reset:hover{border-color:var(--accent);background:var(--accent-soft)}.task-filter-summary{margin:7px 0 0;color:var(--muted);font-size:.72rem;font-weight:700}@media(max-width:1100px)and (min-width:761px){.task-filters{grid-template-columns:repeat(4,minmax(0,1fr))}.task-filter-search{grid-column:span 2}}@media(max-width:760px){.task-filter-panel{padding:0;overflow:hidden}.task-filter-toggle{display:flex;align-items:center;justify-content:space-between;width:100%;padding:11px 13px;border:0;background:#fff;color:var(--accent-dark);font-weight:800}.task-filter-toggle b{transition:transform .2s}.task-filter-panel.open .task-filter-toggle b{transform:rotate(180deg)}.task-filters,.task-filter-summary{display:none}.task-filter-panel.open .task-filters{display:grid;grid-template-columns:1fr 1fr;padding:0 12px 12px}.task-filter-panel.open .task-filter-summary{display:block;margin:0;padding:0 12px 11px}.task-filter-search{grid-column:1/-1}}@media(max-width:460px){.task-filter-panel.open .task-filters{grid-template-columns:1fr}.task-filter-search{grid-column:auto}}.machine-identity-panel{display:grid;gap:18px;margin-bottom:24px;padding:22px;border:1px solid var(--line);border-radius:16px;background:#fff;box-shadow:0 8px 28px #1720330a}.machine-identity-main{display:grid;grid-template-columns:140px 1fr auto;align-items:center;gap:20px}.machine-identity-photo{display:grid;place-items:center;width:140px;aspect-ratio:4/3;overflow:hidden;border-radius:14px;background:var(--accent-soft);color:var(--accent);font-size:2rem;font-weight:900}.machine-identity-photo img{width:100%;height:100%;object-fit:cover}.machine-identity-title h2{margin:3px 0 9px;font-size:1.7rem}.machine-identity-actions{display:grid;align-self:start;gap:9px;min-width:190px}.machine-status-quick{gap:4px;color:var(--muted);font-size:.7rem;text-transform:uppercase;letter-spacing:.05em}.machine-status-quick select{height:38px;padding:7px 10px;color:var(--ink);font-size:.82rem;font-weight:700;text-transform:none;letter-spacing:normal}.machine-edit-button{width:100%}.machine-facts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.machine-facts>div,.machine-information-block{padding:13px 14px;border-radius:10px;background:#f5f8f9}.machine-facts small,.machine-facts strong,.machine-information-block small{display:block}.machine-facts small,.machine-information-block small,.machine-resources small{margin-bottom:5px;color:var(--muted);font-size:.75rem;font-weight:700;text-transform:uppercase;letter-spacing:.04em}.machine-information-block p{margin:5px 0;white-space:pre-wrap}.machine-resources{display:grid;grid-template-columns:1fr 1fr;gap:18px;padding-top:4px;border-top:1px solid var(--line)}.machine-resource-links{display:flex;flex-wrap:wrap;gap:8px}.machine-resource-links a,.machine-resource-links button{color:var(--accent);font-weight:700}.machine-resources .machine-gallery{grid-template-columns:repeat(auto-fill,minmax(90px,110px))}.machine-section-heading{display:flex;align-items:end;justify-content:space-between;margin:28px 0 12px}.machine-section-heading h2{margin:3px 0 0}@media(max-width:760px){.machine-identity-main{grid-template-columns:92px 1fr}.machine-identity-photo{width:92px}.machine-identity-actions{grid-column:1/-1;width:100%;min-width:0}.machine-edit-button{width:100%}.machine-facts{grid-template-columns:1fr 1fr}.machine-resources{grid-template-columns:1fr}}.machine-maintenance-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin-top:22px}@media(max-width:900px){.machine-maintenance-grid{grid-template-columns:1fr}}.intervention-attachment-editor{display:grid;gap:8px}.intervention-edit-gallery{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:12px}.intervention-edit-item{overflow:hidden;border:1px solid var(--line);border-radius:12px;background:#f8fafb}.intervention-edit-preview{display:grid;place-items:center;width:100%;height:120px;padding:0;overflow:hidden;border:0;background:#edf3f8;color:var(--muted)}.intervention-edit-preview img{width:100%;height:100%;object-fit:cover}.intervention-file-icon{display:grid;place-items:center;width:48px;height:58px;margin-bottom:5px;border-radius:7px;background:#fff;color:var(--danger);font-weight:900;box-shadow:0 2px 8px #17203318}.intervention-edit-preview small{max-width:90%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.intervention-edit-actions{display:flex;align-items:center;justify-content:space-between;gap:6px;padding:8px}.intervention-replace-button{position:relative;overflow:hidden;cursor:pointer}.intervention-replace-button input{position:absolute;top:0;right:0;bottom:0;left:0;opacity:0;cursor:pointer}.intervention-remove-button{padding:7px 5px;border:0;background:transparent;font-weight:700}.intervention-view-head{align-items:center}.intervention-view-identity{display:flex;align-items:center;gap:15px;min-width:0}.intervention-subassembly-photo{flex:0 0 112px;width:112px;height:84px;object-fit:cover;border-radius:12px;background:var(--accent-soft)}.intervention-subassembly-photo.placeholder{display:grid;place-items:center;color:var(--accent);font-size:1.8rem}.intervention-gallery{margin-top:22px}.intervention-gallery-heading{display:flex;align-items:center;justify-content:space-between}.intervention-gallery-heading h3{margin:0 0 10px}.intervention-gallery-heading span{color:var(--muted);font-size:.82rem}.intervention-carousel{position:relative;display:grid;place-items:center;overflow:hidden;min-height:360px;border-radius:14px;background:#153d64}.intervention-carousel-main{display:grid;place-items:center;width:100%;height:100%;min-height:360px;padding:0;border:0;background:transparent;color:#fff}.intervention-carousel-main img{display:block;width:100%;height:360px;object-fit:contain}.intervention-carousel-arrow{position:absolute;z-index:2;top:50%;display:grid;place-items:center;width:44px;height:52px;border:0;border-radius:10px;background:#07171baa;color:#fff;font-size:2rem;transform:translateY(-50%)}.intervention-carousel-arrow.previous{left:12px}.intervention-carousel-arrow.next{right:12px}.intervention-thumbnails{display:flex;gap:8px;padding:10px 2px 2px;overflow-x:auto}.intervention-thumbnails button{flex:0 0 72px;width:72px;height:54px;padding:0;overflow:hidden;border:2px solid transparent;border-radius:8px;background:#edf3f8}.intervention-thumbnails button.active{border-color:var(--accent)}.intervention-thumbnails img{width:100%;height:100%;object-fit:cover}.intervention-no-photo{margin-top:20px;padding:14px;border-radius:10px;background:#f5f8f9}.intervention-photo-caption{position:relative;display:grid;gap:4px;padding:8px 8px 2px;font-size:.78rem}.intervention-photo-caption input{padding-right:42px}.intervention-photo-caption small{position:absolute;right:16px;bottom:11px;color:var(--muted);font-size:.68rem}.intervention-carousel-caption{margin:8px 0 0;text-align:center;color:var(--muted);font-size:.86rem}@media(max-width:760px){.intervention-view-identity{align-items:flex-start}.intervention-subassembly-photo{flex-basis:82px;width:82px;height:62px}.intervention-carousel,.intervention-carousel-main{min-height:240px}.intervention-carousel-main img{height:240px}.intervention-edit-gallery{grid-template-columns:1fr 1fr}}.profile-logo-editor{display:grid;grid-template-columns:112px 1fr;align-items:center;gap:16px}.profile-logo-frame{position:relative;width:112px}.profile-logo-preview{display:grid;place-items:center;width:112px;height:84px;overflow:hidden;border:1px solid var(--line);border-radius:12px;background:#f5f8f9;color:var(--muted);font-weight:800}.profile-logo-preview img{width:100%;height:100%;object-fit:contain}.profile-logo-actions{position:absolute;z-index:2;top:6px;right:6px;display:flex;gap:5px}.profile-logo-icon{position:relative;display:grid;place-items:center;width:30px;height:30px;padding:0;overflow:hidden;border:1px solid #d4dfe2;border-radius:8px;background:#fffffff2;color:var(--accent-dark);font-size:1rem;font-weight:800;box-shadow:0 3px 10px #17203320;cursor:pointer}.profile-logo-icon:hover{background:#fff;border-color:var(--accent)}.profile-logo-icon input{position:absolute;top:0;right:0;bottom:0;left:0;opacity:0;cursor:pointer}.profile-logo-editor>p{margin:0;font-size:.78rem}@media(max-width:560px){.profile-logo-editor{grid-template-columns:1fr}.profile-logo-frame,.profile-logo-preview{width:100%;max-width:180px}.profile-logo-preview{height:110px}}.intervention-filter-panel{margin-bottom:16px;padding:16px;border:1px solid var(--line);border-radius:14px;background:#fff}.intervention-filters{display:grid;grid-template-columns:minmax(230px,2fr) repeat(3,minmax(130px,1fr));gap:12px;align-items:end}.intervention-filters .filter-reset{align-self:end;height:41px}.intervention-filter-summary{margin:12px 0 0;color:var(--muted);font-size:.82rem;font-weight:700}.intervention-filter-panel input,.intervention-filter-panel select{height:41px}@media(max-width:1050px){.intervention-filters{grid-template-columns:repeat(3,minmax(0,1fr))}.intervention-filters .filter-search{grid-column:span 2}}.dashboard-grid>.calendar-embedded{min-width:0}.calendar-embedded .calendar-toolbar{grid-template-columns:minmax(0,1fr) auto;gap:8px;padding:12px}.calendar-embedded-title{grid-column:1/-1;min-width:0}.calendar-embedded-title strong{display:block;margin-top:3px;font-size:1rem}.calendar-embedded .calendar-navigation{grid-column:1;display:grid;grid-template-columns:auto 32px 32px minmax(0,1fr);gap:6px;min-width:0}.calendar-embedded .calendar-navigation .secondary{padding:7px 9px}.calendar-embedded .calendar-navigation .icon-btn{width:32px;height:32px}.calendar-embedded .calendar-navigation h2{margin-left:4px;font-size:.9rem}.calendar-embedded .calendar-view-actions{grid-column:2;align-self:center;justify-self:end}.calendar-embedded .calendar-view-switch{align-self:center}.calendar-embedded .calendar-view-switch .secondary{padding:6px 8px;font-size:.72rem}.calendar-embedded .calendar-filters{grid-template-columns:1fr 1fr 32px;gap:6px;padding:9px 12px 3px}.calendar-embedded .calendar-filters label{font-size:.62rem}.calendar-embedded .calendar-filters select{height:31px;padding:5px 6px;font-size:.7rem}.calendar-embedded .calendar-filter-reset{grid-column:3;grid-row:2;width:31px;height:31px}.calendar-embedded .calendar-result-count{padding:5px 12px 8px;font-size:.66rem}.calendar-embedded .calendar-grid.has-week-numbers{grid-template-columns:34px repeat(7,minmax(0,1fr));min-width:0}.calendar-embedded .calendar-weekday{padding:7px 2px;font-size:.57rem}.calendar-embedded .calendar-day,.calendar-embedded .calendar-week-number{min-height:62px;padding:4px}.calendar-embedded .calendar-week-number{font-size:.58rem}.calendar-embedded .calendar-date{width:20px;height:20px;font-size:.66rem}.calendar-embedded .calendar-events{gap:2px;margin-top:2px}.calendar-embedded .calendar-event{padding:3px 4px;border-left-width:2px}.calendar-embedded .calendar-event strong{font-size:.58rem}.calendar-embedded .calendar-event small{display:none}.calendar-embedded .calendar-week-grid .calendar-day,.calendar-embedded .calendar-week-grid .calendar-week-number{min-height:250px}.calendar-embedded .calendar-list-view{padding:5px 12px 12px}.calendar-embedded .calendar-list-row{grid-template-columns:48px minmax(0,1fr);gap:8px;padding:8px 2px}.calendar-embedded .calendar-list-row time{padding:5px}.calendar-embedded .calendar-list-row>span:last-child{grid-column:2}.calendar-embedded .calendar-list-row .badge{font-size:.62rem}@media(max-width:760px){.dashboard-grid>.calendar-embedded{grid-row:auto}.calendar-embedded .calendar-grid.has-week-numbers{min-width:760px}.calendar-embedded .calendar-day,.calendar-embedded .calendar-week-number{min-height:88px}}.calendar-grid.has-week-numbers:not(.calendar-week-grid) .calendar-day,.calendar-grid.has-week-numbers:not(.calendar-week-grid) .calendar-week-number{height:132px;min-height:132px;overflow:hidden}.calendar-more-events{display:block;width:100%;padding:3px 5px;border:0;border-radius:5px;background:transparent;color:var(--accent);font-size:.68rem;font-weight:800;text-align:left}.calendar-more-events:hover,.calendar-more-events:focus-visible{background:var(--accent-soft);outline:0}.calendar-week-grid .calendar-day,.calendar-week-grid .calendar-week-number{height:360px;min-height:360px;overflow:hidden}.calendar-week-grid .calendar-events{max-height:315px;padding-right:3px;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:var(--line) transparent}.calendar-embedded .calendar-grid.has-week-numbers:not(.calendar-week-grid) .calendar-day,.calendar-embedded .calendar-grid.has-week-numbers:not(.calendar-week-grid) .calendar-week-number{height:88px;min-height:88px}.calendar-embedded .calendar-more-events{padding:1px 3px;font-size:.56rem}.calendar-embedded .calendar-week-grid .calendar-day,.calendar-embedded .calendar-week-grid .calendar-week-number{height:250px;min-height:250px}.calendar-embedded .calendar-week-grid .calendar-events{max-height:216px}.calendar-grid.has-week-numbers:not(.calendar-week-grid) .calendar-event{padding:3px 5px}.calendar-grid.has-week-numbers:not(.calendar-week-grid) .calendar-event small{display:none}.calendar-embedded .calendar-grid.has-week-numbers:not(.calendar-week-grid) .calendar-event{padding:1px 3px;line-height:1.05}.calendar-embedded .calendar-more-events{line-height:1.05}.park-panel-head>div{display:grid;gap:4px}.park-panel-head .count{display:block}.group-panel>.empty{padding:28px 18px;background:var(--bg);border-radius:10px}.group-panel>.empty p{margin-bottom:0}@media(max-width:600px){.park-panel-head{align-items:stretch;flex-direction:column}.park-panel-head .secondary{width:100%}}.machine-status-pill{width:auto;max-width:94px;height:24px;padding:2px 20px 2px 8px;border:0;border-radius:999px;background-position:right 6px center;color:#4d596a;font-size:.66rem;font-weight:800;line-height:1;cursor:pointer}.machine-status-pill.success{background-color:#e5f5eb;color:var(--success)}.machine-status-pill.warning{background-color:#fff1d9;color:#8a5700}.machine-status-pill.danger{background-color:#fde8e8;color:var(--danger)}.machine-status-pill.neutral{background-color:#eef1f4;color:#4d596a}.machine-status-pill:hover,.machine-status-pill:focus{outline:2px solid #215e9933;outline-offset:1px}.park-panel-actions{display:flex;align-items:center;gap:7px}.park-panel-actions .icon-btn{width:36px;height:36px}@media(max-width:600px){.park-panel-actions{width:100%}.park-panel-actions .secondary{flex:1}}.calendar-view-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px}.calendar-filters{display:flex;flex-wrap:nowrap;align-items:end;gap:9px}.calendar-filters label{flex:0 1 auto;width:max-content}.calendar-filters select{field-sizing:content;width:auto;max-width:190px}.calendar-filter-machine select{min-width:105px}.calendar-filter-subassembly select{min-width:120px}.calendar-filter-priority select{min-width:86px}.calendar-filter-status select{min-width:92px}.calendar-filters .calendar-filter-reset{flex:0 0 36px;margin-left:auto}.calendar-embedded .calendar-filters{display:flex;grid-template-columns:none;overflow-x:auto}.calendar-embedded .calendar-filter-reset{grid-column:auto;grid-row:auto;flex-basis:31px;margin-left:auto}.calendar-embedded .calendar-view-actions{align-self:start}@media(max-width:620px){.calendar-view-actions{width:100%}.calendar-view-actions .calendar-view-switch{flex:1}.calendar-filters,.calendar-embedded .calendar-filters{flex-wrap:wrap;overflow:visible}.calendar-filters label{flex:1 1 calc(50% - 5px);width:auto}.calendar-filters select{width:100%;max-width:none}.calendar-filters .calendar-filter-reset{margin-left:auto}}.calendar-list-row{grid-template-columns:64px minmax(0,1fr)}.calendar-list-content{display:grid;gap:4px;min-width:0}.calendar-list-meta{display:flex;align-items:center;justify-content:space-between;gap:10px;min-width:0}.calendar-list-meta>small{overflow:hidden;color:var(--muted);text-overflow:ellipsis;white-space:nowrap}.calendar-list-badges{display:flex;flex:0 0 auto;align-items:center;justify-content:flex-end;gap:2px}.calendar-list-badges .badge{margin-block:0}@media(max-width:430px){.calendar-list-meta{align-items:flex-start;flex-direction:column;gap:5px}.calendar-list-badges{justify-content:flex-start}}.part-photo-editor{display:grid;grid-template-columns:150px minmax(0,1fr);align-items:center;gap:18px;padding:14px;border:1px solid var(--line);border-radius:12px;background:#f8fafc}.part-photo-preview{display:grid;place-items:center;width:150px;aspect-ratio:4/3;overflow:hidden;border-radius:10px;background:var(--accent-soft);color:var(--muted);font-size:.8rem;font-weight:800}.part-photo-preview img{width:100%;height:100%;object-fit:cover}.part-photo-copy{display:grid;justify-items:start;gap:7px}.part-photo-copy>strong{color:var(--ink);font-size:1rem}.part-photo-copy>p{margin:0;font-size:.78rem}.part-photo-button{padding:8px 12px;color:var(--accent-dark);font-size:.78rem}.part-location-control{display:grid;grid-template-columns:minmax(0,1fr) 38px;gap:7px}.part-location-control .icon-btn{width:38px;height:40px}.part-table-photo{display:grid;place-items:center;width:58px;height:44px;padding:0;overflow:hidden;border:0;border-radius:8px;background:var(--accent-soft);color:var(--accent);font-size:1.1rem}.part-table-photo img{width:100%;height:100%;object-fit:cover}.part-table-photo.placeholder{cursor:default}@media(max-width:560px){.part-photo-editor{grid-template-columns:100px minmax(0,1fr);gap:12px;padding:11px}.part-photo-preview{width:100px}.part-photo-copy>p{display:none}}.stock-page-head{align-items:flex-start;margin-bottom:12px}.stock-page-actions{display:grid;grid-template-columns:repeat(3,max-content);gap:8px}.stock-page-actions>.primary{grid-column:1/-1;justify-self:end;min-width:190px}.stock-metrics .metric{min-width:0}.stock-metrics .metric strong{overflow:hidden;font-size:1.6rem;text-overflow:ellipsis}.stock-catalog,.stock-movements{margin-top:18px}.stock-section-head{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:17px 20px;border-bottom:1px solid var(--line);background:#fbfcfd}.stock-section-head h2{margin:3px 0 0}.stock-parts-table{min-width:1280px}.stock-parts-table tbody tr{transition:background .15s}.stock-parts-table tbody tr:hover{background:#f7fafd}.stock-row-alert{background:snow}.stock-quantity{font-size:1.05rem}.stock-row-actions{display:flex;align-items:center;gap:5px}.stock-action{height:34px;padding:0 9px;border:1px solid var(--line);border-radius:8px;background:#fff;font-size:.72rem;font-weight:800;white-space:nowrap}.stock-action.stock-in{border-color:#b9dfc8;color:var(--success)}.stock-action.stock-in:hover{background:#eaf7ef}.stock-action.stock-out{border-color:#efd09d;color:#945c00}.stock-action.stock-out:hover{background:#fff5e5}.stock-action.stock-history{border-color:#bfd5e9;color:var(--accent)}.stock-action.stock-history:hover{background:var(--accent-soft)}.required-field input{border-color:#dfaa52}.required-field small{color:#945c00;font-weight:700}#stock-history-dialog table{min-width:720px}@media(max-width:900px){.stock-page-actions{width:100%;grid-template-columns:1fr 1fr}.stock-page-actions>.primary{grid-column:1/-1;justify-self:stretch;width:100%}.stock-page-actions>.secondary:last-child{grid-column:1/-1}.stock-metrics{grid-template-columns:1fr 1fr}}@media(max-width:520px){.stock-page-actions{grid-template-columns:1fr}.stock-page-actions>.primary,.stock-page-actions>.secondary:last-child{grid-column:auto}.stock-metrics{grid-template-columns:1fr 1fr}.stock-metrics .metric strong{font-size:1.25rem}}@media(max-width:560px){.calendar-embedded .calendar-toolbar{grid-template-columns:1fr}.calendar-embedded-title,.calendar-embedded .calendar-navigation,.calendar-embedded .calendar-view-actions{grid-column:1}.calendar-embedded .calendar-view-actions{justify-self:stretch}.calendar-embedded .calendar-view-switch{width:100%}}.calendar-event.priority-normale{border-left-color:#2f9d62;background:#e8f6ee;color:#17643f}.calendar-event.priority-urgente{border-left-color:#e0ad24;background:#fff6cf;color:#725600}.calendar-event.priority-critique{border-left-color:var(--danger);background:#fde8e8;color:#9f2929}.calendar-grid.has-week-numbers .calendar-day:nth-child(7n){border-right:1px solid var(--line)}.calendar-grid.has-week-numbers .calendar-day:nth-child(8n){border-right:0}.stock-filter-panel{padding:11px 14px 9px;border-bottom:1px solid var(--line);background:#fbfcfd}.stock-filters{display:grid;grid-template-columns:minmax(220px,1.7fr) repeat(3,minmax(105px,.75fr)) minmax(145px,1fr) 36px;align-items:end;gap:8px}.stock-filters label{gap:3px;font-size:.68rem}.stock-filters input,.stock-filters select{height:36px;padding:7px 8px;font-size:.78rem}.stock-filter-reset{display:grid;place-items:center;width:36px;height:36px;padding:0;border:1px solid var(--line);border-radius:8px;background:#fff;color:var(--accent);font-size:1.15rem;font-weight:800}.stock-filter-reset:hover{border-color:var(--accent);background:var(--accent-soft)}.stock-filter-summary{margin:7px 0 0;color:var(--muted);font-size:.72rem;font-weight:700}.stock-parts-table{min-width:1160px;table-layout:fixed}.stock-parts-table th:nth-child(1){width:64px}.stock-parts-table th:nth-child(2){width:110px}.stock-parts-table th:nth-child(3){width:170px}.stock-parts-table th:nth-child(4){width:130px}.stock-parts-table th:nth-child(5){width:82px}.stock-parts-table th:nth-child(6){width:58px}.stock-parts-table th:nth-child(7){width:90px}.stock-parts-table th:nth-child(8){width:96px}.stock-parts-table th:nth-child(9){width:62px}.stock-parts-table th:nth-child(10){width:105px}.stock-parts-table th:nth-child(11){width:178px}.stock-parts-table td{overflow-wrap:anywhere}.stock-price,.stock-total-cell{white-space:nowrap}.stock-total-heading,.stock-total-cell{background:#f1f4f6;color:#596575}.stock-total-cell{font-weight:800}.stock-threshold-heading,.stock-threshold-cell{text-align:center}.stock-row-actions{justify-content:flex-end}.stock-action{display:grid;place-items:center;width:30px;height:30px;padding:0;font-size:1rem}.stock-row-actions .icon-btn{width:30px;height:30px}@media(max-width:1050px){.stock-filters{grid-template-columns:repeat(3,minmax(0,1fr)) 36px}.stock-filter-search{grid-column:span 2}}@media(max-width:680px){.stock-filters{grid-template-columns:1fr 1fr}.stock-filter-search{grid-column:1/-1}.stock-filter-reset{justify-self:end}}@media(max-width:460px){.stock-filters{grid-template-columns:1fr}.stock-filter-search{grid-column:auto}.stock-filter-reset{justify-self:start}}.stock-parts-table th:nth-child(1){width:60px}.stock-parts-table th:nth-child(2){width:105px}.stock-parts-table th:nth-child(3){width:150px}.stock-parts-table th:nth-child(4){width:120px}.stock-parts-table th:nth-child(5){width:120px}.stock-parts-table th:nth-child(6){width:75px}.stock-parts-table th:nth-child(7){width:52px}.stock-parts-table th:nth-child(8){width:85px}.stock-parts-table th:nth-child(9){width:92px}.stock-parts-table th:nth-child(10){width:58px}.stock-parts-table th:nth-child(11){width:100px}.stock-parts-table th:nth-child(12){width:170px}.stock-parts-table{min-width:1260px}.stock-parts-table th:nth-child(1){width:38px}.stock-parts-table th:nth-child(2){width:58px}.stock-parts-table th:nth-child(3){width:105px}.stock-parts-table th:nth-child(4){width:145px}.stock-parts-table th:nth-child(5){width:115px}.stock-parts-table th:nth-child(6){width:115px}.stock-parts-table th:nth-child(7){width:72px}.stock-parts-table th:nth-child(8){width:50px}.stock-parts-table th:nth-child(9){width:82px}.stock-parts-table th:nth-child(10){width:90px}.stock-parts-table th:nth-child(11){width:55px}.stock-parts-table th:nth-child(12){width:98px}.stock-parts-table th:nth-child(13){width:168px}.stock-row-number-heading,.stock-row-number{text-align:center;color:var(--muted)}.stock-row-number{font-size:.72rem;font-weight:800;font-variant-numeric:tabular-nums}.stock-parts-table th{padding-top:8px;padding-bottom:8px}.stock-parts-table td{padding-top:6px;padding-bottom:6px;line-height:1.2}.stock-parts-table .part-table-photo{width:48px;height:36px;border-radius:6px}.stock-parts-table .badge{padding:3px 7px}.stock-parts-table .stock-quantity{font-size:.95rem}.trash-icon{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.intervention-remove-button{display:grid;place-items:center;width:32px;height:32px;padding:0;border:1px solid #f0caca;border-radius:8px;background:#fff}.stock-export-options{display:grid;gap:14px}.stock-export-options fieldset{margin:0;padding:12px 14px;border:1px solid var(--line);border-radius:10px}.stock-export-options legend{padding:0 6px;color:var(--ink);font-size:.82rem;font-weight:800}.stock-export-formats{display:flex;flex-wrap:wrap;gap:9px 18px}.stock-export-formats label,.stock-export-columns label{display:flex;grid-template-columns:none;align-items:center;gap:7px;color:var(--ink);font-size:.8rem}.stock-export-formats input,.stock-export-columns input{width:auto;margin:0}.stock-export-columns{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px 12px}.stock-export-help{margin:0 0 10px;font-size:.75rem}@media(max-width:620px){.stock-export-columns{grid-template-columns:1fr 1fr}}.intervention-filter-panel{padding:12px 14px}.intervention-filters{grid-template-columns:repeat(6,minmax(0,1fr));gap:8px}.intervention-filters .filter-search{grid-column:span 2}.intervention-filters label{gap:3px;font-size:.7rem}.intervention-filter-panel input,.intervention-filter-panel select{height:37px;padding:7px 9px;font-size:.8rem}.intervention-filters .filter-reset{height:37px}.intervention-filter-summary{margin-top:8px;font-size:.74rem}.park-panel-actions{flex-wrap:nowrap}.park-panel-actions .secondary,.park-panel-actions .icon-btn{flex:none}@media(max-width:1100px){.intervention-filters{grid-template-columns:repeat(3,minmax(0,1fr))}.intervention-filters .filter-search{grid-column:span 2}}@media(max-width:680px){.intervention-filters{grid-template-columns:1fr 1fr}.intervention-filters .filter-search{grid-column:1/-1}}@media(max-width:460px){.intervention-filters{grid-template-columns:1fr}.intervention-filters .filter-search{grid-column:auto}}.machine-card-actions{right:9px;bottom:-13px;gap:1px;padding:2px;border-radius:9px}.machine-card-actions .icon-btn{width:24px;height:24px;border-radius:6px;font-size:.72rem}.machine-card-actions .trash-icon{width:13px;height:13px}.pdf-icon{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}.pdf-icon text{fill:currentColor;stroke:none;font-size:5px;font-family:Arial,sans-serif;font-weight:800;text-anchor:middle}.pdf-action{color:var(--accent)}.pdf-action+.delete-action{margin-left:5px}dialog.pdf-preview-dialog{display:none;width:min(1120px,calc(100% - 24px));height:min(92vh,920px);max-height:calc(100vh - 24px);padding:0;overflow:hidden}dialog.pdf-preview-dialog[open]{display:flex;flex-direction:column}.pdf-preview-head{display:flex;align-items:center;justify-content:space-between;flex:0 0 auto;padding:12px 14px;border-bottom:1px solid var(--line);background:#fff}.pdf-preview-head strong{display:block;margin-top:2px}.pdf-preview-head .icon-btn{width:32px;height:32px}.pdf-preview-dialog iframe{display:block;flex:1;width:100%;min-height:0;border:0;background:#dfe8f2}@media(max-width:600px){dialog.pdf-preview-dialog{width:calc(100% - 12px);height:calc(100vh - 12px);max-height:calc(100vh - 12px)}}.stock-filters{grid-template-columns:minmax(250px,1.8fr) minmax(110px,.8fr) minmax(110px,.8fr) minmax(86px,.55fr) minmax(105px,.65fr) minmax(170px,1.1fr) 36px}@media(max-width:1050px){.stock-filters{grid-template-columns:repeat(3,minmax(0,1fr)) 36px}}.dashboard-task-main{display:flex!important;grid-template-columns:none!important;align-items:center;gap:16px;min-width:0}.dashboard-task-main>span{display:grid;gap:3px;min-width:0}.dashboard-task-photo{flex:0 0 auto;width:44px;height:36px;border-radius:7px;object-fit:cover;background:var(--accent-soft)}.entry-choice-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.entry-choice-grid>button{display:grid;grid-template-rows:auto auto 1fr;gap:8px;min-height:190px;padding:20px;border:1px solid var(--line);border-radius:14px;background:#fff;color:var(--ink);text-align:left}.entry-choice-grid>button:hover{border-color:var(--accent);background:var(--accent-soft);box-shadow:0 10px 28px #17203312}.entry-choice-icon{display:grid;place-items:center;width:44px;height:44px;border-radius:12px;background:var(--accent-soft);color:var(--accent);font-size:1.35rem}.entry-choice-grid strong{font-size:1.05rem}.entry-choice-grid small{color:var(--muted);line-height:1.45}.calendar-embedded-title{grid-column:1!important}.calendar-embedded>.calendar-toolbar>.calendar-create{grid-column:2;justify-self:end;padding:6px 10px;border-radius:9px;font-size:.76rem}.calendar-embedded>.calendar-toolbar>.calendar-create span{font-size:1.15rem}@media(max-width:560px){.entry-choice-grid{grid-template-columns:1fr}.entry-choice-grid>button{min-height:145px}.calendar-embedded-title{grid-column:1!important}.calendar-embedded>.calendar-toolbar>.calendar-create{grid-column:2;justify-self:end}.calendar-embedded .calendar-navigation,.calendar-embedded .calendar-view-actions{grid-column:1/-1}}.subassembly-card-actions{display:flex;align-items:center;gap:4px}.subassembly-card-actions .icon-btn{width:30px;height:30px;border-radius:8px}.subassembly-card-actions .trash-icon{width:14px;height:14px}.machine-gallery-item{position:relative;aspect-ratio:4/3}.machine-gallery-item>button:first-child{width:100%;height:100%;aspect-ratio:auto}.machine-gallery .machine-gallery-delete{position:absolute;top:-7px;right:-7px;z-index:2;width:26px;height:26px;min-width:26px;aspect-ratio:1;padding:5px;border:1px solid #f0caca;border-radius:50%;overflow:visible;background:#fff;box-shadow:0 3px 10px #17203326}.machine-gallery .machine-gallery-delete:hover{background:#fde8e8}.machine-gallery .machine-gallery-delete .trash-icon{width:14px;height:14px}.page-head-actions{display:flex;align-items:center;justify-content:flex-end;gap:9px;flex-wrap:wrap}@media(max-width:650px){.page-head-actions{width:100%;justify-content:stretch}.page-head-actions>*{flex:1 1 190px}}.stock-parts-table th.stock-reference-heading{width:74px}.stock-reference-heading{letter-spacing:.04em}.stock-reference-cell{white-space:nowrap;font-variant-numeric:tabular-nums}.stock-location-heading{padding-inline:5px;font-size:.62rem;letter-spacing:.015em}.stock-location-cell{padding-inline:7px;white-space:nowrap;font-size:.76rem}.stock-total-heading{font-size:0}.stock-total-heading:after{content:"TOTAL HT";font-size:.68rem;letter-spacing:.04em}.stock-document-toolbar{display:flex;align-items:center;justify-content:flex-end;gap:8px;margin:0 0 12px}.stock-document-toolbar .secondary{height:38px}@media(max-width:560px){.stock-document-toolbar{display:grid;grid-template-columns:1fr 1fr}.stock-document-toolbar .secondary{width:100%;padding-inline:8px;font-size:.78rem}}.locked-field input{background:#eef1f4;color:#697386;cursor:not-allowed}#stock-form [hidden]{display:none}#stock-history-dialog table{min-width:1050px}
