*,*:before,*:after{box-sizing:border-box;margin:0;padding:0}html,body{height:100%}body{font-family:Google Sans,system-ui,-apple-system,sans-serif;background:#f2f2f2;color:#260e09;-webkit-text-size-adjust:100%;-webkit-tap-highlight-color:transparent}input,button,select,textarea{font:inherit;color:inherit}button{cursor:pointer}img{max-width:100%;display:block}a{color:inherit}@media(max-width:768px){button,select,input[type=checkbox],a{min-height:36px}input,select,textarea{font-size:16px!important}}.app-shell{display:flex;height:100vh;height:100dvh}.app-topbar{display:none;position:sticky;top:0;z-index:50;background:#260e09;color:#fff;padding:12px 16px;align-items:center;gap:12px}.app-topbar .hamburger{background:transparent;border:1px solid rgba(255,255,255,.3);color:#fff;width:40px;height:40px;border-radius:10px;font-size:20px;display:inline-flex;align-items:center;justify-content:center}.app-topbar .brand{font-weight:800;font-size:18px}.app-topbar .brand .accent{color:#fd5701}.app-sidebar{width:260px;background:#260e09;color:#fff;padding:24px 0;display:flex;flex-direction:column;flex-shrink:0;z-index:60}.app-sidebar.collapsed{width:72px}.app-sidebar{position:relative}.sidebar-toggle{width:26px;height:26px;display:inline-flex;align-items:center;justify-content:center;padding:0;border:none;border-radius:50%;background:#260e09;color:#ffffffbf;cursor:pointer;box-shadow:0 2px 6px #0003}.sidebar-toggle:hover{color:#fd5701}.app-sidebar-backdrop{display:none}.app-sidebar-nav{overflow-y:auto;scrollbar-width:none;-ms-overflow-style:none}.app-sidebar-nav::-webkit-scrollbar{display:none}.app-main{flex:1;padding:32px;overflow:auto;background:#f2f2f2;min-width:0}@media(max-width:768px){.app-shell{flex-direction:column}.app-topbar{display:flex}.app-sidebar{position:fixed;inset:0 auto 0 0;transform:translate(-100%);transition:transform .25s ease;width:min(86vw,320px);padding-top:16px;box-shadow:0 10px 30px #00000059}.app-sidebar.open{transform:translate(0)}.app-sidebar-backdrop{display:none;position:fixed;top:0;right:0;bottom:0;left:0;background:#00000080;z-index:55}.app-sidebar-backdrop.open{display:block}.app-main{padding:16px}h1{font-size:20px!important}}.page-header{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:20px;flex-wrap:wrap}.page-header h1{font-size:22px;font-weight:700}.page-actions{display:flex;gap:8px;flex-wrap:wrap}.table-wrap{background:#fff;border-radius:16px;overflow-x:auto;-webkit-overflow-scrolling:touch;box-shadow:0 1px 4px #0000000a}.table-wrap>table{width:100%;min-width:640px;border-collapse:collapse}.table-wrap th,.table-wrap td{padding:14px 16px;text-align:left;font-size:14px;border-bottom:1px solid #f5f5f5;white-space:nowrap}.table-wrap th{font-size:13px;font-weight:600;color:#888;background:#fafafa;border-bottom:1px solid #eee}.table-wrap tr:last-child td{border-bottom:none}.table-wrap.compact th,.table-wrap.compact td{padding:8px 12px;font-size:13px}.table-wrap thead.sticky-head th{position:sticky;top:0;z-index:1;background:#fafafa}@media(max-width:768px){.table-wrap>table{min-width:540px}.table-wrap th,.table-wrap td{padding:12px;font-size:13px}.col-hide-mobile{display:none!important}}.modal-overlay{position:fixed;top:0;right:0;bottom:0;left:0;background:#00000080;display:flex;align-items:center;justify-content:center;z-index:100;padding:16px}.modal-card{background:#fff;border-radius:20px;padding:24px;width:100%;max-width:520px;max-height:calc(100vh - 32px);max-height:calc(100dvh - 32px);overflow:auto}@media(max-width:480px){.modal-overlay{padding:0;align-items:stretch}.modal-card{border-radius:0;padding:20px;max-height:100vh;max-height:100dvh}}.modal-card.machinery-form{max-width:780px;padding:0;display:flex;flex-direction:column;overflow:hidden;color:#260e09}.mf-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding:20px 24px;border-bottom:1px solid #F0F0F0}.mf-head h2{font-size:20px;font-weight:700}.mf-head p{font-size:13px;color:#888;margin-top:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mf-close{width:34px;height:34px;flex-shrink:0;border:none;border-radius:50%;background:#f2f2f2;color:#666;font-size:22px;line-height:1;cursor:pointer}.mf-close:hover{background:#e8e8e8;color:#260e09}.mf-body{flex:1;min-height:0;overflow-y:auto;padding:16px 24px;background:#f7f7f7;display:flex;flex-direction:column;gap:12px}.mf-foot{display:flex;align-items:center;justify-content:flex-end;gap:10px;padding:14px 24px;border-top:1px solid #F0F0F0;background:#fff}.mf-error{flex:1;min-width:0;color:#dc2626;font-size:13px}.mf-section{flex-shrink:0;background:#fff;border-radius:14px;padding:18px}.mf-section h3{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:32px;font-size:15px;font-weight:700;margin-bottom:12px}.mf-section h3 em{font-style:normal;font-size:12px;font-weight:600;color:#888;background:#f2f2f2;border-radius:10px;padding:2px 8px;margin-left:8px}.mf-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 14px}.mf-grid--3{grid-template-columns:repeat(3,minmax(0,1fr))}.mf-field{display:flex;flex-direction:column;gap:5px;min-width:0}.mf-field--full{grid-column:1 / -1}.mf-label{font-size:12px;font-weight:600;color:#777}.mf-label b{color:#fd5701}.mf-hint{font-size:12px;color:#999}.mf-section>.mf-hint{margin-top:10px}.mf-input{width:100%;height:42px;padding:0 12px;background:#f4f4f4;border:1px solid transparent;border-radius:10px;font-size:14px;color:#260e09;font-family:inherit;transition:background .15s,border-color .15s,box-shadow .15s}textarea.mf-input{height:auto;padding:10px 12px}.mf-input:hover:not(:disabled){background:#efefef}.mf-input:focus{outline:none;background:#fff;border-color:#fd5701;box-shadow:0 0 0 3px #fd57011f}.mf-input:disabled{color:#999;cursor:not-allowed}.mf-photos{display:grid;grid-template-columns:repeat(auto-fill,minmax(118px,1fr));gap:10px}.mf-photo,.mf-upload{position:relative;aspect-ratio:4 / 3;border-radius:10px;overflow:hidden}.mf-photo{background:#f2f2f2}.mf-photo.is-main{box-shadow:0 0 0 2px #fd5701}.mf-photo img{width:100%;height:100%;object-fit:cover;display:block}.mf-photo-badge{position:absolute;left:6px;top:6px;padding:2px 7px;border-radius:6px;background:#fd5701;color:#fff;font-size:11px;font-weight:600}.mf-photo-badge.is-new{background:#260e09}.mf-photo-remove{position:absolute;right:6px;top:6px;width:24px;height:24px;border:none;border-radius:50%;background:#260e09a6;color:#fff;font-size:16px;line-height:1;cursor:pointer}.mf-photo-remove:hover{background:#dc2626}.mf-photo-main{position:absolute;left:0;right:0;bottom:0;padding:6px 4px;border:none;background:#260e09b3;color:#fff;font-size:11px;font-weight:600;cursor:pointer;opacity:0;transition:opacity .15s}.mf-photo:hover .mf-photo-main,.mf-photo-main:focus-visible{opacity:1}@media(hover:none){.mf-photo-main{opacity:1}}.mf-upload{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;border:1.5px dashed #D5D5D5;color:#777;font-size:12px;font-weight:600;text-align:center;cursor:pointer;transition:border-color .15s,color .15s,background .15s}.mf-upload:hover,.mf-upload:focus-within{border-color:#fd5701;color:#fd5701;background:#fff6f2}.mf-upload input{position:absolute;width:1px;height:1px;opacity:0}.mf-upload-plus{font-size:24px;font-weight:400;line-height:1}.mf-specs{margin-top:14px;border-top:1px solid #F0F0F0}.mf-specs>.mf-hint{display:block;padding:12px 0 2px}.mf-spec{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) 30px;align-items:center;gap:8px;border-bottom:1px solid #F0F0F0}.mf-spec input{width:100%;height:40px;padding:0 8px;border:none;border-radius:6px;background:transparent;font-size:14px;font-family:inherit;color:#260e09}.mf-spec input:first-child{color:#777}.mf-spec input:hover{background:#f7f7f7}.mf-spec input:focus{outline:none;background:#fff6f2}.mf-spec button{width:26px;height:26px;border:none;border-radius:50%;background:none;color:#bbb;font-size:18px;line-height:1;cursor:pointer}.mf-spec button:hover{background:#fee2e2;color:#dc2626}.mf-add{margin-top:10px;border:none;background:none;padding:4px 0;color:#fd5701;font-size:13px;font-weight:600;font-family:inherit;cursor:pointer}.mf-add:hover{text-decoration:underline}@media(max-width:480px){.modal-card.machinery-form{padding:0}.mf-head,.mf-foot{padding-left:16px;padding-right:16px}.mf-body{padding:12px}.mf-section{padding:14px}.mf-grid,.mf-grid--3{grid-template-columns:minmax(0,1fr)}.mf-spec{grid-template-columns:minmax(0,1fr) 30px}.mf-spec input:nth-child(2){grid-column:1;grid-row:2}.mf-spec button{grid-column:2;grid-row:1 / span 2}}.form-grid-2{display:grid;grid-template-columns:1fr 1fr;gap:10px}.form-grid-2>*{min-width:0}@media(max-width:480px){.form-grid-2{grid-template-columns:1fr}}.stat-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:16px}@media(max-width:480px){.stat-grid{grid-template-columns:repeat(2,1fr);gap:12px}}.card-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:16px}@media(max-width:480px){.card-grid{grid-template-columns:1fr}}.loader-spinner{width:22px;height:22px;flex-shrink:0;border:3px solid #FDE3D6;border-top-color:#fd5701;border-radius:50%;animation:loader-spin .8s linear infinite}.loader-bar{position:relative;height:6px;margin-top:12px;background:#fde3d6;border-radius:3px;overflow:hidden}.loader-bar:after{content:"";position:absolute;top:0;left:-40%;width:40%;height:100%;background:#fd5701;border-radius:3px;animation:loader-slide 1.2s ease-in-out infinite}@keyframes loader-spin{to{transform:rotate(360deg)}}@keyframes loader-slide{to{left:100%}}
