:root{font-family:system-ui,Avenir,Helvetica,Arial,sans-serif;line-height:1.5;font-weight:400;color-scheme:light dark;color:#ffffffde;background-color:#242424;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}a{font-weight:500;color:#646cff;text-decoration:inherit}a:hover{color:#535bf2}body{margin:0;display:flex;place-items:center;min-width:320px;min-height:100vh}h1{font-size:3.2em;line-height:1.1}button{border-radius:8px;border:1px solid transparent;padding:.6em 1.2em;font-size:1em;font-weight:500;font-family:inherit;background-color:#1a1a1a;cursor:pointer;transition:border-color .25s}button:focus,button:focus-visible{outline:4px auto -webkit-focus-ring-color}@media (prefers-color-scheme: light){:root{color:#213547;background-color:#fff}a:hover{color:#747bff}button{background-color:#f9f9f9}}.fullscreen-loading{position:fixed;top:0;left:0;width:100vw;height:100vh;display:flex;align-items:center;justify-content:center;background-color:#2d2d2d;color:#ececec;margin:0;z-index:2000}.fullscreen-loading p{margin:0;font-size:16px}.login-container{display:flex;justify-content:center;align-items:center;height:100vh;width:100vw;background-color:#2d2d2d;position:fixed;top:0;left:0;margin:0;padding:0}.login-card{width:100%;max-width:400px;padding:30px;background-color:#252525;border-radius:8px;box-shadow:0 2px 10px #0000004d;margin:0 auto;box-sizing:border-box}.login-title{text-align:center;margin-bottom:24px;color:#ececec;font-size:24px;font-weight:700}.error-message{color:#ff6b6b;text-align:center;margin-bottom:16px}.input-group{margin-bottom:16px;display:flex;justify-content:center}.input-group:last-of-type{margin-bottom:24px}.form-input{width:100%;padding:12px;border-radius:4px;border:1px solid #3a3a3a;background-color:#333;color:#ececec;font-size:16px;box-sizing:border-box}.form-input::placeholder{color:#999}.login-button{width:100%;padding:12px;background-color:#38bc48;color:#fff;border:none;border-radius:4px;font-size:16px;cursor:pointer;transition:background-color .3s}.login-button:hover{background-color:#2da03d}.projects-container{display:flex;height:100vh;width:100vw;overflow:hidden;background-color:#2d2d2d}.sidebar{width:250px;background-color:#252525;height:100%;display:flex;flex-direction:column;border-right:1px solid #3a3a3a;overflow-y:auto}.user-profile{display:flex;flex-direction:column;align-items:center;padding:20px;border-bottom:1px solid #3a3a3a}.avatar{width:50px;height:50px;border-radius:50%;background-color:#38bc48;color:#fff;display:flex;justify-content:center;align-items:center;font-size:20px;font-weight:700;margin-bottom:10px}.user-email{color:#ececec;text-align:center;font-size:14px;overflow:hidden;text-overflow:ellipsis;max-width:100%}.user-greeting{color:#ececec;font-size:14px;margin-right:20px}.menu-item{display:flex;align-items:center;padding:12px 20px;cursor:pointer;text-decoration:none;color:#ececec;outline:none}.menu-item:hover{background-color:#333}.menu-item.active{background-color:#38bc48;color:#fff}.menu-icon{margin-right:10px}.logout-container{margin-top:auto}.logout-button{margin-top:auto;background:none;border:none;color:#ececec;cursor:pointer;padding:12px 20px;display:flex;align-items:center;text-align:left;width:100%}.logout-button:hover{background-color:#333}.projects-header{padding:18px 0 0 16px;border-bottom:1px solid #3a3a3a;color:#ececec}.projects-tabs-container{display:flex;justify-content:space-between;align-items:center;padding-right:16px}.projects-tabs{display:flex;gap:16px}.projects-tab{padding:12px 4px;border:none;background:none;border-radius:unset;color:#b0b0b0;font-size:16px;cursor:pointer;border-bottom:3px solid transparent;transition:color .2s}.projects-tab:not(.active):hover{color:#fff;border-bottom-color:transparent!important}.projects-tab.active{border-bottom:3px solid #38BC48;font-weight:700;color:#fff}.projects-tab:focus,.projects-tab:focus-visible{outline:none}.page-title{font-size:24px;margin:0 0 10px;color:#ececec}.add-button .material-icons{font-size:20px}.projects-list-container{flex:1;overflow:auto;padding:20px;width:100%;box-sizing:border-box}.no-projects{color:#ececec}.projects-table{width:100%;border-collapse:collapse;color:#ececec}.name-column{width:240px;min-width:240px;max-width:240px}.project-name-cell{width:240px;min-width:240px;max-width:240px;word-break:break-word;overflow-wrap:anywhere;white-space:normal}.editor-cell{min-width:180px}.editor-select{width:100%;padding:8px;background-color:#2b2b2b;color:#ececec;border:1px solid #5a5a5a;border-radius:4px}.editor-select:focus{outline:none;border-color:#4d9af1}.status-badge{padding:4px 8px;border-radius:12px;font-size:.8em}.status-badge.completed{background-color:#38bc48;color:#fff}.status-badge.in-progress{background-color:#4d9af1;color:#fff}.status-badge.not-started{background-color:#6e6e6e;color:#fff}.project-card{background-color:#fff;border-radius:8px;box-shadow:0 2px 8px #0000001a;padding:20px;cursor:pointer;transition:transform .2s}.project-card:hover{transform:translateY(-5px)}.project-title{margin:0 0 10px;color:#2c3e50}.project-client,.project-due-date{font-size:14px;color:#7f8c8d;margin-bottom:5px}.project-actions{display:flex;justify-content:flex-end;margin-top:15px}.edit-button{padding:5px 10px;background-color:#3498db;color:#fff;border:none;border-radius:4px;margin-left:10px;cursor:pointer}.loading-container{display:flex;justify-content:center;align-items:center;height:100vh}.project-modal-overlay{position:fixed;top:0;left:0;right:0;bottom:0;background-color:#000000b3;display:flex;justify-content:center;align-items:center;padding:16px;overflow-y:auto;z-index:1000}.project-modal-content{background:#2d2d2d;display:flex;flex-direction:column;align-items:stretch;border-radius:8px;padding:30px;box-shadow:0 4px 12px #0003;border:1px solid #3a3a3a;width:min(720px,100%);max-width:100%;max-height:calc(100vh - 32px);box-sizing:border-box}.project-modal-title{font-size:1.4rem;color:#ececec;margin:0;text-align:center}.project-modal-body{display:flex;flex-direction:column;gap:16px;flex:1;min-height:0;overflow-y:auto}@media (min-width: 1024px) and (min-height: 720px){.project-modal-content{width:720px;max-height:none}.project-modal-body{overflow-y:visible}}.worktype-checkbox-list{list-style:none;margin:8px 0 0;padding:0;display:flex;flex-direction:column;gap:8px;max-height:140px;overflow-y:auto}.worktype-checkbox-item{display:flex;flex-direction:column;gap:4px;color:#ececec}.worktype-checkbox-item label{display:flex;align-items:center;gap:8px;font-weight:500}.worktype-name{font-size:14px}.worktype-description{font-size:12px;color:#b5b5b5;margin-left:24px}.worktype-empty-message{margin:0;font-size:13px;color:#b5b5b5}.form-label{display:block;margin-bottom:8px;color:#ececec;font-size:16px;font-weight:700}.file-upload-area.dragging{border-color:#38bc48;border-style:solid}.file-upload-input{display:none}.file-list{list-style:none;padding:0;margin:0;text-align:left;max-height:150px;overflow-y:auto}.file-item{display:flex;justify-content:space-between;align-items:center;padding:4px 8px;background-color:#333;border-radius:4px;margin-bottom:4px;font-size:14px}.file-item span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-right:8px}.file-item button{background:none;border:none;color:#ccc;cursor:pointer;font-size:16px;padding:0 4px}.file-item button:hover{color:#fff}.file-name{margin-top:10px;font-size:14px;color:#ececec;word-break:break-all}.project-create-buttons{display:flex;justify-content:center;gap:12px;width:100%}.project-create-button{background-color:#1981ff;color:#ececec}.project-cancel-button{background-color:#5d5d5d;color:#ececec}.create-button{background-color:#38bc48;color:#fff;border:none;padding:10px 20px;border-radius:4px;cursor:pointer;width:100%;font-size:16px}.create-button:hover{background-color:#2da03d}.action-column-header{text-align:center;width:120px}.action-cell{outline:none;text-align:center;vertical-align:middle}.action-buttons{display:flex;align-items:center;justify-content:center;gap:8px}.clickable-cell{cursor:pointer}.delete-button:focus,.delete-button:focus-visible{outline:none;box-shadow:none}.archive-button{background:none;border:none;color:#f0a500;cursor:pointer;font-size:16px;padding:5px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;transition:background-color .2s,color .2s}.archive-button:hover{background-color:#4a4a4a;color:#ffca28}.archive-button:disabled{cursor:not-allowed;opacity:.6}.confirm-delete-title{color:#ececec;margin:0;text-align:center;font-size:1.4rem}.cancel-button{background-color:#6c757d;color:#fff;border:none}.cancel-button:hover{background-color:#5a6268}.delete-toast{position:fixed;top:16px;left:50%;transform:translate(-50%);background-color:#000;color:#fff;padding:12px 20px;border-radius:8px;box-shadow:0 4px 12px #0006;z-index:1200;font-size:14px}.master-data-container{display:flex;height:100vh;width:100vw;background-color:#2d2d2d;color:#ececec}.master-data-main{flex:1;display:flex;flex-direction:column;overflow:hidden}.master-data-loading{flex:1;display:flex;align-items:center;justify-content:center;background-color:#2d2d2d;color:#ececec}.master-data-header{padding:18px 0 0 16px;border-bottom:1px solid #3a3a3a}.master-data-tabs-container{display:flex;justify-content:space-between;align-items:center;padding-right:16px}.create-button{background-color:#38bc48;color:#fff;border:none;border-radius:4px;cursor:pointer;font-size:14px;padding:6px 14px;width:90px}.master-data-header-title{font-size:24px;font-weight:700;margin-bottom:10px}.master-data-tabs{display:flex;gap:16px}.master-data-tabs button{padding:12px 4px;border:none;background:none;border-radius:unset;color:#b0b0b0;font-size:16px;cursor:pointer;border-bottom:3px solid transparent;transition:color .2s}.master-data-tabs button:not(.active):hover{color:#fff;border-bottom-color:transparent!important}.master-data-tabs button.active{border-bottom:3px solid #38BC48;font-weight:700;color:#fff}.master-data-tabs button:focus,.master-data-tabs button:focus-visible{outline:none}.master-data-content{flex:1;padding:10px 16px 16px;display:flex;flex-direction:column;overflow:hidden}.list-view{flex:1;display:flex;flex-direction:column;overflow:hidden}.list-header{display:flex;justify-content:space-between;align-items:center;padding:8px 12px;color:silver;border-bottom:1px solid #3a3a3a}.list-header-titles{flex-grow:1;display:flex;justify-content:space-between;font-weight:700}.master-list{list-style:none;padding:0;margin:0;overflow-y:auto;flex:1}.master-list li{display:flex;justify-content:space-between;align-items:center;padding:16px 12px;border-bottom:1px solid #3a3a3a;cursor:pointer;transition:background-color .2s}.master-list li:last-child{border-bottom:none}.master-list li:hover{background-color:#383838}.group-name-header,.part-name-header{flex-basis:50%;padding-right:16px}.group-description-header,.part-color-header{flex-basis:50%}.group-name,.part-name{flex-basis:50%;padding-right:16px;font-weight:700}.group-description,.part-color-display{flex-basis:50%}.group-description{color:#b0b0b0;font-size:14px}.part-color-display{display:flex;align-items:center;gap:8px}.part-color-indicator{width:18px;height:18px;border-radius:4px;border:1px solid #555}.master-data-modal-overlay{position:fixed;top:0;left:0;width:100%;height:100%;background-color:#00000080;z-index:1000}.master-data-modal{position:fixed;top:0;right:0;height:-webkit-fill-available;background-color:#252525;box-shadow:-4px 0 12px #0000004d;padding:12px;overflow:hidden;width:700px;animation:slideIn .3s ease-out;display:flex;flex-direction:column}.master-data-modal.group-edit-mode{width:800px}.master-data-modal-content{flex:1;display:flex;flex-direction:column;min-height:0;overflow:hidden}.master-data-modal-header,.master-data-modal-footer{background-color:#252525;position:sticky;z-index:1}.master-data-modal-footer{padding-right:4px}.master-data-modal-header .modal-section-divider{margin:8px 0 0}.master-data-modal-footer .modal-section-divider{margin:0 0 16px}.master-data-modal-scroll{overflow-y:auto;min-height:0;display:flex;flex-direction:column;padding-top:12px}.master-data-modal-title{font-size:16px;font-weight:700;display:flex;justify-content:space-between;align-items:center}.master-data-modal-description{color:#ececec;text-align:left;line-height:1.6;margin:0}.master-data-modal-actions{display:flex;justify-content:flex-end;gap:12px}.master-data-modal-title-left{display:flex;align-items:center;gap:10px}@keyframes slideIn{0%{transform:translate(100%)}to{transform:translate(0)}}.close-modal-button{background:none;border:none;color:#ececec;font-size:28px;cursor:pointer;outline:none;padding:0}.modal-list-header{display:flex;justify-content:space-between;align-items:center;padding-bottom:8px}.master-data-modal label{display:block;color:#b0b0b0}.form-group{padding-top:12px}.form-group input[type=text],.form-group textarea{width:100%;padding:10px;border-radius:4px;border:1px solid #3a3a3a;background-color:#333;color:#ececec;font-size:14px;box-sizing:border-box;resize:none}.form-group input[type=color]{border:none;background:none;width:32px;height:32px;cursor:pointer}.shape-mode-checkbox-container{padding-top:4px}.modal-form-area{flex-shrink:0}.modal-list-area{display:flex;flex-direction:column;overflow:hidden;min-height:0}.master-data-modal-body{display:flex;flex-direction:column;gap:16px;overflow:auto;padding-right:4px}.modal-list-area .nested-list{overflow-y:auto;border:1px solid #3a3a3a;border-radius:4px}.add-material-form{padding-bottom:16px}.part-color-indicator-container{display:flex;align-items:center}.add-material-form input[type=text]{width:426px;margin-left:14px;padding:7px;border-radius:4px;border:1px solid #3a3a3a;background-color:#333;color:#ececec;font-size:14px;box-sizing:border-box;resize:none}.nested-list{overflow-y:auto;list-style:none;padding:0;margin-top:0}.nested-list li{display:flex;justify-content:space-between;align-items:center;padding:12px 8px;border-bottom:1px solid #3a3a3a}.material-left{display:flex;align-items:center;gap:12px}.material-color-chip{width:18px;height:18px;border-radius:4px;border:1px solid rgba(255,255,255,.2);flex-shrink:0}.material-right{display:flex;align-items:center}.coefficient-toggle{margin-right:8px;padding:6px 8px;background:#2d2d2d;color:#fff;border:1px solid #4a4a4a;border-radius:4px;font-size:12px}.material-color-editor{display:flex;align-items:center;gap:8px}.material-color-editor input[type=color]{width:28px;height:28px;border:none;background:none;padding:0;cursor:pointer}.material-color-code{font-size:12px;color:#b0b0b0;font-family:Roboto Mono,Courier New,monospace;letter-spacing:.5px}.material-name-label{color:#ececec}.nested-list li:last-child{border-bottom:none}.nested-list.checkbox li{justify-content:start}input.inline-edit-input{width:75%;margin-right:14px;padding:7px;border-radius:4px;border:1px solid #3a3a3a;background-color:#333;color:#ececec;font-size:14px;box-sizing:border-box;resize:none}.icon-buttons{display:flex;gap:12px}.icon-buttons button{padding:6px 14px;background:#3f3f3f;color:#ececec;border:none;border-radius:4px;cursor:pointer;font-size:14px}.icon-buttons button:hover{background:#555}.list-item-actions{display:flex;gap:8px}.action-button{background:#5d5d5d;color:#fff;border:none;cursor:pointer;border-radius:4px;display:flex;align-items:center;justify-content:center;width:28px;height:28px;font-size:14px}.action-button svg{width:16px;height:16px;color:inherit;flex-shrink:0;display:block}.drag-handle{background:#3f3f3f;color:#ececec;border:none;cursor:grab;border-radius:4px;display:flex;align-items:center;justify-content:center;width:28px;height:28px}.drag-handle svg{width:16px;height:16px;color:inherit;flex-shrink:0;display:block}.nested-list li.dragging{opacity:.65}.nested-list li.drag-over{border:1px dashed #38BC48}.add-button-small,.delete-button-small{background-color:#38bc48;color:#fff;border:none;border-radius:4px;cursor:pointer;font-size:14px;padding:6px 14px;margin-bottom:2px}.delete-button-small{background-color:#dc3545}.snackbar{position:absolute;top:24px;left:50%;transform:translate(-50%);background-color:#000c;color:#fff;padding:12px 24px;border-radius:8px;box-shadow:0 4px 12px #0003;font-size:1rem;z-index:2000;text-align:center;white-space:nowrap}.group-edit-lists-container{display:flex;gap:16px;overflow:hidden;border-top:1px solid #3a3a3a;padding-top:12px;flex-grow:1;min-height:0}.list-column{flex:1;display:flex;flex-direction:column;min-width:0}.list-column .nested-list{overflow-y:auto;border:1px solid #3a3a3a;border-radius:4px}ul.nested-list.checkbox li{height:28px}div#root{display:contents;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.loading-screen{background-color:#1e1e1e;width:100vw;height:100vh;position:fixed;top:0;left:0;display:flex;align-items:center;justify-content:center;z-index:9999}.spinner{width:48px;height:48px;border:6px solid rgba(255,255,255,.3);border-top:6px solid #FFFFFF;border-radius:50%;animation:spin 1s linear infinite}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.estimate-container{display:flex;width:100%;height:100vh;box-sizing:border-box}.main-area{display:flex;flex-direction:column;flex:1;min-width:0}.estimate-header{min-height:50px;background-color:#2d2d2d;display:flex;align-items:center;justify-content:space-between;padding:0 6px;--header-control-height: 38px}.estimate-header-right{display:flex;align-items:center;gap:6px}.header-scale-register{display:flex;align-items:center;height:var(--header-control-height)}.header-scale-register .scale-status-button{height:100%}.angle-controls{display:flex;align-items:center;gap:.5rem;color:#fff;background:#3c3c3c;border-radius:4px;padding:0 .5rem;height:var(--header-control-height);box-sizing:border-box}.angle-display{min-width:1rem;text-align:center;font-variant-numeric:tabular-nums}.angle-input{width:1.7rem;color:#fff;background:transparent;border:none;outline:none;text-align:center;font-size:1rem}.angle-input::-webkit-inner-spin-button,.angle-input::-webkit-outer-spin-button{opacity:1}.estimate-footer{background-color:#2d2d2d;display:flex;align-items:center;justify-content:center;padding:6px;flex-shrink:0;border-top:1px solid #1a1a1a;gap:6px;--footer-control-height: 36px}.estimate-footer-left,.estimate-footer-right,.estimate-footer-center{display:flex;align-items:center;gap:6px;flex:1;min-width:0}.estimate-footer-left{justify-content:flex-start}.estimate-footer-center{justify-content:center}.estimate-footer-right{justify-content:flex-end}.footer-nav-button{display:inline-flex;align-items:center;justify-content:center;font-size:x-small;width:var(--footer-control-height, 36px);height:var(--footer-control-height, 36px);border-radius:50%;border:none;background-color:#3c3c3c;color:#fff;cursor:pointer;transition:background-color .2s ease-in-out}.footer-nav-button svg{font-size:1.25rem}.footer-nav-button:hover,.footer-nav-button:focus{background-color:#4d4d4d;outline:none}.scale-register{display:flex;align-items:center;gap:.5rem;color:#fff;min-height:var(--footer-control-height, 36px)}.scale-register-label{font-size:.85rem;white-space:nowrap}.scale-status-button{border:none;border-radius:4px;padding:0;font-size:.85rem;font-weight:600;color:#fff;cursor:pointer;transition:background-color .2s ease-in-out,opacity .2s ease-in-out;width:var(--header-control-height);height:var(--header-control-height);display:inline-flex;align-items:center;justify-content:center}.scale-status-button.is-unset,.scale-status-button.is-inherited{background-color:#1981ff}.scale-status-button.is-set{background-color:#3c3c3c}.scale-status-button svg{font-size:1.1rem}.scale-status-button.is-active{background-color:#ff9800;cursor:default}.scale-status-button:not(:disabled):hover,.scale-status-button:not(:disabled):focus{opacity:.9;outline:none}.scale-status-button:disabled{opacity:.8;cursor:default}.estimate-header-left{display:flex;align-items:center;gap:6px}@media (max-width: 1200px){.estimate-header,.estimate-header-left,.estimate-header-right{flex-wrap:wrap;row-gap:6px}.estimate-header-right{justify-content:flex-end}.tool-group{flex-wrap:wrap}}.history-controls{border-radius:4px}.tool-group{display:inline-flex;align-items:center;background:#3c3c3c;padding:0 4px;gap:4px;height:var(--header-control-height);box-sizing:border-box}.page-control,.layer-control,.worktype-control{display:flex;align-items:center}.page-select{max-width:12rem;background:#3c3c3c;color:#fff;border:none;padding:0 .4rem;border-top-left-radius:4px;border-bottom-left-radius:4px;cursor:pointer;height:var(--header-control-height);line-height:var(--header-control-height);box-sizing:border-box;-webkit-appearance:none;-moz-appearance:none;appearance:none}.page-select:focus,.page-select:active{outline:none;box-shadow:none}.worktype-select{max-width:5rem;background:#3c3c3c;color:#fff;border:none;padding:0 .4rem;border-top-left-radius:4px;border-bottom-left-radius:4px;cursor:pointer;height:var(--header-control-height);line-height:var(--header-control-height);box-sizing:border-box;-webkit-appearance:none;-moz-appearance:none;appearance:none}.worktype-select:focus,.worktype-select:active{outline:none;box-shadow:none}.page-action-group,.layer-action-group,.worktype-action-group{border-top-right-radius:4px;border-bottom-right-radius:4px}.layer-select{max-width:5rem;background:#3c3c3c;color:#fff;border:none;padding:0 .4rem;border-top-left-radius:4px;border-bottom-left-radius:4px;cursor:pointer;height:var(--header-control-height);line-height:var(--header-control-height);box-sizing:border-box;-webkit-appearance:none;-moz-appearance:none;appearance:none}.layer-select:focus,.layer-select:active{outline:none;box-shadow:none}.drawing-toolbar-container{display:flex;align-items:center;gap:.75rem;justify-content:center}.drawing-toolbar{display:flex;background:#3c3c3c;color:#fff;border:none;padding:0 5px;border-radius:4px;font-size:1rem;cursor:pointer;gap:6px;align-items:center;min-height:var(--footer-control-height, 36px);flex-wrap:wrap;justify-content:center;row-gap:4px;width:min(100%,720px)}.drawing-toolbar .tool-icon{transition:color .2s ease-in-out}.drawing-toolbar .tool-icon.available{color:#4172f7}.drawing-toolbar .tool-icon.active{color:#f04a00}.tool-icon{padding:4px;cursor:pointer;border-radius:4px;transition:background-color .2s ease;color:#fff;display:flex;align-items:center;justify-content:center}.tool-icon.disabled{cursor:not-allowed;opacity:.4;pointer-events:none}.history-controls .tool-icon.history-locked{pointer-events:none;cursor:not-allowed;opacity:1}.tool-icon.active{background-color:#fff3}.zoom-controls{display:flex;gap:.5rem;color:#fff;background:#3c3c3c;border-radius:4px;padding:0 .5rem;align-items:center;height:var(--header-control-height);box-sizing:border-box}.footer-angle-controls,.footer-zoom-controls{height:var(--footer-control-height);padding:0 .3rem;gap:0}.footer-angle-controls .angle-display,.footer-zoom-controls .zoom-level-display{font-size:.9rem}.image-wrapper{position:relative;display:flex;justify-content:center;align-items:center;width:100%;height:100%;flex-shrink:0;touch-action:none}.image-wrapper.cursor-crosshair{cursor:crosshair}.add-input-button{background-color:#3c3c3c;color:#fff;border:none;padding:.6rem 1rem;font-size:14px;cursor:pointer;border-radius:4px}.estimate-center{flex:1;display:flex;min-width:0;align-items:center;justify-content:center;overflow:scroll;background-color:#1e1e1e;position:relative}.no-image-text{color:#fff;font-size:16px}.top-left-ui{position:absolute;top:1rem;left:1rem;display:flex;align-items:center;background-color:#2d2d2d;border-radius:4px;padding:.4rem .8rem;gap:.8rem;z-index:10}.capture-icon{display:flex;align-items:center;justify-content:center;cursor:pointer;color:#fff;font-size:1.2rem}.capture-icon.capture-active{background-color:#ffdf004d;border-radius:4px}.selection-rectangle{position:absolute;border:2px dashed #ffbf00;pointer-events:none;z-index:10}.modal-overlay{position:fixed;top:0;left:0;width:100vw;height:100vh;background:#00000080;z-index:9999;display:flex;align-items:center;justify-content:center}.scale-modal-overlay{pointer-events:none}.scale-modal-guard{pointer-events:auto;display:flex;align-items:center;justify-content:center;width:100%;height:100%}.uploaded-page-modal-content,.cropped-page-add-modal-content,.scale-modal-content,.worktype-modal-content,.worktype-select-modal-content{background:#2d2d2d;color:#fff;display:flex;flex-direction:column;align-items:stretch;gap:16px;border-radius:8px;padding:30px;box-shadow:0 4px 12px #0003;border:1px solid #3a3a3a;min-width:260px}.uploaded-page-modal-title,.cropped-page-add-modal-title,.scale-modal-title,.worktype-modal-title{margin:0;font-size:1.4rem;text-align:center}.cropped-page-add-modal-description,.scale-modal-description,.worktype-modal-description{margin:0;color:#cfcfcf;text-align:center;line-height:1.6}.scale-modal-measured-distance{margin:0;color:#9ad0ff;text-align:center;font-size:.95rem}.cropped-page-add-modal-inputs{display:flex;flex-direction:column;gap:12px}.scale-modal-input-group{display:flex;align-items:center;justify-content:center}.scale-modal-input{padding:10px 12px;border-radius:4px;margin-left:8px}.uploaded-page-modal-buttons,.cropped-page-add-modal-buttons,.scale-modal-buttons,.worktype-modal-buttons{display:flex;justify-content:center;gap:12px;width:100%}.scale-measurements-list{width:100%;background:#1f1f1f;border:1px solid #3a3a3a;border-radius:6px;padding:12px;box-sizing:border-box}.scale-measurements-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:8px}.scale-measurements-title{margin:0;font-size:1rem}.scale-measurements-count{color:#9ad0ff;font-size:.9rem}.scale-measurement-rows{list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:6px}.scale-measurement-row{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;padding:8px 10px;background:#242424;border-radius:4px;align-items:center}.scale-measurement-row.is-summary{border:1px solid #3a3a3a}.scale-measurement-label{color:#cfcfcf}.scale-measurement-value{color:#fff;text-align:right}.scale-info-meta{display:flex;flex-direction:column;gap:6px;margin-top:12px}.uploaded-page-add-button,.cropped-page-add-button,.scale-register-button,.worktype-modal-button.primary{background-color:#1981ff;color:#fff}.scale-register-button:disabled{opacity:.6;cursor:not-allowed}.scale-add-button{background-color:#3a3a3a;color:#fff;border:1px solid #4f8ad9}.scale-add-button:disabled{opacity:.6;cursor:not-allowed}.uploaded-page-cancel-button,.cropped-page-cancel-button,.scale-cancel-button,.worktype-modal-button{background-color:#5d5d5d;color:#fff}.worktype-modal-button{border:none;border-radius:4px;padding:.6rem 1.5rem;font-size:.95rem;cursor:pointer;transition:background-color .2s ease,opacity .2s ease}.worktype-modal-button.primary:hover:not(:disabled){background-color:#1f8dff}.worktype-modal-button:hover:not(.primary):not(:disabled){background-color:#6a6a6a}.worktype-modal-button:disabled{opacity:.6;cursor:not-allowed}.worktype-modal-body{display:flex;flex-direction:column;gap:12px}.worktype-modal-label{font-size:.95rem;color:#cfcfcf}.worktype-modal-select{background:#3c3c3c;color:#fff;border:none;padding:.5rem .8rem;border-radius:4px;cursor:pointer}.worktype-modal-select:disabled{opacity:.5;cursor:not-allowed}.cropped-page-add-modal-content input,.uploaded-page-form-group{margin:0}.uploaded-page-checkbox{display:flex;align-items:center;gap:8px;color:#e0e0e0;font-size:.95rem}.snackbar{position:fixed;top:24px;left:50%;transform:translate(-50%);background-color:#000c;color:#fff;padding:12px 24px;border-radius:8px;box-shadow:0 4px 12px #0003;font-size:1rem;z-index:100;text-align:center;white-space:nowrap}.snackbar.fade-in{animation:fadeIn .3s ease-out forwards}.snackbar.fade-out{animation:fadeOut .4s ease-in forwards}@keyframes fadeIn{0%{opacity:0;transform:translate(-50%,-10px)}to{opacity:1;transform:translate(-50%)}}@keyframes fadeOut{0%{opacity:1;transform:translate(-50%)}to{opacity:0;transform:translate(-50%,-10px)}}.roof-modal-content{background:#2d2d2d;color:#fff;display:flex;flex-direction:column;align-items:stretch;gap:16px;border-radius:8px;padding:30px;box-shadow:0 4px 12px #0003;border:1px solid #3a3a3a;width:420px}.roof-modal-title{font-size:24px;font-weight:700;text-align:center}.roof-modal-description{font-size:16px;text-align:center}.roof-modal-input-group{display:flex;align-items:center;justify-content:center}.roof-modal-input-group label{width:80px;font-weight:700}.roof-modal-input-group input{padding:10px 12px;border-radius:4px}button.roof-modal-measure-button{font-weight:700;font-size:16px;padding:7px 14px;margin-left:10px;border-radius:6px;background:#1981ff;color:#fff}.roof-modal-actions{display:flex;justify-content:center;gap:12px}.roof-modal-cancel-button{width:120px;background-color:#5d5d5d;color:#fff}.roof-modal-register-button{width:120px;background:#1981ff;color:#fff}.ai-modal-content{background:#2d2d2d;display:flex;flex-direction:column;align-items:stretch;gap:16px;border-radius:8px;padding:30px;box-shadow:0 4px 12px #0003;border:1px solid #3a3a3a;width:400px}.ai-modal-title{margin:0 0 10px;font-size:1.4rem;text-align:center}.ai-modal-description{color:#b0b0b0;text-align:center;margin:0}.ai-modal-fields{display:flex;flex-direction:column;gap:16px}.ai-modal-field{display:flex;justify-content:space-between;align-items:center}.ai-modal-field label{font-weight:700}.ai-modal-field select{width:200px;padding:8px;border-radius:4px;border:1px solid #555;background-color:#3c3c3c;color:#fff}.ai-modal-actions{display:flex;justify-content:flex-end;gap:12px}.ai-modal-cancel-button,.ai-modal-execute-button{min-width:120px;padding:10px;border-radius:4px;border:none;font-size:16px;cursor:pointer}.ai-modal-cancel-button{background-color:#6c757d;color:#fff}.ai-modal-execute-button{background-color:#38bc48;color:#fff}.ai-modal-execute-button:disabled{background-color:#555;cursor:not-allowed}.shape-context-menu{position:absolute;z-index:20;background-color:#fff;box-shadow:0 4px 12px #0000002e;border-radius:8px;padding:8px;display:flex;flex-wrap:wrap;gap:8px}.shape-context-menu-button{display:inline-flex;align-items:center;gap:6px;padding:8px 10px;border:1px solid #d0d7de;border-radius:6px;background-color:#f7f7f7;color:#333;font-size:13px;cursor:pointer;transition:background-color .15s ease,border-color .15s ease}.shape-context-menu-button:hover:not(:disabled){background-color:#eef2ff;border-color:#4a90e2}.shape-context-menu-button:disabled{opacity:.6;cursor:not-allowed}.shape-context-menu-button.active{background-color:#e6f0ff;border-color:#3d7edb;color:#1d4f91}.shape-context-menu-button svg{width:16px;height:16px}.estimate-left{width:clamp(330px,24vw,330px);font-size:clamp(12px,24vw,14px);overflow-x:hidden;color:#fff;background-color:#2d2d2d;box-sizing:border-box;display:flex;flex-direction:column;border-right:1px solid #535353;border-left:1px solid #535353;transition:width .2s ease}.estimate-left.collapsed{width:50px;overflow:hidden;transition:width .2s ease}.left-pane-header{display:flex;justify-content:space-between;align-items:center;min-height:50px;padding:0 10px;border-bottom:1px solid #535353;position:relative}.left-pane-header.collapsed{justify-content:center}.left-pane-project-name{color:#fff;font-size:16px;font-weight:700;display:inline-block;max-width:180px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.project-menu-toggle{display:inline-flex;align-items:center;gap:6px;max-width:200px;cursor:pointer}.project-menu-caret{transition:transform .2s ease}.project-menu-caret.open{transform:rotate(180deg)}.project-menu-dropdown{position:absolute;top:100%;left:10px;background-color:#3c3c3c;border:1px solid #535353;border-radius:6px;box-shadow:0 2px 8px #0000004d;padding:4px 0;z-index:5;min-width:160px}.project-menu-item{width:100%;display:flex;align-items:center;gap:8px;padding:8px 12px;background:transparent;color:#fff;border:none;cursor:pointer;text-align:left}.project-menu-item:hover,.project-menu-item:focus{background-color:#4d4d4d;outline:none}.left-pane-toggle-icon{display:flex;color:#fff;cursor:pointer;font-size:18px;-webkit-user-select:none;user-select:none}.registered-data-container{overflow-y:scroll}.registered-data-container::-webkit-scrollbar{display:none}.no-data-message{color:#777;margin:10px}.page-summary{display:flex;align-items:center;font-size:13px;font-weight:900;padding:6px;cursor:pointer;justify-content:space-between}.page-summary-title{display:flex;align-items:center}.page-summary.sub{padding-left:16px}.work-type-summary{padding-left:10px}.layer-summary{padding-left:20px}.page-summary-icon{display:flex;margin-right:4px;color:#2fa84f}.page-summary-icon.deduction{color:#73b0ff}.page-summary-name{flex:1 1 auto}.work-type-section{margin-left:4px}.registered-data{list-style:none;padding:0;margin:0}.group-title-container{display:flex;align-items:center}.data-item-group{display:flex;justify-content:space-between;padding:6px 8px 6px 28px;cursor:pointer;background-color:#252525;border-top:1px solid #3d3d3d;border-bottom:1px solid #3d3d3d}.data-item-group.deduction-group{background-color:#1f4f99;padding:6px 8px 6px 28px}.data-item-sub{background-color:transparent;display:flex;justify-content:space-between;padding:6px 8px 6px 28px;cursor:pointer;font-size:13px}.data-item-deduction{display:flex;align-items:center;font-size:13px;padding:6px 8px 6px 44px;background-color:#1f4f99}.inline-deduction-list{list-style:none;margin:0;padding:0}.data-item-inline-deduction{display:flex;align-items:center;gap:8px;padding:4px 8px 4px 46px;font-size:13px;background-color:#1f4f99}.data-item-inline-deduction.selected-deduction{background-color:#245bb8}.inline-deduction-label{color:#b3d4ff;font-weight:600}.inline-deduction-part-material{flex:1 1 auto}.inline-deduction-amount{flex:0 0 auto}.page-summary:hover,.page-summary.sub:hover,.data-item:hover,.data-item-group:hover{background-color:#4a4a4a}.selected-estimation{background-color:#5d5d5d!important}.item-group-part-material{display:flex}.item-group-part-name{padding-right:12px}.item-group-subtotal{display:flex;align-items:center;margin-left:8px}.item-part-name{padding-right:12px}.item-row-part-material{display:flex;align-items:center;gap:4px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:150px}.data-item-group .item-value-area{font-weight:700;font-size:13px}.item-value-area{font-size:13px}.item-value-area-net{color:#73b0ff}.item-value-area-gross{color:#fff}.goto-spec-button{background-color:#2fa84f;color:#fff;border:none;padding:.6rem 1rem;margin:auto 10px 10px;font-size:14px;cursor:pointer;border-radius:4px}.item-row-main-content{display:flex;align-items:center;gap:3px;flex-grow:1;min-width:0}.deduction-main-content{gap:6px}.deduction-number-badge{background-color:#2f6fd6f2;color:#fff}.item-number-badge{flex-shrink:0;background-color:#ffc107e6;color:#333;font-weight:900;border-radius:50%;width:16px;height:16px;display:flex;align-items:center;justify-content:center;font-size:13px}.item-value-part,.item-value-material{font-size:13px}.item-value-material{color:#b3b3b3}.context-menu{position:fixed;z-index:1000;background-color:#3c3c3c;border:1px solid #535353;border-radius:4px;box-shadow:0 2px 10px #0003}.context-menu ul{list-style:none;padding:0;margin:0}.context-menu li{padding:8px 15px;cursor:pointer;color:#ececec}.context-delete-text{color:#f33!important;font-weight:700}.context-menu li:hover{background-color:#4a4a4a}.page-name-edit-container{display:flex;align-items:center;gap:8px;flex-grow:1}.page-name-input{flex-grow:1;background-color:#4a4a4a;border:1px solid #6e6e6e;color:#ececec;border-radius:4px;padding:4px 8px;font-size:13px;outline:none}.save-page-name-button{background:none;border:none;color:#2fa84f;cursor:pointer;font-size:16px;padding:4px;display:flex;align-items:center}.select-none{-webkit-user-select:none;user-select:none}.tree-node-button{display:flex;width:100%;align-items:center;gap:4px;border-radius:6px;padding:6px 8px;transition:background-color .2s;cursor:default;background:transparent;border:none;color:inherit;text-align:left}.tree-node-button.deduction-group,.tree-node-button.data-item-deduction,.tree-node-button.data-item-inline-deduction{background-color:transparent;position:relative}.tree-node-button.deduction-group:hover,.tree-node-button.data-item-deduction:hover,.tree-node-button.data-item-inline-deduction:hover{background-color:transparent}.tree-node-button.data-item-deduction.selected-estimation{background-color:transparent!important}.tree-node-button.has-children{cursor:pointer}.tree-node-button:hover{background-color:#4a4a4a}.tree-node-button:focus,.tree-node-button:focus-visible{outline:none}.tree-node-button.selected{background-color:#5d5d5d!important}.tree-node-button.deduction-group:before,.tree-node-button.data-item-deduction:before,.tree-node-button.data-item-inline-deduction:before{content:"";position:absolute;top:0;bottom:0;left:var(--tree-indent, 0px);right:0;border-radius:6px;background-color:#1f4f99}.tree-node-button.deduction-group:hover:before,.tree-node-button.data-item-deduction:hover:before,.tree-node-button.data-item-inline-deduction:hover:before{background-color:#255eb3}.tree-node-button.data-item-deduction.selected-estimation:before{background-color:#245bb8}.tree-node-button.data-item-inline-deduction.selected-deduction:before{background-color:#245bb8}.tree-node-button.deduction-group>*,.tree-node-button.data-item-deduction>*,.tree-node-button.data-item-inline-deduction>*{position:relative;z-index:1}.tree-node-chevron{height:16px;width:16px;flex-shrink:0;color:#b3b3b3;transition:transform .2s}.tree-node-chevron.rotate-90{transform:rotate(90deg)}.tree-node-chevron-placeholder{width:0;height:16px;flex-shrink:0}.tree-node-spacer{width:16px}.tree-node-icon{flex-shrink:0;color:#b3b3b3;display:flex;align-items:center;justify-content:center}.tree-node-icon svg{width:16px;height:16px}.tree-node-label-container{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex-grow:1;display:flex;align-items:center;justify-content:space-between;min-width:0}.tree-node-children{overflow:hidden;transition:all .2s ease-in-out;opacity:1;max-height:2000px}.tree-node-children.closed{max-height:0;opacity:0}.deduction-details{display:flex;justify-content:space-between;width:-webkit-fill-available}.quotation-modal-overlay{position:fixed;top:0;left:0;width:100vw;height:100vh;background:#0009;z-index:1000;display:flex;align-items:center;justify-content:center}.quotation-modal-content{background:#2d2d2d;color:#fff;width:100vw;max-width:100vw;height:100vh;border-radius:0;padding:12px;box-shadow:0 4px 12px #0003;border:1px solid #3a3a3a;display:flex;flex-direction:column}.quotation-modal-header{display:flex;justify-content:space-between;align-items:center}.quotation-tabs{display:flex;gap:16px}.quotation-tab{background:none;border:none;border-radius:unset;outline:none;color:#b0b0b0;padding:8px 4px;font-size:16px;cursor:pointer;border-bottom:2px solid transparent;transition:color .2s}.quotation-tab:not(.active):hover{color:#fff;border-bottom-color:transparent!important}.quotation-tab.active{color:#fff;font-weight:700;border-bottom-color:#38bc48}.quotation-tabs button:focus,.quotation-tabs button:focus-visible{outline:none}.quotation-close-button{background-color:#5d5d5d;color:#fff;border:none;border-radius:4px;padding:6px 16px;cursor:pointer}.quotation-divider{border:none;border-top:1px solid #535353;margin:0}.quotation-modal-body{flex-grow:1;overflow-y:auto;padding-top:12px}.quotation-info-container{display:flex;flex-direction:column;height:100%}.info-form{flex-grow:1;overflow-y:auto;display:flex;flex-direction:column;gap:16px;padding-right:16px}.info-row{display:grid;grid-template-columns:1fr 1fr;gap:24px}.info-group{display:flex;flex-direction:column;font-size:1rem}.info-group label{margin-bottom:8px;color:#e3e3e3}.info-group input[type=text],.info-group input[type=date],.info-group textarea{background:#222;border:1px solid #535353;border-radius:4px;padding:10px;color:#fff;font-size:14px}.info-group textarea{resize:vertical}.info-group textarea.full-width{grid-column:1 / -1}.info-actions{display:flex;justify-content:center;padding-top:16px;border-top:1px solid #535353;flex-shrink:0}.save-button{background-color:#1981ff;color:#fff;border:none;border-radius:4px;padding:10px 24px;font-size:16px;cursor:pointer}.quotation-detail-nodisplay-container{display:flex;align-items:center;justify-content:center;color:#e3e3e3}.quotation-detail-container{display:flex;flex-direction:column;height:100%}.detail-header{display:flex;justify-content:flex-start;flex-shrink:0}.work-type-cards-container{flex-grow:1;overflow-y:auto;display:flex;flex-direction:column;gap:20px;padding-bottom:10px}.add-work-type-button{background-color:#38bc48;color:#fff;border:none;padding:8px 16px;border-radius:4px;cursor:pointer}.work-type-card{background-color:#3c3c3c;border-radius:6px;padding:16px;border:1px solid #535353}.work-type-title{background:none;border:none;color:#fff;font-size:18px;font-weight:700;width:100%}.detail-table{width:100%;border-collapse:collapse}.detail-table th,.detail-table td{padding:8px;text-align:left;border-bottom:1px solid #535353;vertical-align:middle}.detail-table th{font-size:12px;color:#b0b0b0}.detail-table input,.detail-table select{width:100%;background:#2d2d2d;border:1px solid #535353;color:#fff;padding:6px;border-radius:4px;box-sizing:border-box}.name-input-wrapper{position:relative}.name-options-dropdown{position:absolute;z-index:3;background:#2d2d2d;border:1px solid #535353;border-radius:4px;width:100%;max-height:200px;overflow-y:auto;list-style:none;margin:4px 0 0;padding:4px 0;box-shadow:0 2px 8px #0000004d}.name-options-dropdown li{padding:6px 10px;cursor:pointer}.name-options-dropdown li:hover{background:#3c3c3c}.detail-table td.actions-cell{padding:10px}.detail-table .actions-cell-content{display:flex;gap:4px}.draggable-row{cursor:grab}.draggable-row.drag-over{outline:2px dashed #7db4ff;outline-offset:-4px;background-color:#222}.drag-handle{cursor:grab}.drag-handle:active{cursor:grabbing}.action-button{background:#5d5d5d;color:#fff;border:none;cursor:pointer;border-radius:4px;display:flex;align-items:center;justify-content:center}.action-button:disabled{opacity:.3;cursor:not-allowed}.action-button.delete{background:#c94f4f}.work-type-footer{display:flex;justify-content:space-between;align-items:center;margin-top:12px}.add-item-button{background:none;border:1px dashed #b7b7b7;color:#e5e5e5;cursor:pointer;padding:4px;border-radius:50%;display:flex;align-items:center;justify-content:center}.work-type-total{display:flex;justify-content:flex-end;font-weight:700;gap:16px;font-size:16px;padding-right:4px}.detail-footer{border-top:1px solid #535353;display:flex;justify-content:flex-end;align-items:center;padding:16px 4px;background:#2d2d2d;flex-shrink:0}.net-amount-container{display:flex;align-items:center;gap:8px;margin-top:8px;width:250px;justify-content:space-between}.net-amount-container input{width:150px;padding:6px 8px;border-radius:4px;border:1px solid #535353;background:#1f1f1f;color:#f0f0f0}.detail-footer .save-button{position:absolute;left:50%;transform:translate(-50%)}.total-amount-container{display:flex;flex-direction:column;align-items:flex-end;gap:8px;margin-right:16px}.total-amount-row{display:flex;justify-content:space-between;width:250px;font-size:16px}.total-amount-row.total{font-size:18px;font-weight:700;border-top:1px solid #535353;padding-top:8px}.quotation-preview-nodisplay-container{display:flex;align-items:center;justify-content:center;color:#e3e3e3}.quotation-preview-container{display:flex;flex-direction:column;height:100%}.preview-controls{display:flex;justify-content:space-between;align-items:center;padding-bottom:12px}.template-selector,.output-actions{display:flex;align-items:center;gap:12px}.template-selector label{color:#b0b0b0}.template-selector select,.output-actions select{background:#3c3c3c;color:#fff;border:1px solid #535353;padding:8px;border-radius:4px}.output-button{background-color:#1981ff;color:#fff;border:none;border-radius:4px;padding:8px 16px;cursor:pointer}.preview-area{flex-grow:1;background-color:#222;border:1px solid #535353;border-radius:4px;display:flex;justify-content:center;align-items:flex-start;padding:20px;overflow:auto}.preview-area img{max-width:100%;height:auto;box-shadow:0 0 10px #00000080}.work-type-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px}.work-type-actions{display:flex;align-items:center;gap:12px}.work-type-move-buttons{display:flex;gap:4px}.page-filter-container{display:flex;align-items:center;justify-content:space-between;gap:8px;width:320px}.page-filter-dropdown-container{display:flex;align-items:center}.action-button.delete.container-delete-button{padding:6px 16px;margin-right:8px;width:auto}.page-filter-dropdown{position:relative;width:110px}.page-filter-dropdown>button{background:#2d2d2d;color:#fff;border:1px solid #535353;padding:6px 12px;border-radius:4px;cursor:pointer}.page-filter-list{position:absolute;top:100%;right:0;background-color:#2d2d2d;border:1px solid #535353;border-radius:4px;padding:8px;z-index:10;max-height:200px;overflow-y:auto;width:250px}.page-filter-item{display:flex;align-items:center;padding:4px}.page-filter-item.cropped{padding-left:20px}.page-filter-item input{margin-right:8px}.page-filter-close-button{display:block;width:100%;background:#5d5d5d;color:#fff;border:none;padding:6px;border-radius:4px;cursor:pointer}.quotation-template-standard.page{padding:40px;background-color:#fff;color:#000;width:210mm;min-height:297mm;box-sizing:border-box;font-family:'"Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif';font-size:10pt;position:relative;display:block;page-break-inside:avoid}.quotation-template-container{display:flex;flex-direction:column;gap:20px}@media print{.quotation-template-container{gap:0}.page{page-break-after:always;box-shadow:none!important;margin:0!important;padding:40px!important}}.quotation-template-standard .template-header{display:flex;justify-content:space-between;align-items:flex-start}.quotation-template-standard .header-left{width:65%;display:flex;flex-direction:column;align-items:start;justify-content:start}.quotation-template-standard .header-right{width:25%;text-align:left;font-size:10pt}.quotation-template-standard .header-right p{margin:0 0 5px}.quotation-template-standard .header-right p:last-child{margin-bottom:0}.quotation-template-standard .company-info{margin-top:10px;position:relative;display:inline-block;text-align:left}.quotation-template-standard .title{text-align:center;font-size:20pt;letter-spacing:2px;margin:0 0 20px}.quotation-template-standard .customer-name-container{display:flex;align-items:center;width:60%}.quotation-template-standard .customer-name{font-size:12pt;border-bottom:1px solid black;margin:0;width:100%;display:flex;justify-content:center}.quotation-template-standard .customer-title{margin:0}.quotation-template-standard .greeting{margin:6px 0}.quotation-template-standard .detail-container{display:flex;gap:8px;width:100%}.quotation-template-standard .detail-container p{margin:0 0 6px}.quotation-template-standard .info-title{width:15%}.quotation-template-standard .info-data{width:70%}.quotation-template-standard .detail-info-data{border-bottom:1px solid black}.quotation-template-standard .detail-info-name{border-bottom:1px solid rgb(255,255,255)}.quotation-template-standard .total-amount-box{display:flex;justify-content:space-between;align-items:center;padding:10px;border:2px solid black;margin:20px 0}.quotation-template-standard .total-amount-label{font-size:11pt}.quotation-template-standard .total-amount-value{font-size:16pt;font-weight:700}.quotation-template-standard .info-table{border-collapse:collapse;border:1px solid black;margin-bottom:20px;font-size:9pt}.quotation-template-standard .info-table-td{border:2px solid black;padding:5px 8px}.quotation-template-standard .info-table-td-header{background-color:#f2f2f2;width:86px;text-align:center;font-size:11pt}td.info-table-td.info-table-td-data{width:280px;text-align:center;font-size:14pt}.quotation-template-standard .details-table{width:100%;border-collapse:collapse;font-size:9pt;table-layout:fixed}.quotation-template-standard .details-table th,.quotation-template-standard .details-table td{border:1px solid black;padding:8px;vertical-align:top;overflow-wrap:break-word}.quotation-template-standard .details-table th{background-color:#f2f2f2}.quotation-template-standard .work-type-table-header{font-weight:700}.quotation-template-standard .number-cell{text-align:right}.quotation-template-standard .text-center{text-align:center}.quotation-template-standard .summary-row-td{border:1px solid black;padding:8px;font-weight:700}.quotation-template-standard .summary-row-td.no-border{border:none}.quotation-template-standard .summary-header{background-color:#f2f2f2}.quotation-template-standard .note-section{margin-top:20px}.quotation-template-standard .note-content{border:1px solid black;padding:10px;min-height:50px;white-space:pre-wrap}.quotation-template-standard .page-footer{position:absolute;bottom:20px;left:0;right:0;text-align:center;font-size:9pt;color:#555}.estimate-right{width:clamp(260px,22vw,270px);font-size:clamp(12px,1.4vw,13px);overflow-x:hidden;color:#fff;background-color:#2d2d2d;box-sizing:border-box;display:flex;flex-direction:column;border-right:1px solid #535353;border-left:1px solid #535353;transition:width .2s ease}.estimate-right.is-editing{width:calc(clamp(260px,22vw,270px) + 20vw)!important;min-width:calc(250px + 20vw)!important}.estimate-right.collapsed{width:50px;overflow:hidden;transition:width .2s ease}.right-pane-header{display:flex;justify-content:space-between;align-items:center;min-height:50px;padding:0 10px;border-bottom:1px solid #535353}.right-pane-header.collapsed{justify-content:center}.right-pane-title{color:#fff;font-size:clamp(14px,1.6vw,16px);font-weight:700;white-space:nowrap}.right-pane-scale-register{display:flex;align-items:center;gap:10px}.scale-info-button{height:32px;padding:0 10px;border-radius:4px;border:1px solid #9ad0ff;background:transparent;color:#9ad0ff;cursor:pointer;font-size:12px}.scale-info-button:disabled{opacity:.4;cursor:not-allowed}.right-pane-scale-register .scale-status-button{height:36px;padding:0 8px}.scale-status-text{color:#fff;font-size:14px;white-space:nowrap;padding-left:8px}.right-pane-toggle-icon{display:flex;color:#fff;cursor:pointer;font-size:18px;-webkit-user-select:none;user-select:none}.estimate-registration{display:flex;flex:10;flex-direction:column;align-items:center;justify-content:start}.right-header{display:flex;align-items:center;gap:8px;margin-bottom:8px}.indicator{width:8px;height:16px;background:#00c853;border-radius:2px}.register-btn{flex:1;background:#2196f3;border:none;border-radius:4px;color:#fff;padding:4px 8px;cursor:pointer}.row-card{position:relative;border:1px solid #eee;padding:8px;margin-bottom:8px;background:#333}.row-grid{display:grid;grid-template-columns:1fr 1fr;gap:6px}.row-grid .full{grid-column:1/3}.row-grid input{background:#222;border:none;padding:6px;border-radius:4px;color:#fff}.remove-btn{position:absolute;right:-14px;top:50%;transform:translateY(-50%);background:#eee;border-radius:50%;border:none;width:28px;height:28px;cursor:pointer}.add-row-btn{width:100%;background:#444;border:none;padding:8px;border-radius:4px;color:#fff;cursor:pointer}.estimate-details{margin:10px;padding:14px;border:1px solid #e0e0e0;border-radius:5px;background-color:#f9f9f9}.roof-slope-fields{margin-bottom:8px}.estimate-field{margin-bottom:8px;display:flex;align-items:center}.estimate-field:last-child{margin-bottom:0}.estimate-field label,.estimate-field .label{width:40px;margin-right:10px;font-weight:500;color:#333;font-size:.9em}.estimate-field span,.estimate-field input,.estimate-field select{flex-grow:1;padding:8px 10px;border:1px solid #ccc;border-radius:4px;box-sizing:border-box;background-color:#fff;font-size:.9em;color:#222;width:170px}.estimate-field input[type=checkbox]{width:10px}.material-select{padding:8px 10px;border:1px solid #ccc;border-radius:4px;background-color:#fff;color:#222;transition:background-color .2s ease,color .2s ease,border-color .2s ease;max-width:100%;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.material-select:disabled{opacity:.6;cursor:not-allowed}.material-option{padding:6px 10px;background-color:#fff;color:#222}.estimate-field select:disabled{background-color:#f0f0f0;cursor:not-allowed}.estimate-field .value{font-family:Menlo,Monaco,Consolas,Courier New,monospace;font-size:.9em;color:#0056b3;background-color:#e9ecef;padding:5px 8px;border-radius:3px;word-break:break-all;white-space:pre-line}.no-shape-selected-message{margin-top:20px;text-align:center;color:#777}.actions-container{width:-webkit-fill-available}.perimeter-registration-start-button{background-color:#b0b0b0}.perimeter-registration-start-button.ready{background-color:#007bff}.perimeter-registration-start-button:disabled{cursor:not-allowed;opacity:.85}.button-group{display:flex;gap:10px;justify-content:center}.button-group+.button-group{margin-top:10px}.button-with-icon{display:flex;align-items:center;justify-content:center;gap:6px}.button-with-icon svg{font-size:14px}.material-input-wrapper{display:flex;gap:8px;align-items:center}.coefficient-input{width:70px;padding:8px 10px;border:1px solid #ccc;border-radius:4px;box-sizing:border-box}.material-field-with-coefficient label{width:40px}.side-checkbox-label{flex:5}.rectangle-side-checkbox{flex:1}.column-actions-container{display:flex;justify-content:center;align-items:center;flex-direction:column;width:100%;padding:0 10px;gap:10px}.multi-duplicate-banner,.duplicate-cancel-banner{margin:10px;padding:10px;border:1px solid #555;border-radius:6px;background-color:#2a2a2a;display:flex;flex-direction:column;gap:8px;align-items:center}.multi-duplicate-text,.duplicate-cancel-text{font-size:12px;color:#e0e0e0;margin:0;text-align:center}.estimation-registration-cancel-button,.estimation-registration-button,.new-registration-button,.perimeter-registration-start-button,.curve-registration-button,.perimeter-registration-button,.perimeter-cancel-button,.estimation-edit-button,.estimation-delete-button,.estimation-update-button,.estimation-cancel-button,.estimation-duplicate-button,.multi-duplicate-button,.multi-duplicate-end-button,.duplicate-cancel-button{color:#fff;background-color:#474747;width:120px;border-radius:4px;cursor:pointer}.estimation-registration-cancel-button,.estimation-registration-button,.perimeter-registration-start-button{width:-webkit-fill-available;margin:0 10px}.multi-duplicate-end-button,.duplicate-cancel-button{width:242px}.estimation-delete-button{background-color:#d32f2f}.estimation-update-button,.estimation-registration-button,.new-registration-button,.perimeter-registration-button{background-color:#2fa84f}.perimeter-button{color:#fff;background-color:#474747;width:116px;border-radius:4px}.rectangle-sides-field .rectangle-side-checkboxes{width:-webkit-fill-available}.rectangle-side-option{display:flex;align-items:center;gap:4px}.steel-takeoff-panel{border:1px solid #4d4d4d;border-radius:6px;padding:10px;margin-bottom:12px;background:#2b2b2b;color:#fff;gap:8px;display:flex;flex-direction:column}.steel-panel-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:6px}.steel-panel-title{font-weight:700;font-size:1rem}.steel-panel-actions{display:inline-flex;align-items:center;gap:8px;margin-left:auto}.steel-edit-mode-button{background:none;border:none;padding:4px;cursor:pointer;color:#666;font-size:1.2rem;outline:none}.steel-edit-mode-button.is-active{color:#3b82f6}.steel-edit-mode-button:focus,.steel-edit-mode-button:focus-visible,.steel-edit-mode-button:active{outline:none;box-shadow:none}.steel-add-button{background:#4c9fff;color:#fff;border:none;border-radius:4px;padding:4px 8px;cursor:pointer}.steel-items{display:flex;flex-direction:column;gap:8px}.steel-item-row{display:flex;align-items:center;gap:6px;padding:6px;background:#1f1f1f;border:none;border-radius:4px;cursor:pointer}.steel-item-row.selected{background:var(--steel-selected-color, #2f3a4a)}.steel-shape-select{padding:4px;background:#2e2e2e;color:#fff;border:1px solid #4d4d4d;border-radius:4px;flex-shrink:0}.steel-separator{color:#9b9b9b;font-weight:700}.steel-color-picker{width:24px;height:24px;padding:0;border:none;background:transparent;flex-shrink:0}.steel-takeoff-dimensions{display:flex;align-items:center;gap:4px;flex:1 1 180px;flex-wrap:nowrap;min-width:0}.steel-delete-button{margin-left:auto;padding:4px 8px;border-radius:4px;border:1px solid #bb4a4a;background:#5a1f1f;color:#fff;cursor:pointer;flex-shrink:0}.steel-delete-button:hover{background:#762525}.steel-dimension-input{width:70px;padding:6px 8px;border-radius:4px;border:1px solid #4d4d4d;background:#2e2e2e;color:#fff;flex:1 1 70px;min-width:0}.steel-label-preview{margin-left:0;color:#bfbfbf;font-size:.85rem;white-space:nowrap;flex:1 1 100%;text-align:right;overflow:hidden;text-overflow:ellipsis}.quick-creator-container{height:-webkit-fill-available;display:flex;flex-direction:column;margin-bottom:auto;overflow-y:auto}.part-group-switcher{display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid #535353;color:#fff}.part-group-title{display:flex;align-items:center;gap:8px}.part-group-edit-button{display:inline-flex;align-items:center;gap:6px;padding:6px 10px;border-radius:6px;border:1px solid #535353;background:#3a3a3a;color:#fff;cursor:pointer;font-size:12px;transition:background-color .15s ease,border-color .15s ease}.part-group-edit-button.active{background:#4d6dff;border-color:#7388ff}.part-group-edit-button:disabled{opacity:.5;cursor:not-allowed}.part-group-actions-row{display:flex;justify-content:flex-end}.part-add-button{width:-webkit-fill-available;display:inline-flex;align-items:center;gap:6px;padding:8px 12px;border-radius:6px;border:1px solid #535353;background:#3f3f3f;color:#fff;cursor:pointer}.part-add-button:disabled{opacity:.5;cursor:not-allowed}.group-switch-button{background:none;cursor:pointer;align-items:center;justify-content:center;color:#fff;font-size:18px;line-height:1;border-radius:6px;transition:background-color .15s ease,color .15s ease,border-color .15s ease}.group-switch-button:active,.group-switch-button:focus{background-color:transparent;outline:none;box-shadow:none}.group-switch-button{-webkit-tap-highlight-color:transparent}.group-switch-button:disabled{opacity:.5;cursor:not-allowed}.quick-part-list-wrapper{overflow-y:auto}.part-group-name{font-weight:700;font-size:1.1em}.quick-part-list{list-style:none;padding:0;margin:0;color:#fff}.quick-part-row{display:flex;min-height:28px;justify-content:space-between;align-items:center;padding:6px 8px;border-bottom:1px solid #535353;border-right:1px solid #535353;border-left:1px solid #535353;cursor:pointer;transition:background-color .2s;gap:8px}.quick-part-row.selected{background-color:#666}.quick-part-row.editing{cursor:default}.quick-part-row .part-name{flex-grow:1;min-width:0;overflow:hidden;text-overflow:ellipsis}.quick-part-row .material-dropdown{padding:5px;border-radius:4px;border:1px solid #ccc;font-size:12px;width:120px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.material-with-coefficient{display:flex;align-items:center;gap:6px}.quick-part-row .part-color-input{max-width:24px;height:24px;padding:0;border:none;background:transparent;cursor:pointer}.material-dropdown-wrapper{position:relative}.material-dropdown-toggle{display:inline-flex;align-items:center;gap:6px;padding:5px 8px;border-radius:4px;border:1px solid #ccc;cursor:pointer;background-color:var(--material-color, #ffffff);color:var(--material-text-color, #222);min-width:150px}.material-dropdown-toggle:focus{outline:none}.material-dropdown-swatch{width:16px;height:16px;border-radius:4px;border:1px solid #ccc;flex-shrink:0}.material-dropdown-text{flex:1;text-align:left}.material-dropdown-icon{flex-shrink:0}.material-dropdown-menu{position:absolute;top:calc(100% + 4px);right:0;background:#2d2d2d;border:1px solid #535353;border-radius:6px;padding:6px 0;min-width:180px;z-index:5;box-shadow:0 4px 12px #00000059}.material-dropdown-item{display:flex;align-items:center;gap:8px;padding:6px 12px}.material-dropdown-item:hover{background:#3a3a3a}.material-color-input{width:32px;height:26px;padding:0;border:none;background:transparent;cursor:pointer}.drag-handle{display:inline-flex;align-items:center;justify-content:center;color:#bfbfbf;margin-right:6px;cursor:grab}.delete-part-button{margin-left:8px;background:transparent;border:none;color:#ff6b6b;cursor:pointer;display:inline-flex;align-items:center}.delete-part-button:disabled{opacity:.5;cursor:not-allowed}.quick-part-row .coefficient-input{width:32px;padding:4px 6px;font-size:12px}.info-message{text-align:center;color:#888;padding:20px}.modal-overlay{position:fixed;top:0;right:0;bottom:0;left:0;background:#00000080;display:flex;align-items:center;justify-content:center;z-index:1000}.part-add-modal{background:#2d2d2d;border-radius:8px;width:min(480px,90vw);max-height:80vh;display:flex;flex-direction:column;border:1px solid #535353}.modal-header,.modal-footer{padding:12px 16px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #535353}.modal-footer{border-top:1px solid #535353;border-bottom:none}.modal-header h3{margin:0;color:#fff}.modal-body{padding:12px 16px;overflow-y:auto;color:#fff}.modal-close-button{background:transparent;border:none;color:#fff;cursor:pointer}.modal-search-input{padding:8px;border-radius:6px;border:1px solid #535353;background:#1f1f1f;color:#fff}.part-add-list ul{list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:8px}.part-add-row{padding:8px;border:1px solid #535353;border-radius:6px;background:#3a3a3a}.part-add-label{display:flex;align-items:center;gap:8px;color:#fff}.part-color-indicator{width:14px;height:14px;border-radius:3px;border:1px solid #222222;display:inline-block}.part-add-name{flex:1}.modal-cancel-button,.modal-add-button{padding:8px 14px;border-radius:6px;border:1px solid #535353;background:#3f3f3f;color:#fff;cursor:pointer}.modal-add-button{background:#4d6dff;border-color:#7388ff}.modal-add-button:disabled{opacity:.5;cursor:not-allowed}.interior-registration-pane{display:flex;flex-direction:column;flex:1;height:auto;min-height:0;padding:6px;box-sizing:border-box;gap:6px;color:#fff}.interior-layout{display:flex;flex-direction:column;flex:1;height:auto;min-height:0;gap:6px}.interior-top-area{display:grid;grid-template-columns:1fr 1fr;gap:6px;min-height:0}.interior-basic-info,.interior-openings-list{background:#1f1f1f;border:1px solid #535353;border-radius:8px;padding:10px;box-sizing:border-box;min-height:0}.interior-basic-info h3,.interior-openings-list h3{margin:0 0 10px;color:#fff}.interior-basic-info .info-row,.interior-basic-info .input-group{display:flex;align-items:center;justify-content:space-between;gap:6px;margin:8px 0}.interior-basic-info label{color:#cfcfcf}.interior-basic-info span{font-weight:600}.interior-basic-info input{max-width:25%;padding:6px 8px;border-radius:6px;border:1px solid #535353;background:#2d2d2d;color:#fff}.interior-basic-info select{flex:1;padding:6px 8px;border-radius:6px;border:1px solid #535353;background:#2d2d2d;color:#fff}.interior-basic-info .highlight span{color:#9ad0ff}.interior-openings-list{display:flex;flex-direction:column;gap:6px;height:250px;overflow:hidden}.interior-basic-info .list-header{padding:4px 0 12px}.interior-openings-list .list-header{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:0 4px 6px 0}.list-header-title{color:#fff;font-size:16px;font-weight:700}.interior-openings-list .list-content{flex:1;overflow-y:auto;display:flex;flex-direction:column;gap:6px;padding-right:4px;min-height:0}.opening-card{border:1px solid #535353;border-radius:8px;padding:6px 8px;background:#2d2d2d;display:flex;flex-direction:column;gap:4px;position:relative}.opening-card .card-row{display:flex;align-items:center;gap:6px}.opening-card .card-row input{width:46px}.opening-card label{min-width:48px;color:#cfcfcf}.opening-card select,.opening-card input{background:#1f1f1f;border:1px solid #535353;border-radius:6px;padding:4px 6px;color:#fff}.opening-card .delete-btn{margin-left:auto;background:transparent;border:none;color:#ff6b6b;cursor:pointer}.opening-card .placement-inputs{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.opening-card .opening-card-number{position:absolute;right:8px;bottom:6px;font-size:12px;color:#cfcfcf;opacity:.8;pointer-events:none}.interior-bottom-area{display:flex;flex-direction:column;flex:1;min-height:0;gap:12px}.interior-3d-area{flex:1;min-height:0;background:#0f0f0f;border:1px solid #535353;border-radius:10px;display:flex;align-items:center;justify-content:center;overflow:hidden}.interior-mode-wrapper{flex:1;display:flex;flex-direction:column;min-height:0;overflow:hidden;background-color:#2d2d2d}.interior-footer{display:flex;justify-content:flex-end;gap:8px;flex-shrink:0}.interior-footer button{padding:10px 14px;border-radius:8px;border:1px solid #535353;background:#2d2d2d;color:#fff;cursor:pointer}.interior-footer .save-btn{background:#4d6dff;border-color:#7388ff}.related-estimations-container{margin-top:12px;padding:10px;border:1px solid #535353;border-radius:8px;background:#2d2d2d}.related-estimations-title{margin:0 0 6px;font-size:14px;color:#dcdcdc}.related-estimations-list{list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:6px}.related-estimations-item{display:flex;justify-content:space-between;align-items:center;font-size:12px;color:#eaeaea}.related-estimations-part{max-width:70%;word-break:break-all}.related-estimations-quantity{font-weight:600}.setting-page{min-height:100vh;width:100%;background-color:#2d2d2d;color:#ececec;font-family:Noto Sans JP,sans-serif}.setting-container{max-width:1040px;margin:0 auto;padding:0 16px 24px;display:flex;flex-direction:column;gap:16px}.setting-header{display:flex;justify-content:space-between;align-items:center;padding:20px 0 10px;border-bottom:1px solid #3a3a3a}.header-left{display:flex;align-items:flex-start;gap:12px}.back-button{background:transparent;border:1px solid #3a3a3a;color:#ececec;cursor:pointer;font-size:13px;padding:6px 10px;border-radius:6px;transition:background-color .2s,border-color .2s}.back-button:hover{background-color:#333;border-color:#4a4a4a}.header-title h1{margin:0;font-size:24px}.project-name{color:#b0b0b0;margin:6px 0 0;font-size:14px}.setting-body{display:flex;flex-direction:column;gap:12px}.setting-card{background:#252525;border:1px solid #3a3a3a;border-radius:12px;padding:20px;box-shadow:0 2px 6px #0000004d}.setting-item{display:flex;justify-content:space-between;align-items:center;gap:16px}.setting-text h2{margin:4px 0;font-size:18px}.setting-label{color:#38bc48;font-weight:700;margin:0;font-size:13px;letter-spacing:.02em;text-transform:uppercase}.setting-label.subtle{color:#9ad3a1;font-size:12px}.setting-description{color:silver;margin:6px 0 0;line-height:1.6}.setting-description.compact{margin-top:2px;color:#b8b8b8}.setting-footer{display:flex;gap:12px;align-items:center;margin-top:12px}.worktype-add-controls{display:flex;gap:10px;align-items:center}.worktype-add-controls select{background:#1b1b1b;color:#ececec;border:1px solid #3a3a3a;padding:8px 10px;border-radius:8px}.outline-button{background:transparent;color:#ececec;border:1px solid #4a4a4a;padding:8px 12px;border-radius:8px;cursor:pointer;transition:background-color .2s,border-color .2s,color .2s}.outline-button:hover{background:#333;border-color:#5a5a5a}.outline-button:disabled{opacity:.6;cursor:not-allowed}.outline-button.danger{color:#f16a5b;border-color:#f16a5b}.outline-button.danger:hover{background:#f16a5b14}.worktype-settings-body{margin-top:14px;display:flex;flex-direction:column;gap:12px}.worktype-entry{border:1px solid #3a3a3a;border-radius:10px;padding:14px;background:#1f1f1f;display:flex;flex-direction:column;gap:10px}.worktype-entry-header{display:flex;justify-content:space-between;align-items:flex-start;gap:12px}.part-group-section{display:flex;flex-direction:column;gap:8px}.part-group-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:10px}.checkbox-item{display:flex;gap:10px;padding:10px;border:1px solid #3a3a3a;border-radius:8px;background:#262626;align-items:flex-start}.checkbox-label{display:flex;gap:2px;color:#ececec}.checkbox-title{font-weight:600}.checkbox-description{color:#a0a0a0;font-size:13px}.status-message{color:#ececec}.status-message.inline{margin-top:0;font-size:14px}.status-message.error{color:#f44336}.status-message.success{color:#38bc48}.toggle-switch{position:relative;display:inline-block;width:52px;height:28px}.toggle-switch input{opacity:0;width:0;height:0}.slider{position:absolute;cursor:pointer;top:0;left:0;right:0;bottom:0;background-color:#4a4a4a;transition:.2s;border-radius:28px}.slider:before{position:absolute;content:"";height:22px;width:22px;left:3px;bottom:3px;background-color:#ececec;transition:.2s;border-radius:50%;box-shadow:0 1px 3px #0000004d}.toggle-switch input:checked+.slider{background-color:#38bc48}.toggle-switch input:focus+.slider{box-shadow:0 0 0 2px #38bc4859}.toggle-switch input:checked+.slider:before{transform:translate(24px)}.template-management-container{display:flex;height:100vh;width:100vw;overflow:hidden;background-color:#2d2d2d}.main-content{flex:1;display:flex;flex-direction:column;overflow:hidden;position:relative;background-color:#2d2d2d}.header{display:flex;justify-content:space-between;align-items:center;padding:16px;border-bottom:1px solid #3a3a3a;color:#ececec}.page-title{font-size:24px;font-weight:700;margin-bottom:10px}.add-button{background-color:#38bc48;color:#fff;border:none;padding:10px 20px;border-radius:4px;cursor:pointer;display:flex;align-items:center;gap:8px;margin:0}.add-button:hover{background-color:#2da03d}.template-list-container{flex:1;overflow:auto;padding:20px;width:100%;box-sizing:border-box}.loading-container{display:flex;justify-content:center;align-items:center;height:100vh;color:#ececec}.no-templates{display:flex;justify-content:center;align-items:center;height:100%;color:#b0b0b0}.template-table{width:100%;border-collapse:collapse;color:#ececec}.table-header{border-bottom:1px solid #3a3a3a}.table-header th{padding:12px 15px;text-align:left;font-weight:500;color:#ececec}.table-row{border-bottom:1px solid #3a3a3a}.table-row:hover{background-color:#4a4a4a;cursor:pointer}.table-row td{padding:15px;vertical-align:middle}.template-name-cell{width:300px;min-width:300px;word-break:break-word;overflow-wrap:anywhere;white-space:normal}.action-column-header{text-align:center;width:80px}.action-cell{text-align:center}.delete-button{background:none;border:none;color:#c94f4f;cursor:pointer;font-size:16px;padding:5px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;transition:background-color .2s,color .2s}.delete-button:hover{background-color:#4a4a4a;color:#ff6b6b}.delete-button-text{background-color:#c94f4f;color:#fff;border:none;padding:10px 20px;border-radius:4px;cursor:pointer}.delete-button-text:hover{background-color:#ff6b6b}.modal-overlay{position:fixed;top:0;left:0;right:0;bottom:0;background-color:#000000b3;display:flex;justify-content:center;align-items:center;z-index:1000}.modal-content{background:#2d2d2d;display:flex;flex-direction:column;align-items:stretch;border-radius:8px;padding:30px;box-shadow:0 4px 12px #0003;border:1px solid #3a3a3a;width:400px;max-height:90vh;overflow-y:auto}.detail-modal{width:100%}.modal-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:0}.modal-title{font-size:1.4rem;color:#ececec;margin:0;text-align:left;flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.close-button{background:none;border:none;color:#ececec;font-size:24px;cursor:pointer}.modal-body{display:flex;flex-direction:column;gap:16px}.modal-section-divider{width:100%;height:1px;background-color:#3a3a3a;margin:16px 0}.form-group{margin-bottom:10px}.form-label{display:block;margin-bottom:8px;color:#ececec;font-size:14px;font-weight:700}.form-input{width:100%;padding:10px;border-radius:4px;border:1px solid #3a3a3a;background-color:#333;color:#ececec;font-size:14px;box-sizing:border-box}.form-input:read-only{background-color:#2d2d2d;border:none;padding-left:0}.detail-value{color:#ececec;font-size:14px;padding:10px 0}.file-upload-area{border:2px dashed #474747;padding:20px;text-align:center;border-radius:4px;cursor:pointer;color:#ececec;transition:border-color .2s}.file-upload-area.small{padding:10px}.file-upload-area:hover{border-color:#38bc48}.file-upload-area.dragging{border-color:#38bc48;background-color:#333}.file-name-display{margin-top:10px;color:#38bc48;font-size:14px}.modal-actions{display:flex;justify-content:center;gap:12px;width:100%}.detail-actions-row{display:flex;justify-content:flex-end;gap:12px;margin-top:10px}.cancel-button{background-color:#5d5d5d;color:#ececec;border:none;padding:10px 20px;border-radius:4px;cursor:pointer}.create-button{color:#ececec;border:none;border-radius:4px;cursor:pointer}.create-button:disabled{background-color:#555;cursor:not-allowed}.edit-button{background-color:#1981ff;color:#ececec;border:none;padding:10px 20px;border-radius:4px;cursor:pointer}.detail-preview-section{margin-top:10px}.preview-container{display:flex;flex-direction:column;align-items:center;background-color:#333;padding:20px;border-radius:8px;border:1px solid #3a3a3a}.preview-icon{font-size:48px;margin-bottom:10px}.excel-icon{color:#217346}.word-icon{color:#2b579a}.preview-message{color:#ececec;margin-bottom:15px}.preview-download-button{display:flex;align-items:center;gap:8px;background-color:#38bc48;color:#fff;border:none;padding:10px 20px;border-radius:4px;cursor:pointer;font-size:14px}.preview-download-button:hover{background-color:#2da03d}.confirm-delete-modal{width:360px}.confirm-delete-message{color:#b0b0b0;text-align:center;line-height:1.6;margin:0}.confirm-delete-actions{display:flex;justify-content:flex-end;gap:16px}.confirm-delete-actions button{padding:10px 20px;border-radius:4px;font-size:14px;width:120px}.confirm-button{background-color:#dc3545;color:#fff;border:none}.confirm-button:hover{background-color:#c82333}.detail-tabs{display:flex;gap:8px}.tab-button{flex:1;padding:10px 12px;background-color:#3a3a3a;border:1px solid #4a4a4a;color:#ececec;border-radius:6px;cursor:pointer;font-weight:700}.tab-button.active{background-color:#1981ff;border-color:#1981ff;color:#fff}.replacement-tab-content{display:flex;flex-direction:column;gap:20px;padding-bottom:10px}.replacement-section{background:#2f2f2f;border:1px solid #3a3a3a;border-radius:8px;padding:16px;display:flex;flex-direction:column;gap:12px}.replacement-title{margin:0;color:#ececec;font-size:16px}.replacement-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:12px}.replacement-two-column{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:12px}.replacement-field{display:flex;flex-direction:column;gap:8px;background-color:#333;border:1px solid #3a3a3a;border-radius:8px;padding:12px}.replacement-label{font-weight:700;color:#ececec}.replacement-controls{display:flex;flex-direction:column;gap:6px}.prefix-suffix-row{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:8px}.prefix-suffix-item{display:flex;flex-direction:column;gap:4px}.small-label{font-size:12px;color:#c8c8c8}.help-text{color:#c8c8c8;margin:0;font-size:13px}.spacing-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:10px}.spacing-item{display:flex;flex-direction:column;gap:6px;color:#ececec}.radio-row{display:flex;gap:12px;flex-wrap:wrap;color:#ececec}.split-name-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:12px}.column-range-row{display:flex;gap:8px;margin-top:8px}.column-range-item{flex:1}.checkbox-row{display:flex;gap:12px;flex-wrap:wrap;color:#ececec}
