body{color:#222;background:#f5f2eb;margin:0;font-family:serif}.app{box-sizing:border-box;width:100%;min-height:100vh;padding:0;display:flex}.content-area{flex:1;min-width:0}.app-header{box-sizing:border-box;background:#f5f4f2;border-bottom:1px solid #d6c39d;justify-content:flex-end;align-items:center;height:56px;padding:0 24px;display:flex}.header-user{align-items:center;gap:15px;display:flex;position:relative}.user-avatar{background:#e5c9a5;border-radius:50%;justify-content:center;align-items:center;width:36px;height:36px;display:flex}.user-name{white-space:nowrap;font-size:15px}.logout-button{color:#8a641f;cursor:pointer;background:#fff;border:1px solid #c79a45;border-radius:6px;padding:6px 12px;transition:all .2s}.logout-button:hover{background:#f7f3ec}.main-area{box-sizing:border-box;padding:30px}.page-title{align-items:center;gap:10px;margin:0 0 30px;font-size:32px;display:flex}.alert-box{background:#fff3e0;border-left:4px solid #e8942f;border-radius:8px;justify-content:space-between;align-items:center;margin:12px;padding:6px 20px;font-size:medium;font-weight:700;display:flex}.alert-box span{color:#d93636}.alert-box-icon{align-items:center;gap:8px;display:flex}.filter-area{align-items:center;gap:16px;width:100%;margin-bottom:20px;margin-left:20px;display:flex}.filter-area select{color:#222;background:#fff;border:1px solid #d6c39d;border-radius:6px;flex:1;height:44px;padding:0 12px;font-size:13px}.search-box{background:#fff;border:1px solid #d6c39d;border-radius:6px;flex:2;align-items:center;height:44px;padding:0 12px;display:flex}.search-box span{margin-right:8px;font-size:20px}.search-box input{border:none;outline:none;width:100%;font-size:13px}.items-header{justify-content:space-between;align-items:center;margin-bottom:20px;display:flex}.items-header-actions{align-items:center;gap:16px;display:flex}.category-button{color:#9a7229;cursor:pointer;background:#fff;border:1px solid #c9a45c;border-radius:8px;height:40px;padding:0 22px;font-size:13px;font-weight:500}.category-button:hover{background:#f8f1e3}.item-add-button{color:#181818;cursor:pointer;background:#c9a45c;border:none;border-radius:8px;height:40px;padding:0 22px;font-size:13px;font-weight:500}.item-add-button:hover{background:#e3c27d}.item-table{border-collapse:collapse;table-layout:fixed;white-space:nowrap;background:#fff;border-radius:10px;width:100%;overflow:hidden;box-shadow:0 2px 8px #00000014}.item-table th,.item-table td{text-align:center;border-bottom:1px solid #ddd6c8;padding:10px 24px}.item-table th{color:#2a2a2a;background:#eee9df;font-size:14px;font-weight:700}.item-table td{height:40px;font-size:15px}.item-table th:first-child,.item-table td:first-child{width:5%}.item-table th:nth-child(2),.item-table td:nth-child(2){width:30%}.item-table th:nth-child(3),.item-table td:nth-child(3){width:15%}.item-table th:nth-child(4),.item-table td:nth-child(4){width:30%}.item-table th:nth-child(5),.item-table td:nth-child(5){width:5%}.item-table th:nth-child(6),.item-table td:nth-child(6){width:15%}.item-name{font-size:22px;font-weight:700}.item-category{border-radius:8px;padding:6px 12px;font-size:12px;display:inline-block}.item-stock{justify-content:center;align-items:center;gap:6px;font-size:24px;font-weight:700;display:flex}.stock-number{text-align:center;flex-direction:column;align-items:center;display:flex}.stock-change{margin-bottom:2px;font-size:14px;line-height:1}.stock-control{color:#333;cursor:pointer;background:#f8f4eb;border:1px solid #d6b56c;border-radius:6px;width:28px;height:28px;font-size:16px}.stock-control:hover{background:#eee4d2}.stock-control:disabled{opacity:.4;cursor:not-allowed}.stock-decision{color:#fff;cursor:pointer;background:#c9a45c;border:none;border-radius:50%;width:28px;height:28px;margin-left:4px;font-size:15px}.stock-decision:hover{background:#b38d43}.item-actions,.category-actions{justify-content:center;align-items:center;gap:6px;display:flex}.item-edit-button,.item-delete-button,.item-stock-in-button,.category-edit-button,.category-delete-button{cursor:pointer;border-radius:6px;width:42px;height:32px;padding:0;font-size:14px}.item-stock-in-button{color:#557b5d;background:#f3f8f3;border:1px solid #9bb8a0}.item-stock-in-button:hover{background:#e5f0e6}.item-edit-button,.category-edit-button{color:#8f6b28;background:#fffaf0;border:1px solid #d6c39d}.item-edit-button,.category-edit-button:hover{background:#f8f1e3}.item-delete-button,.category-delete-button{color:#c62828;background:#fff8f7;border:1px solid #d8bebe}.item-delete-button,.category-delete-button:hover{background:#fff0ed}.category-modal{box-sizing:border-box;background:#fffdf8;border-radius:16px;flex-direction:column;width:90%;max-width:720px;max-height:80vh;padding:24px;display:flex;box-shadow:0 20px 60px #0003}.category-header{justify-content:space-between;align-items:flex-start;margin-bottom:16px;display:flex}.category-header h2{margin:0 0 6px;font-size:22px}.category-header p{color:#666;margin:0;font-size:13px}.category-table-wrapper{max-height:50vh;overflow-y:auto}.category-table{border-collapse:collapse;table-layout:fixed;background:#fff;width:100%}.category-table th,.category-table td{text-align:center;border-bottom:1px solid #ddd6c8}.category-table th{background:#f3f1ed;font-weight:700}.category-table td{height:50px}.category-table th:first-child,.category-table td:first-child{width:45%}.category-table th:nth-child(2),.category-table td:nth-child(2){width:15%}.category-table th:nth-child(3),.category-table td:nth-child(3),.category-table th:nth-child(4),.category-table td:nth-child(4){width:20%}.category-add-button{color:#9a7229;cursor:pointer;background:#fff;border:1px solid #c9a45c;border-radius:7px;align-self:flex-end;margin-top:12px;padding:9px 16px;font-size:13px;font-weight:500}.category-add-button:hover{background:#f8f1e3}.modal-overlay{z-index:1000;background:#00000073;justify-content:center;align-items:center;display:flex;position:fixed;inset:0}.item-modal{box-sizing:border-box;background:#fffdf8;border-radius:16px;width:100%;max-width:500px;min-height:600px;padding:24px 20px;box-shadow:0 20px 60px #0003}.item-modal-header{justify-content:space-between;align-items:center;margin-bottom:8px;display:flex}.item-modal-header h2{font-size:16px}.close-button{cursor:pointer;background:#f3efe7;border:none;border-radius:50%;width:34px;height:34px;font-size:20px}.close-button:hover{background:#e9e1d3}.item-modal label{margin-bottom:14px;font-size:14px;font-weight:700;display:block}.required{color:red;margin-left:3px}.category-select{margin-bottom:18px}.item-modal input,.item-modal select{box-sizing:border-box;background:#fff;border:1px solid #ddd6ca;border-radius:10px;width:100%;margin-top:8px;padding:10px;font-size:14px;display:block}.alert-setting{align-items:center;gap:6px;margin-bottom:14px;display:flex!important}.alert-setting input{width:auto;margin:0}.save-button{color:#fff;cursor:pointer;background:#c9a45c;border:none;border-radius:12px;width:100%;margin:4px;font-size:16px;font-weight:700}.save-button:hover{opacity:.85}.form-error{color:#d93636;margin:4px 0 8px;font-size:16px}.category-add{justify-content:space-between;align-items:center;display:flex}.category-add button{color:#b58a3a;cursor:pointer;background:0 0;border:none;font-size:13px}.category-form-modal{box-sizing:border-box;background:#fffdf8;border-radius:16px;width:100%;max-width:360px;padding:24px;box-shadow:0 20px 60px #0003}.category-form-modal-header{justify-content:space-between;align-items:center;margin-bottom:24px;display:flex}.category-form-modal-header h2{margin:0;font-size:20px}.category-form-modal label{margin-bottom:24px;font-size:13px;font-weight:700;display:block}.category-color-list{justify-content:space-evenly;margin:8px 0 20px;display:flex}.category-color{cursor:pointer;border:2px solid #0000;border-radius:50%;width:30px;height:30px;padding:0}.category-color.selected{border-color:#333;box-shadow:0 0 0 2px #fff}.category-form-modal input{box-sizing:border-box;background:#fff;border:1px solid #ddd6ca;border-radius:10px;outline:none;width:100%;margin-top:8px;padding:12px;font-size:14px;display:block}.category-form-modal input:focus{border-color:#c9a45c}.delete-confirm-button{color:#c62828!important;border:1px solid #c62828!important}.delete-confirm-button:hover{background:#fff0ed!important}.stock-in-modal{box-sizing:border-box;background:#fffdf8;border-radius:16px;width:100%;max-width:420px;padding:24px;box-shadow:0 20px 60px #0003}.stock-in-modal-header{justify-content:space-between;align-items:center;margin-bottom:24px;display:flex}.stock-in-modal-header h2{color:#2a2a2a;margin:0;font-size:20px}.stock-in-info{background:#f8f4eb;border-radius:10px;margin-bottom:20px;padding:14px 16px}.stock-in-info p{margin:0 0 8px;font-size:14px;font-weight:700}.stock-in-label{color:#333;margin-bottom:20px;font-size:14px;font-weight:700;display:block}.stock-in-label input{box-sizing:border-box;background:#fff;border:1px solid #d6c39d;border-radius:8px;outline:none;width:100%;height:44px;margin-top:8px;padding:0 12px;font-size:15px;display:block}.stock-in-label input:focus{border-color:#c9a45c}.stock-in-modal-buttons{justify-content:flex-end;gap:10px;display:flex}.stock-in-cancel-button,.stock-in-confirm-button{cursor:pointer;border-radius:8px;height:40px;padding:0 18px;font-size:13px;font-weight:500}.stock-in-cancel-button{color:#555;background:#fff;border:1px solid #d6c39d}.stock-in-cancel-button:hover{background:#f8f1e3}.stock-in-confirm-button{color:#fff;background:#c9a45c;border:1px solid #c9a45c}.stock-in-confirm-button:hover{background:#b38d43}.stock-in-confirm-button:disabled{opacity:.4;cursor:not-allowed}.sidebar h1{color:#c9a45c;font-size:x-large}.logo{object-fit:contain;width:70%;min-width:60px;height:auto;display:block}.sidebar{color:#fff;box-sizing:border-box;background:#171717ea;width:15%;min-width:120px;min-height:100vh;padding:30px 20px}.sidebar nav{flex-direction:column;gap:18px;margin-top:60px;display:flex}.sidebar button{color:#fff;text-align:left;cursor:pointer;white-space:nowrap;background:0 0;border:none;border-radius:8px;align-items:center;gap:10px;width:100%;padding:14px 12px;font-size:clamp(10px,1.2vw,20px);display:flex}.sidebar button.active{color:#d6b16b;background:#3a3325}.login-page{background-image:url(/login.png);background-position:50%;background-repeat:no-repeat;background-size:100% 100%;justify-content:center;align-items:center;display:flex;position:fixed;inset:0}.login-panel{z-index:1;box-sizing:border-box;color:#fff;text-align:center;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);background:#14141466;border:1px solid #fff9;border-radius:24px;width:500px;padding:30px 40px;position:relative}.login-logo h1{letter-spacing:5px;margin:0;font-size:38px}.login-logo h2{letter-spacing:6px;margin:5px 0 15px;font-size:27px}.login-line{background:#dcaa50cc;width:260px;height:1px;margin:0 auto 20px}.login-panel h3{color:#e5ad55;margin:0;font-size:24px}.login-sub-title{margin:10px 0 20px;font-size:16px}.login-field,.register-field{align-items:center;gap:15px;margin-bottom:20px;display:flex}.login-field label,.register-field label{color:#fff;white-space:nowrap;flex-shrink:0;justify-content:flex-end;align-items:center;width:100px;font-size:14px;display:flex}.login-input{box-sizing:border-box;background:#14141466;border:1px solid #ffffff80;border-radius:14px;flex:1;align-items:center;min-width:0;height:52px;padding:0 18px;display:flex}.login-icon{color:#e5ad55;margin-right:14px;font-size:23px}.login-input input{color:#fff;background:0 0;border:none;outline:none;flex:1;font-size:16px}.login-input input::placeholder{color:#ffffffa6}.login-button{color:#111;cursor:pointer;background:#dba64f;border:none;border-radius:12px;width:100%;height:52px;margin-top:8px;font-size:18px;font-weight:700}.login-divider{align-items:center;gap:15px;margin:20px 0;display:flex}.login-divider span{background:#fff6;flex:1;height:1px}.login-divider p{margin:0;font-size:17px}.login-sub-buttons{gap:20px;display:flex}.user-register-button,.guest-button{color:#fff;cursor:pointer;background:0 0;border:1px solid #dba64f;border-radius:12px;flex:1;justify-content:center;align-items:center;gap:10px;height:50px;font-size:16px;display:flex}.user-register-button span,.guest-button span{color:#e5ad55;margin-right:10px}.login-message{font-weight:700}.login-message.error{color:red}.login-message.success{color:#289046}.register-modal-overlay{z-index:10;background:#0009;justify-content:center;align-items:center;display:flex;position:fixed;inset:0}.register-modal{box-sizing:border-box;color:#fff;text-align:center;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);background:#141414e6;border:1px solid #ffffff80;border-radius:20px;width:500px;padding:50px}.register-modal h2{letter-spacing:3px;margin:0 0 30px;font-size:28px}.register-modal input{color:#fff;background:0 0;border:none;outline:none;flex:1;width:auto;height:auto;margin:0;padding:0;font-size:16px}.register-modal input::placeholder{color:#ffffffb3}.register-modal button{cursor:pointer;border-radius:8px;height:48px;margin:10px 25px 0;padding:0 50px;font-size:15px}.register-modal button:first-of-type{color:#111;background:#e0aa4f;border:1px solid #e0aa4f}.register-modal button:last-of-type{color:#fff;background:0 0;border:1px solid #ffffff80}.password-note{color:#d0d0d0;white-space:nowrap;width:max-content;margin:-10px 0 10px -30px;font-size:10px;line-height:1.5}.user-register-error{color:red;font-weight:700}.user-table{border-collapse:collapse;width:600px;margin-top:30px}.user-table th,.user-table td{text-align:left;border-bottom:1px solid #d8c9a8;padding:14px 20px}.user-table th{color:#8f6f2f;font-weight:400}.user-table td{color:#333}.user-table select{cursor:pointer;background:#fff;border:1px solid #d8c8a8;border-radius:6px;padding:6px 10px}.message-area{height:40px}.message{margin:0;font-weight:700}.message.error{color:#c62828}.message.success{color:#289046}.admin-icon{align-items:center;gap:10px;display:flex}.home-summary{gap:16px;display:flex}.home-summary>div{background:#fff;border-radius:10px;flex:1;padding:25px}.summary-card{background:#fff;border:1px solid #eee8df;border-radius:10px;flex:1;justify-content:center;align-items:center;gap:14px;min-height:100px;padding:18px;display:flex;box-shadow:0 4px 12px #0000000a}.icon{background:color-mix(in srgb, currentColor 10%, white);border:1px solid color-mix(in srgb, currentColor 25%, white);border-radius:50%;flex-shrink:0;justify-content:center;align-items:center;width:50px;height:50px;font-size:24px;font-weight:500;display:flex;transform:translate(-30px);box-shadow:0 4px 8px #0000000d}.summary-text{flex-direction:column;justify-content:center;height:100%;display:flex}.summary-text p{text-align:center;background:color-mix(in srgb, currentColor 10%, white);border:1px solid color-mix(in srgb, currentColor 25%, white);border-radius:15%;padding:4px 8px;font-size:15px;font-weight:700;box-shadow:0 4px 8px #0000000d}.summary-number{align-items:baseline;gap:6px;margin-top:8px;display:flex}.summary-number h2{margin:0;font-size:36px;font-weight:500}.summary-number span{font-size:16px}.home-stock-list{grid-template-columns:1fr 1fr;gap:20px;display:grid}.home-alert,.home-few{background:#fff;border:1px solid #e8e2d8;border-radius:12px;margin-top:24px;padding:24px;box-shadow:0 4px 15px #0000000a}.home-alert h2,.home-few h2{letter-spacing:.05em;margin:0 0 16px;font-size:21px;font-weight:700}.alert-item,.few-item{white-space:nowrap;border-bottom:1px solid #eee;grid-template-columns:.2fr 1.5fr 1.5fr 1fr 1fr;align-items:center;padding:16px 5px;font-size:16px;display:grid}.home-stock-list button{color:#b07d18;cursor:pointer;background:#fff;border:1px solid #c79a45;border-radius:6px;width:100%;margin-top:16px;padding:11px;font-size:15px;transition:all .2s}.home-stock-list button:hover{background:#f7f3ec}.setting-list{gap:20px;display:flex}.setting-card{background:#fff;border-radius:10px;width:350px;padding:25px;box-shadow:0 2px 8px #00000014}.setting-card-title{align-items:center;gap:10px;margin-bottom:20px;display:flex}.setting-icon{background:#f5f0e8;border-radius:50%;place-items:center;width:40px;height:40px;display:grid}.setting-item{white-space:nowrap;border-bottom:1px solid #eee;align-items:center;gap:20px;padding:20px 0;display:flex}.setting-label{width:100px}.setting-value{text-overflow:ellipsis;white-space:nowrap;flex:1;min-width:0;overflow:hidden}.setting-item button{color:#b07d18;cursor:pointer;background:#fff;border:1px solid #c79a45;border-radius:6px;padding:6px 14px;transition:all .2s}.setting-item button:hover{background:#f7f3ec}.account-delete{justify-content:center}.delete-account-button{color:#c62828!important;border:1px solid #c62828!important}.delete-account-button:hover{background:#fff0ed!important}.setting-alert{cursor:pointer;background:#fff;border:1px solid #d8c8a8;border-radius:6px;flex:1;padding:7px 10px}.modal-overlay{background:#0006;justify-content:center;align-items:center;width:100%;height:100%;display:flex;position:fixed;top:0;left:0}.account-modal{text-align:center;background:#fff;border-radius:10px;width:360px;padding:30px;box-shadow:0 4px 15px #0003}.modal-overlay h3{margin:0 0 25px;font-size:20px}.password-note{color:#666;text-align:left;margin:8px 0 15px;font-size:11px;line-height:1.5}.account-modal input{box-sizing:border-box;border:1px solid #c79a45;border-radius:6px;outline:none;width:100%;padding:10px;font-size:14px}.account-modal input:focus{border-color:#b07d18}.account-modal-buttons{justify-content:center;gap:15px;margin-top:25px;display:flex}.account-modal-buttons button{color:#b07d18;cursor:pointer;background:#fff;border:1px solid #c79a45;border-radius:6px;width:80px;margin:0;padding:8px 0;transition:all .2s}.account-modal-buttons button:hover{background:#f7f3ec}.account-modal-buttons .save-button{color:#289046;border-color:#289046}.password-message{color:#d93636;text-align:left;margin:8px 0 0;font-size:13px}.success-message{color:#289046;margin:0 0 15px;font-size:14px;font-weight:700}.delete-modal{text-align:center;background:#fff;border-radius:10px;width:350px;padding:30px;box-shadow:0 4px 15px #0003}.delete-modal p{margin:0 0 25px;font-size:18px}.delete-modal-buttons{justify-content:center;gap:15px;display:flex}.delete-modal-buttons button{color:#b07d18;cursor:pointer;background:#fff;border:1px solid #c79a45;border-radius:6px;padding:8px 18px}
