:root{font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,sans-serif;color:#0f172a;background-color:#f1f5f9}*{box-sizing:border-box}body{margin:0}.layout{display:flex;min-height:100vh}.sidebar{width:240px;background-color:#0f172a;color:#e2e8f0;padding:20px 14px;display:flex;flex-direction:column;gap:20px}.brand{font-size:1.15rem;font-weight:700;padding:0 10px;color:#fff;letter-spacing:.02em}.nav{display:flex;flex-direction:column;gap:6px}.nav-item,.nav-subitem{width:100%;text-align:left;background:transparent;border:none;color:#cbd5e1;padding:10px 12px;border-radius:8px;font-size:.95rem;cursor:pointer;transition:background-color .15s,color .15s}.nav-item:hover,.nav-subitem:hover{background-color:#1e293b;color:#fff}.nav-item.active,.nav-subitem.active{background-color:#2563eb;color:#fff;font-weight:600}.nav-group-toggle{display:flex;justify-content:space-between;align-items:center}.submenu{display:flex;flex-direction:column;gap:4px;padding-left:16px;margin-top:4px}.nav-subitem{font-size:.9rem;padding:8px 12px}.content{flex:1;padding:28px 32px;max-width:1100px}.page{display:flex;flex-direction:column;gap:20px}.page-header{display:flex;justify-content:space-between;align-items:flex-start;gap:16px}.page-header h1{margin:0;font-size:1.6rem}.subtitle{margin:4px 0 0;color:#475569;font-size:.92rem}.card,.empty-card{background:#fff;border-radius:12px;padding:20px;box-shadow:0 1px 3px #0f172a14}.card h2{margin:0 0 14px;font-size:1.08rem}.form-grid{display:flex;flex-direction:column;gap:12px}.form-row{display:grid;grid-template-columns:1fr 1fr;gap:12px}label{display:flex;flex-direction:column;gap:6px;font-size:.88rem;font-weight:600;color:#334155}input,textarea{font:inherit;font-weight:400;padding:8px 10px;border:1px solid #cbd5e1;border-radius:8px;background:#fff}input:focus,textarea:focus{outline:2px solid #2563eb;border-color:transparent}.form-actions{display:flex;gap:10px}.btn{border:none;border-radius:8px;padding:9px 15px;font:inherit;font-size:.9rem;font-weight:600;cursor:pointer}.btn:disabled{opacity:.6;cursor:not-allowed}.btn-primary{background-color:#2563eb;color:#fff}.btn-secondary{background-color:#e2e8f0;color:#1e293b}.btn-danger{background-color:#dc2626;color:#fff}.btn-small{padding:5px 10px;font-size:.82rem}.table{width:100%;table-layout:fixed;border-collapse:collapse;font-size:.92rem}.table th,.table td{text-align:left;padding:10px 8px;border-bottom:1px solid #e2e8f0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.table th:nth-child(1),.table td:nth-child(1){width:110px}.table th:nth-child(2),.table td:nth-child(2){width:22%}.table th:nth-child(3),.table td:nth-child(3){width:18%}.table th:nth-child(5),.table td:nth-child(5){width:140px}.table th{color:#475569;font-weight:600}.actions-cell{display:flex;gap:8px}.badge{display:inline-block;background:#eff6ff;color:#1d4ed8;padding:2px 8px;border-radius:999px;font-size:.82rem;font-weight:500}.alert-error{background:#fee2e2;color:#991b1b;padding:12px 14px;border-radius:8px;font-size:.9rem}.muted{color:#64748b;margin:0}@keyframes flashGreen{0%{background-color:#4ade80}70%{background-color:#bbf7d0}to{background-color:transparent}}.cell-updated{animation:flashGreen 2s ease-out!important;border-radius:6px}.header-actions{display:flex;gap:10px}.tabs{display:flex;flex-wrap:wrap;gap:8px;border-bottom:1px solid #cbd5e1;padding-bottom:10px}.tab{border:1px solid #cbd5e1;background:#fff;color:#334155;padding:7px 14px;border-radius:999px;font:inherit;font-size:.88rem;font-weight:600;cursor:pointer;transition:background-color .15s,color .15s,border-color .15s}.tab:hover{background:#f8fafc;border-color:#94a3b8}.tab.active{background:#2563eb;color:#fff;border-color:#2563eb}.modal-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;background:#0f172a8c;display:flex;align-items:center;justify-content:center;padding:20px;z-index:50}.modal{width:100%;max-width:560px;background:#fff;border-radius:14px;padding:24px;box-shadow:0 20px 45px #0f172a40;display:flex;flex-direction:column;gap:14px}.modal-header{display:flex;justify-content:space-between;align-items:center}.modal-header h2{margin:0;font-size:1.2rem}.modal-close{background:transparent;border:none;font-size:1.4rem;line-height:1;color:#64748b;cursor:pointer;padding:4px 8px}.modal-close:hover{color:#0f172a}.login-screen{min-height:100vh;display:flex;align-items:center;justify-content:center;background:#0f172a;padding:24px}.login-card{width:100%;max-width:420px;background:#fff;border-radius:14px;padding:32px;box-shadow:0 20px 50px #00000059;display:flex;flex-direction:column;gap:14px;text-align:center}.login-brand{font-size:1.4rem;font-weight:800;color:#2563eb}.login-card h1{margin:0;font-size:1.35rem;color:#0f172a}.login-btn{margin-top:8px;width:100%;padding:12px 18px;font-size:.95rem}.sidebar{display:flex;flex-direction:column}.sidebar-footer{margin-top:auto;padding-top:16px;border-top:1px solid rgba(148,163,184,.2);display:flex;flex-direction:column;gap:10px}.user-badge{display:flex;flex-direction:column;gap:2px}.user-name{font-size:.85rem;font-weight:600;color:#f8fafc}.user-upn{font-size:.75rem;color:#94a3b8;word-break:break-all}.btn-logout{width:100%;background:#ef444424;color:#fca5a5;border:1px solid rgba(239,68,68,.35);border-radius:8px;padding:8px 12px;font-size:.85rem;cursor:pointer}.btn-logout:hover{background:#ef444440;color:#fff}.alert-success{background:#dcfce7;color:#166534;border:1px solid #86efac;border-radius:8px;padding:12px 16px;font-size:.9rem}.status-pill{display:inline-block;padding:4px 10px;border-radius:999px;font-size:.78rem;font-weight:600}.status-active{background:#dcfce7;color:#166534}.status-blocked{background:#fee2e2;color:#991b1b}.self-tag{margin-left:8px;padding:2px 6px;border-radius:4px;background:#e0e7ff;color:#3730a3;font-size:.72rem;font-weight:600}.password-input-wrap{position:relative;display:flex;align-items:center;width:100%}.password-input-wrap input{width:100%;padding-right:40px}.password-toggle-btn{position:absolute;right:8px;top:50%;transform:translateY(-50%);background:transparent;border:none;color:#64748b;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;padding:4px;border-radius:6px}.password-toggle-btn:hover{color:#0f172a;background:#94a3b829}.mobile-topbar{display:none}.sidebar-header-row{display:flex;align-items:center;justify-content:space-between}.sidebar-close-btn{display:none;background:transparent;border:none;color:#cbd5e1;font-size:1.5rem;line-height:1;cursor:pointer;padding:4px 8px}.sidebar-backdrop{display:none}.table-card{overflow-x:auto}@media(max-width:1024px){.content{padding:22px 20px}}@media(max-width:900px){.layout{flex-direction:column}.mobile-topbar{display:flex;align-items:center;gap:12px;position:sticky;top:0;z-index:30;background-color:#0f172a;color:#fff;padding:12px 16px;box-shadow:0 2px 8px #0f172a33}.hamburger-btn{display:inline-flex;align-items:center;justify-content:center;background:#ffffff14;border:1px solid rgba(148,163,184,.25);color:#fff;border-radius:8px;padding:6px 8px;cursor:pointer}.mobile-brand{font-size:1.05rem;font-weight:700;letter-spacing:.02em}.sidebar{position:fixed;top:0;left:0;bottom:0;width:260px;max-width:82vw;z-index:50;transform:translate(-100%);transition:transform .2s ease-out;box-shadow:4px 0 24px #0f172a59}.sidebar.open{transform:translate(0)}.sidebar-close-btn{display:inline-block}.sidebar-backdrop{display:block;position:fixed;top:0;right:0;bottom:0;left:0;z-index:40;background:#0f172a8c}.content{width:100%;max-width:100%;min-width:0;padding:16px}.page-header,.page-header-row{flex-direction:column;align-items:stretch}.header-actions{display:flex;flex-wrap:wrap;gap:8px}.login-screen{padding:16px}.login-card{padding:24px 18px}.modal-card{width:calc(100vw - 24px);max-width:480px;padding:18px}}.products-table-scroll{width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}.mobile-product-id{display:none}@media(max-width:900px){.products-table-responsive{table-layout:auto;min-width:540px}.products-table-responsive th:nth-child(1),.products-table-responsive td:nth-child(1){display:none}.products-table-responsive th:nth-child(2),.products-table-responsive td:nth-child(2){position:sticky;left:0;z-index:2;background-color:#fff;width:165px;min-width:150px;max-width:180px;white-space:normal;word-break:break-word;box-shadow:3px 0 8px #0f172a14}.products-table-responsive th:nth-child(2){background-color:#f8fafc;z-index:3}.product-name-main{font-weight:600;color:#0f172a;line-height:1.25}.mobile-product-id{display:block;margin-top:3px;font-size:.72rem;color:#64748b}.products-table-responsive th:nth-child(3),.products-table-responsive td:nth-child(3){width:auto;min-width:110px}.products-table-responsive th:nth-child(4),.products-table-responsive td:nth-child(4){width:auto;min-width:160px}.products-table-responsive th:nth-child(5),.products-table-responsive td:nth-child(5){width:auto;min-width:135px}}.table-header-row{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;margin-bottom:12px}.table-header-row h2{margin:0}.search-box{display:flex;align-items:center;gap:6px}.search-input{width:240px;max-width:100%;padding:7px 10px;border:1px solid #cbd5e1;border-radius:8px;font-size:.88rem;color:#0f172a;background:#fff}.search-input:focus{outline:2px solid rgba(37,99,235,.25);border-color:#2563eb}.search-btn{display:inline-flex;align-items:center;justify-content:center;padding:7px 10px;border:1px solid #cbd5e1;border-radius:8px;background:#f8fafc;color:#1e293b;cursor:pointer}.search-btn:hover{background:#e2e8f0}.mobile-actions-toggle{display:none}.actions-buttons{display:flex;gap:8px}@media(max-width:900px){.search-box{width:100%}.search-input{flex:1;width:auto}.products-table-responsive th:nth-child(5),.products-table-responsive td:nth-child(5){position:sticky;right:0;z-index:2;background-color:#fff;width:auto;min-width:56px;box-shadow:-3px 0 8px #0f172a14;text-align:right}.products-table-responsive th:nth-child(5){background-color:#f8fafc;z-index:3}.actions-cell{justify-content:flex-end;align-items:center;gap:6px}.mobile-actions-toggle{display:inline-flex;align-items:center;justify-content:center;min-width:30px;font-weight:700}.actions-buttons{display:none}.actions-buttons.open{display:flex;gap:6px}}.btn-install{width:100%;background:#0ea5e9;color:#fff;border:none;border-radius:8px;padding:10px 14px;font-size:.9rem;font-weight:600;cursor:pointer}.btn-install:hover{background:#0284c7}.mobile-install-btn{margin-left:auto}.pwa-update-banner{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;background:#fef3c7;color:#92400e;border:1px solid #fcd34d;border-radius:10px;padding:12px 16px;margin-bottom:16px;font-size:.9rem;font-weight:500}.pwa-update-inline{display:flex;flex-direction:column;gap:8px;align-items:center;background:#fef3c7;color:#92400e;border:1px solid #fcd34d;border-radius:8px;padding:10px 12px;font-size:.85rem}.actions-header-cell{white-space:nowrap}@media(max-width:900px){.actions-header-cell{display:flex;align-items:center;justify-content:flex-end;gap:6px}}
