@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-border-style:solid;--tw-outline-style:solid;--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial}}}@layer theme{:root,:host{--font-sans:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";--font-mono:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;--color-red-500:#fb2c36;--spacing:.25rem;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4,0,.2,1);--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono)}@supports (color:lab(0% 0 0)){:root,:host{--color-red-500:lab(55.4814% 75.0732 48.8528)}}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;tab-size:4;line-height:1.5;font-family:var(--default-font-family,ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab, red, red)){::placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){appearance:button}::file-selector-button{appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}}@layer components;@layer utilities{.collapse{visibility:collapse}.visible{visibility:visible}.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.static{position:static}.sticky{position:sticky}.start{inset-inline-start:var(--spacing)}.end{inset-inline-end:var(--spacing)}.col-span-2{grid-column:span 2/span 2}.col-span-3{grid-column:span 3/span 3}.col-span-4{grid-column:span 4/span 4}.col-span-6{grid-column:span 6/span 6}.col-span-12{grid-column:span 12/span 12}.col-span-full{grid-column:1/-1}.container{width:100%}@media (min-width:40rem){.container{max-width:40rem}}@media (min-width:48rem){.container{max-width:48rem}}@media (min-width:64rem){.container{max-width:64rem}}@media (min-width:80rem){.container{max-width:80rem}}@media (min-width:96rem){.container{max-width:96rem}}.block{display:block}.flex{display:flex}.grid{display:grid}.hidden{display:none}.inline{display:inline}.inline-block{display:inline-block}.inline-flex{display:inline-flex}.table{display:table}.w-1{width:calc(var(--spacing)*1)}.transform{transform:var(--tw-rotate-x,)var(--tw-rotate-y,)var(--tw-rotate-z,)var(--tw-skew-x,)var(--tw-skew-y,)}.flex-wrap{flex-wrap:wrap}.gap-1{gap:calc(var(--spacing)*1)}.gap-2{gap:calc(var(--spacing)*2)}.border{border-style:var(--tw-border-style);border-width:1px}.p-2{padding:calc(var(--spacing)*2)}.text-center{text-align:center}.text-right{text-align:right}.break-all{word-break:break-all}.text-red-500{color:var(--color-red-500)}.uppercase{text-transform:uppercase}.antialiased{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.outline{outline-style:var(--tw-outline-style);outline-width:1px}.blur{--tw-blur:blur(8px);filter:var(--tw-blur,)var(--tw-brightness,)var(--tw-contrast,)var(--tw-grayscale,)var(--tw-hue-rotate,)var(--tw-invert,)var(--tw-saturate,)var(--tw-sepia,)var(--tw-drop-shadow,)}.filter{filter:var(--tw-blur,)var(--tw-brightness,)var(--tw-contrast,)var(--tw-grayscale,)var(--tw-hue-rotate,)var(--tw-invert,)var(--tw-saturate,)var(--tw-sepia,)var(--tw-drop-shadow,)}.transition{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,-webkit-backdrop-filter,backdrop-filter,display,content-visibility,overlay,pointer-events;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}}:root{--bg:#f0f2f5;--surface:#fff;--surface-soft:#f8f9fb;--surface2:#f1f5f9;--border:#dde1e8;--border-strong:#b8bec9;--text:#1a1f2e;--text-secondary:#64748b;--muted:#9199aa;--secondary:#5a6072;--accent:#1e4db7;--accent-strong:#163a91;--accent-light:#eef2fb;--danger:#c0392b;--danger-soft:#fef0f0;--success:#1a7f4b;--success-bg:#e6f5ee;--warn:#b45309;--sidebar-w:208px;--header-h:56px}*{box-sizing:border-box}body{background:var(--bg);color:var(--text);font-family:var(--font-noto-sans-jp),"Segoe UI",sans-serif;margin:0;font-size:13px;line-height:1.5}.app-shell{min-height:100vh}.workspace{grid-template-columns:var(--sidebar-w)minmax(0,1fr);min-height:100vh;display:grid}.sidebar{background:var(--surface);border-right:1px solid var(--border);flex-direction:column;height:100vh;display:flex;position:sticky;top:0}.sidebar-logo{border-bottom:1px solid var(--border);flex-shrink:0;padding:10px 14px 8px}.sidebar-logo p{color:var(--muted);margin:0;font-size:11px}.sidebar-logo h2{margin:2px 0 0;font-size:13px;font-weight:700;line-height:1.3}.sidebar-menu{flex:0 auto;gap:3px;min-height:0;padding:6px 10px;display:grid;overflow-y:auto}.sidebar-menu .muted-label{margin:13px 10px 4px;font-size:10.5px;line-height:1.2}.side-item{text-align:left;color:var(--secondary);cursor:pointer;background:0 0;border:none;border-radius:6px;padding:8px 10px;font-size:13px;font-weight:500}.side-item.active{color:var(--accent);background:#e8eef9;font-weight:600}.sidebar-user{border-top:1px solid var(--border);flex-shrink:0;align-items:center;gap:8px;margin-top:auto;padding:10px 12px;display:flex}.avatar{background:var(--accent);color:#fff;border-radius:999px;flex-shrink:0;place-items:center;width:30px;height:30px;font-size:12px;font-weight:600;display:grid}.sidebar-logout-btn{border:1px solid var(--border);color:var(--secondary);cursor:pointer;white-space:nowrap;background:0 0;border-radius:5px;flex-shrink:0;margin-left:auto;padding:3px 8px;font-size:11px}.sidebar-logout-btn:hover{background:var(--danger-soft);border-color:var(--danger);color:var(--danger)}.main{flex-direction:column;min-width:0;display:flex}.main-content{flex:1;min-width:0}.main-header{z-index:20;height:var(--header-h);background:var(--surface);border-bottom:1px solid var(--border);justify-content:space-between;align-items:center;padding:0 24px;display:flex;position:sticky;top:0}.estimate-main-header{gap:12px}.estimate-detail-main-header .header-breadcrumb{color:#9199aa;font-weight:400}.estimate-detail-main-header .header-breadcrumb strong{font-weight:500}.estimate-detail-main-header .header-actions .btn{border-radius:6px;padding:7px 14px;font-size:12px;font-weight:500;line-height:1}.estimate-edit-main-header .header-breadcrumb{color:#9199aa;font-weight:400}.estimate-edit-main-header .header-breadcrumb .separator{color:#aab2c1}.estimate-edit-main-header .header-breadcrumb strong{font-weight:500}.estimate-edit-main-header .header-actions .btn{border-radius:6px;padding:7px 14px;font-size:12px;font-weight:500;line-height:1}.header-breadcrumb{color:#8a93a4;align-items:center;gap:6px;margin:0;font-size:12px;font-weight:500;display:flex}.header-breadcrumb strong{color:var(--text);font-weight:600}.header-breadcrumb .separator{color:#a2aab8}.crumb{font-size:12px;font-weight:500}.date{color:var(--muted);font-size:12px}.header-date{color:var(--muted);margin-left:auto;font-size:12px}.header-actions{gap:8px;display:flex}.code-master-main-header .header-breadcrumb{color:#8f99ab}.code-master-main-header .header-breadcrumb strong{color:#1f2b44;font-weight:700}.code-master-main-header .header-actions .btn{min-height:34px;padding:7px 14px;font-size:12px;font-weight:700}.content{gap:14px;min-width:0;padding:18px 24px;display:grid}.content>*{min-width:0}.content:has(>.top-dashboard){padding-top:10px}.top-dashboard,.estimate-list-page,.invoice-list-page,.toho-gas-payments-page{width:100%;max-width:1320px;margin-inline:auto}.page-title{margin:0;font-size:20px;font-weight:700}.section-sub{color:var(--muted);margin:4px 0 0;font-size:12px}.top-intro{justify-content:space-between;align-items:center;display:flex}.stats-grid{grid-template-columns:repeat(3,1fr);gap:14px;display:grid}.stat-card{background:var(--surface);border:1px solid var(--border);border-radius:10px;padding:16px 20px}.stat-label{color:var(--muted);margin:0;font-size:11px;font-weight:500}.stat-value{margin:6px 0;font-size:20px;font-weight:700;line-height:1.1}.stat-value.accent{color:var(--accent)}.stat-value.success{color:var(--success)}.stat-value.amount{font-variant-numeric:tabular-nums}.stat-value.warn{color:var(--warn)}.stat-sub{color:var(--muted);margin:4px 0 0;font-size:11px}.estimate-list-page .stats-row,.invoice-list-page .stats-row{gap:10px;margin-bottom:12px}.estimate-list-page .stat-card,.invoice-list-page .stat-card{padding:11px 16px}.estimate-list-page .stat-label,.invoice-list-page .stat-label{font-size:10.5px}.estimate-list-page .stat-value,.invoice-list-page .stat-value{margin:3px 0 2px;font-size:18px}.estimate-list-page .stat-sub,.invoice-list-page .stat-sub{margin:0;font-size:10px}.sub-strong{color:#3b4255;font-weight:700}.sub-strong.success{color:var(--ok)}.sub-strong.accent{color:var(--accent)}.sub-danger{color:#cb3a2d}.card{background:var(--surface);border:1px solid var(--border);border-radius:10px;overflow:hidden}.card-head,.card-header{border-bottom:1px solid var(--border);justify-content:space-between;align-items:center;padding:14px 20px;display:flex}.card-head h3,.card-header h3,.alert h3{margin:0;font-size:13px;font-weight:600}.card-title{color:var(--text);margin:0;font-size:13px;font-weight:600}.card-body{padding:12px 20px}.due-head{background:linear-gradient(#fff8ec 0%,#fff 100%)}.alert{border-color:#e57373}.alert h3{background:var(--danger);color:#fff;padding:10px 18px}.alert-head{background:var(--danger);color:#fff;justify-content:space-between;align-items:center;gap:8px;padding:10px 18px;display:flex}.alert-head-left{align-items:center;gap:8px;display:flex}.alert-head .alert-icon{font-size:16px}.alert-head h3{background:0 0;padding:0}.alert-head-right{opacity:.85;margin-left:auto;font-size:11px}.alert thead th{background:#f7dede}.table-wrap{overflow-x:auto}table{border-collapse:collapse;width:100%;font-size:12px}th,td{border-bottom:1px solid var(--border);white-space:nowrap;text-align:left;padding:10px 12px}.text-right{text-align:right}.text-center{text-align:center}thead th{color:#4c5568;padding:11px 14px;font-size:11px;font-weight:700}.text-link{color:var(--accent);text-underline-offset:2px;cursor:pointer;font-weight:700;text-decoration:underline}.link-button{font:inherit;text-align:left;background:0 0;border:none;padding:0}.due-date{color:#c85e19;font-weight:700}.activity-pill{border-radius:999px;justify-content:center;align-items:center;min-width:54px;height:24px;padding:0 10px;font-size:11px;font-weight:800;display:inline-flex}.shortcut-card{border-radius:10px;min-height:94px}.shortcut-title{font-size:18px}.empty-cell{text-align:center;color:var(--muted);padding:18px}.btn{cursor:pointer;border:1px solid #0000;border-radius:6px;padding:7px 12px;font-size:12px;font-weight:700}.btn-sm{padding:4px 10px;font-size:11px}.btn-primary{background:var(--accent);border-color:var(--accent);color:#fff}.btn-primary:hover{background:var(--accent-strong)}.btn-secondary{background:var(--surface);color:#3f4657;border-color:var(--border)}.btn-ghost{color:var(--text-secondary,#64748b);background:0 0;border-color:#0000}.btn-ghost:hover{background:var(--surface2,#f1f5f9)}.muted{color:var(--muted);margin:0;padding:16px;font-size:13px}.master-form-wrap{border-bottom:1px solid var(--border);gap:10px;padding:16px;display:grid}.master-form-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;display:grid}.code-master-page{gap:16px;display:grid}.list-truncation-notice{color:#8a5300;background:#fff8e1;border:1px solid #f0b429;border-left-width:4px;border-radius:6px;margin-bottom:12px;padding:10px 14px;font-size:13px;line-height:1.6}.code-master-filter-buttons{align-items:center;gap:8px;display:flex}.code-master-category-card{margin-bottom:16px}.code-master-category-card:last-child{margin-bottom:0}.code-master-code-cell{font-family:Consolas,Courier New,monospace;font-size:16px;font-weight:800}.code-master-code-yellow{color:#2559c4}.code-master-code-blue{color:#2f64be}.code-master-code-green{color:#2b8b56}.code-master-code-pink{color:#b45a98}.code-master-code-purple{color:#6e4fc4}.code-master-amount{font-variant-numeric:tabular-nums;font-weight:700}.code-master-row-inactive td{color:#9aa7bd}.code-master-table th,.code-master-table td{padding-left:14px;padding-right:14px}.code-master-row-adding td{vertical-align:middle;background:#fffdf4;border-top:1px solid #f0e1ad;border-bottom:1px solid #f0e1ad}.code-master-row-adding .form-field-error{margin-top:4px}.code-master-inline-input{width:100%;min-width:0;height:32px;padding:0 6px;font-size:12px}.code-master-row-actions{flex-wrap:wrap;justify-content:center;align-items:center;gap:6px;display:inline-flex}.inline-check{color:#42516d;justify-content:center;align-items:center;gap:6px;font-size:12px;font-weight:700;display:inline-flex}.inline-check input{width:14px;height:14px}.req{color:var(--danger,#dc2626);margin-left:2px}.code-master-category-header{cursor:pointer;justify-content:space-between;align-items:center;gap:12px;padding:11px 18px;display:flex}.code-master-category-header__title{flex-wrap:wrap;align-items:center;gap:10px;min-width:0;display:flex}.code-master-category-header__title strong{letter-spacing:.02em;font-size:14px}.code-master-category-header__badge{white-space:nowrap;border-radius:999px;padding:2px 9px;font-size:10px;font-weight:700}.code-master-category-header__actions{flex-shrink:0;align-items:center;gap:10px;display:flex}.code-master-category-header__caret{opacity:.8;text-align:center;width:12px;font-size:13px}.code-master-add-worktype-btn{color:#fff;cursor:pointer;white-space:nowrap;background:#ffffff2e;border:1px solid #fff9;border-radius:6px;padding:5px 12px;font-family:inherit;font-size:12px;font-weight:700;line-height:1.2}.code-master-add-worktype-btn:hover{background:#ffffff4d}.code-master-add-worktype-card{background:#fff;border:2px dashed #1e4db7;border-radius:8px;padding:14px 16px}.code-master-add-worktype-title{margin-bottom:12px;font-size:12px;font-weight:700}.code-master-add-worktype-hint{color:var(--text-secondary);margin-bottom:12px;font-size:11px;line-height:1.5}.code-master-worktype-warning{color:#b45309;white-space:nowrap;font-size:11px}.code-master-add-worktype-form{gap:12px;display:grid}.code-master-kubun-tags{border:1px solid var(--border);cursor:text;background:#fff;border-radius:8px;flex-wrap:wrap;align-items:center;gap:6px;min-height:36px;padding:6px 8px;display:flex}.code-master-kubun-tag{color:#1e4db7;background:#e0edff;border-radius:12px;align-items:center;gap:4px;padding:3px 10px;font-size:11px;font-weight:600;display:inline-flex}.code-master-kubun-tag-remove{cursor:pointer;color:inherit;background:0 0;border:none;padding:0 0 0 2px;font-size:12px;line-height:1}.code-master-kubun-tag-move{cursor:pointer;color:inherit;opacity:.65;background:0 0;border:none;padding:0 2px;font-size:13px;line-height:1}.code-master-kubun-tag-move:hover:not(:disabled){opacity:1}.code-master-kubun-tag-move:disabled{opacity:.2;cursor:not-allowed}.code-master-kubun-input{background:0 0;border:none;outline:none;flex:1;min-width:100px;padding:2px 4px;font-family:inherit;font-size:12px}.code-master-kubun-hint{color:var(--text-muted);margin-top:4px;font-size:10px}.code-master-add-worktype-actions{justify-content:flex-end;gap:8px;display:flex}.code-master-worktype-delete-btn{color:#a45050;cursor:pointer;background:0 0;border:1px solid #d2d9e7;border-radius:6px;padding:2px 8px;font-size:13px;line-height:1}.code-master-worktype-delete-btn:hover{color:#c0392b;background:#ffe4e4;border-color:#f08080}.code-master-row-delete-btn{color:#a45050}.code-master-row-delete-btn:hover{color:#c0392b}.code-master-worktype-card{background:#fff;border-radius:8px;overflow:hidden}.code-master-worktype-header{cursor:pointer;background:#ffffffa6;justify-content:space-between;align-items:center;gap:10px;padding:9px 14px;display:flex}.code-master-worktype-header__title{flex-wrap:wrap;align-items:center;gap:8px;min-width:0;display:flex}.code-master-worktype-header__actions{flex-shrink:0;align-items:center;gap:8px;display:flex}.code-master-worktype-header__caret{color:#5c6981;opacity:.7;text-align:center;width:12px;font-size:12px}.code-master-section-area{border-bottom:1px solid var(--border);background:#fafbfd}.code-master-section-area__row{flex-wrap:wrap;align-items:center;gap:10px;padding:8px 14px 0;display:flex}.code-master-section-area__label{color:#4c5568;white-space:nowrap;font-size:11px;font-weight:700}.code-master-section-area__empty{color:#7c879d;padding:2px 0;font-size:11px}.code-master-section-tabs{flex-wrap:wrap;flex:1;gap:4px 6px;min-width:0;display:flex}.code-master-section-tab{border:1px solid var(--border);color:var(--secondary);white-space:nowrap;background:#fff;border-bottom:3px solid #0000;border-radius:6px 6px 0 0;align-items:stretch;font-family:inherit;font-size:11px;font-weight:500;display:inline-flex;overflow:hidden}.code-master-section-tab.is-active{border-color:#0000;font-weight:700}.code-master-section-tab.is-inactive{color:#9aa7bd;background:#f1f3f7}.code-master-section-tab__select{color:inherit;cursor:pointer;font:inherit;background:0 0;border:none;align-items:center;gap:4px;padding:6px 12px;display:inline-flex}.code-master-section-tab__select:disabled{cursor:not-allowed}.code-master-section-tab__inactive-flag{opacity:.75;font-size:10px;font-weight:500}.code-master-section-tab__toggle,.code-master-section-tab__delete{color:inherit;cursor:pointer;font:inherit;opacity:.7;background:0 0;border:none;border-left:1px solid #00000014;justify-content:center;align-items:center;padding:0 8px;display:inline-flex}.code-master-section-tab__toggle{letter-spacing:.04em;font-size:9px;font-weight:800}.code-master-section-tab.is-inactive .code-master-section-tab__toggle{color:#5a6680}.code-master-section-tab__delete{font-size:14px;line-height:1}.code-master-section-tab.is-active .code-master-section-tab__toggle,.code-master-section-tab.is-active .code-master-section-tab__delete{border-left-color:#ffffff59}.code-master-section-tab__toggle:hover,.code-master-section-tab__delete:hover{opacity:1}.code-master-section-tab__delete:hover{color:#c0392b}.code-master-section-add-btn{color:#475569;cursor:pointer;white-space:nowrap;background:0 0;border:1px dashed #94a3b8;border-radius:6px;align-self:center;padding:6px 12px;font-family:inherit;font-size:11px;font-weight:600}.code-master-section-add-btn:hover{color:#1e4db7;background:#fff;border-style:solid;border-color:#1e4db7}.code-master-section-add-form{align-items:center;gap:8px;padding:8px 14px 10px;display:flex}.code-master-section-add-form__input{border:1px solid var(--border);background:#fff;border-radius:6px;flex:1;max-width:280px;height:30px;padding:0 10px;font-family:inherit;font-size:12px}.code-master-code-area{background:#fff}.code-master-code-area--empty{gap:4px;padding:12px 14px 14px;display:grid}.code-master-code-area__empty-title{color:#4c5568;margin:0;font-size:12px;font-weight:700}.code-master-code-area__empty-hint{color:#7c879d;margin:0;font-size:11px}.code-master-code-area__header{background:#fff;justify-content:space-between;align-items:center;gap:10px;padding:9px 14px;display:flex}.code-master-code-area__title{color:#4c5568;font-size:12px}.code-master-code-area__title strong{color:#1f2f4c;font-size:13px}.code-master-code-area__add-btn{color:#fff;white-space:nowrap;border:none;font-weight:600}.hidden-file-input{display:none}.inline-message{margin:0;font-size:12px;font-weight:700}.inline-message.error{color:var(--danger)}.inline-message.success{color:var(--success)}.inline-message-row{border:1px solid var(--border);background:#fafbfc;border-radius:8px;justify-content:flex-start;align-items:center;gap:10px;padding:8px 10px;display:flex}.inline-message-close{color:#6b7386;cursor:pointer;background:0 0;border:none;padding:2px 4px;font-size:12px;font-weight:700;line-height:1.2;transition:all .15s}.inline-message-close:hover{color:#454d61;text-underline-offset:2px;text-decoration:underline}.inline-message-close:focus-visible{outline-offset:2px;outline:2px solid #8ea3d6}.corner-toast{z-index:10100;color:#eef3ff;background:#1f2b45;border:1px solid #2f3d5f;border-radius:10px;align-items:center;gap:10px;min-width:260px;max-width:min(92vw,440px);padding:12px 14px;display:flex;position:fixed;bottom:16px;right:16px;box-shadow:0 8px 24px #0d18306b}.corner-toast.success{border-color:#2d8a63}.corner-toast.error{border-color:#bf3f3f}.corner-toast.warning{border-color:#cc8a1a}.corner-toast-icon{color:#fff;background:#2fbe8a;border-radius:4px;flex-shrink:0;justify-content:center;align-items:center;width:18px;height:18px;font-size:12px;font-weight:800;display:inline-flex}.corner-toast.error .corner-toast-icon{background:#de4f4f}.corner-toast.warning .corner-toast-icon{background:#e3a11e}.corner-toast-message{letter-spacing:.01em;margin:0;font-size:14px;font-weight:700;line-height:1.4}.corner-toast-close{color:#b8c5de;cursor:pointer;background:0 0;border:none;margin-left:auto;font-size:16px;line-height:1}.corner-toast-close:hover{color:#fff}.actions-row{gap:8px;padding:0 16px 16px;display:flex}.pill{border-radius:999px;justify-content:center;align-items:center;min-width:46px;padding:4px 10px;font-size:11px;font-weight:800;display:inline-flex}.pill-warn{color:#c06a00;background:#fff1dc}.pill-danger{color:#cb3a2d;background:#fdeaea}.activity-pill.estimate{color:#2d67c9;background:#e8f1ff}.activity-pill.invoice{color:#ce7b13;background:#fff0de}.activity-pill.payment{color:#1f8a4c;background:#e8f7ec}.activity-pill.order{color:#53607a;background:#eef1f6}.top-grid{grid-template-columns:1fr 1fr;gap:16px;display:grid}.due-title{align-items:center;gap:8px;display:flex}.due-title .due-icon{font-size:15px}.section-title{margin:0;font-size:18px}.estimate-list-head,.estimate-page-head{justify-content:space-between;align-items:center;display:flex}.estimate-breadcrumb{color:#778298;margin:0;font-size:13px}.estimate-kpi-card .stat-value{font-size:28px}.estimate-kpi-card .stat-value.success{color:#11824f}.estimate-kpi-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;display:grid}.estimate-filter-card{gap:10px;padding:14px 16px;display:grid}.estimate-filter-grid{grid-template-columns:1fr 1fr .7fr .7fr .7fr .7fr;align-items:end;gap:10px;display:grid}.estimate-filter-actions{justify-content:flex-end;gap:8px;display:flex}.estimate-format-note{color:#9c6500;background:#fffbe9;border:1px solid #f0d482;border-radius:8px;padding:10px 12px;font-size:12px;font-weight:700}.estimate-list-head .muted-label{color:#8792a8;margin:0 0 0 6px;font-weight:600}.estimate-status{color:#5b6476;background:#edf1f7;border-radius:999px;justify-content:center;align-items:center;padding:3px 10px;font-size:11px;font-weight:800;display:inline-flex}.estimate-status.accepted{color:#1f8a4b;background:#dff5e8}.estimate-status.submitted{color:#c27214;background:#ffedd6}.estimate-status.rejected{color:#c53c3c;background:#fde7e7}.estimate-status.draft{color:#687386;background:#eceff4}.estimate-list-page{gap:14px;display:grid}.estimate-list-page .estimate-kpi-card .stat-value{font-size:22px}.estimate-list-page .estimate-filter-card{padding:14px 20px}.estimate-list-page .estimate-filter-row{flex-wrap:nowrap;align-items:center;gap:10px;display:flex;overflow-x:auto}.estimate-list-page .estimate-filter-item{background:#f8f9fb;border-radius:6px;flex:none;height:32px;padding:0 10px;font-size:12px}.estimate-list-page .estimate-filter-estimate-no{width:170px}.estimate-list-page .estimate-filter-client{width:190px}.estimate-list-page .estimate-filter-subject{width:180px}.estimate-list-page .estimate-filter-assignee,.estimate-list-page .estimate-filter-type{width:150px}.estimate-list-page .estimate-filter-date{width:140px}.estimate-list-page .estimate-filter-status-select{width:150px}.estimate-list-page .estimate-filter-separator{color:#6b7280;flex:none;font-size:12px}.estimate-list-page .estimate-filter-actions{flex-shrink:0;justify-content:flex-end;align-items:center;margin-left:auto}.estimate-list-page .estimate-filter-actions.inline{gap:8px;display:flex}.estimate-list-page .estimate-filter-actions .btn{min-width:74px;height:32px;padding:0 14px;font-size:12px}.estimate-list-page .estimate-status-tabs{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.estimate-list-page .estimate-status-tab{color:#4c5a70;cursor:pointer;background:#fff;border:1px solid #d7dce5;border-radius:999px;padding:6px 12px;font-size:12px;font-weight:600}.estimate-list-page .estimate-status-tab.active{color:#fff;background:#1d4ed8;border-color:#1d4ed8}.estimate-list-page .estimate-format-note{padding:10px 14px;font-size:11px}.estimate-list-page .estimate-list-head{padding:12px 16px}.estimate-list-page .estimate-list-table thead th{font-size:11px;font-weight:600}.estimate-list-page .estimate-list-table td{vertical-align:middle}.estimate-list-page .estimate-list-table th.text-center,.estimate-list-page .estimate-list-table td.text-center{text-align:center;width:182px}.list-fixed{table-layout:fixed;width:100%}.list-fixed th,.list-fixed td{padding:7px 8px;font-size:11.5px}.list-fixed thead th{padding:8px}th.col-wrap,td.col-wrap{white-space:normal;overflow-wrap:anywhere;word-break:break-word}.list-fixed .cell-clamp{-webkit-line-clamp:3;word-break:break-word;overflow-wrap:anywhere;-webkit-box-orient:vertical;line-height:1.35;display:-webkit-box;overflow:hidden}.list-fixed .grp-id-row{flex-wrap:wrap}.list-fixed .inline-actions{white-space:normal;flex-wrap:wrap;justify-content:center;gap:4px;display:flex}.list-fixed col.col-actions{width:240px}@media (max-width:1439px){.list-fixed col.col-actions{width:148px}}@media (max-width:1000px){.estimate-list-page .estimate-filter-row{flex-wrap:wrap}.estimate-list-page .estimate-filter-actions{margin-left:0}}@media (max-width:760px){.estimate-list-page .estimate-status-tabs{gap:6px}.estimate-list-page .estimate-status-tab{padding:6px 10px}}.estimate-copy-note{color:#c19a1b;margin:2px 0 0;font-size:10px}.estimate-copy-row:hover{background:#fff8df}.tag-toho{color:#b45309;background:#fef3e2;border-color:#f6d28a}.tag-direct{color:#1e4db7;background:#e8eef9;border-color:#c0d0f4}.grossmargin{font-weight:700}.grossmargin.good{color:#1a7f4b}.grossmargin.warn{color:#b45309}.table-action-group.centered{justify-content:center}.btn-duplicate{color:#856404;background:#fff3cd;border-color:#ffc107;font-weight:700}.btn-duplicate:hover{background:#ffeeb8}.estimate-edit-basic-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:10px 14px;padding:14px 16px 18px;display:grid}.estimate-edit-wide{grid-column:span 2}.estimate-edit-full{grid-column:1/-1}.estimate-edit-info-box{border:1px solid var(--border);background:#f8fafc;border-radius:10px;min-height:74px;padding:10px 12px}.estimate-edit-info-lines{gap:4px;display:grid}.muted-line{color:#64748b;margin:0;font-size:12px;line-height:1.45}.estimate-add-work-card{padding:14px 16px}.estimate-work-type-grid{grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;margin-top:8px;display:grid}.estimate-edit-work-card{border-color:#f0d482}.estimate-assist-card{overflow:hidden}.estimate-assist-head{color:#fff;justify-content:space-between;align-items:center;padding:12px 14px;display:flex}.assist-head-actions{align-items:center;gap:12px;display:flex}.assist-head-note{opacity:.95;font-size:12px;font-weight:700}.estimate-assist-head>div{align-items:center;gap:10px;display:flex}.estimate-assist-head strong{font-size:20px;line-height:1}.estimate-assist-head span{font-size:12px}.estimate-assist-search{border-top:1px solid var(--border);align-items:center;gap:8px;padding:8px 12px;display:flex}.estimate-assist-search .form-input{max-width:340px}.estimate-assist-tabs{border-top:1px solid var(--border);border-bottom:1px solid var(--border);color:#3458b8;gap:10px;padding:8px 12px;font-size:13px;font-weight:700;display:flex}.assist-tab-btn{color:#63708e;cursor:pointer;background:0 0;border:none;border-bottom:2px solid #0000;padding:7px 4px 8px;font-size:13px;font-weight:700;line-height:1}.assist-tab-btn.active{color:#1e4db7;border-bottom-color:#1e4db7}.assist-qty{text-align:center;max-width:66px}.num-input{text-align:right;appearance:textfield;max-width:88px}.num-input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}.num-input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}input[type=number]{appearance:textfield}input[type=number]::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}input[type=number]::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}.muted-label{color:#98a0b2;margin:16px 12px 6px;font-size:11px;font-weight:400}.estimate-assist-foot{border-top:1px solid var(--border);justify-content:space-between;align-items:center;padding:10px 12px;font-size:16px;font-weight:700;display:flex}.assist-blue{border-color:#47a2d7}.assist-blue .estimate-assist-head{background:#3e9acc}.assist-green{border-color:#4db172}.assist-green .estimate-assist-head{background:#4faf72}.assist-pink{border-color:#ce5fa5}.assist-pink .estimate-assist-head{background:#c85d9d}.assist-purple{border-color:#9676de}.assist-purple .estimate-assist-head{background:#7b5ac9}.estimate-edit-work-head{background:#fff9e8;border-bottom:1px solid #f1e3ba;justify-content:space-between;align-items:center;padding:10px 12px;display:flex}.estimate-edit-work-head>div{align-items:center;gap:8px;display:flex}.estimate-edit-badge{font-size:14px}.estimate-edit-work-meta{grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;padding:10px 12px;display:grid}.order-info-card{background:#f5f8ff;border:1px solid #b8caf7;border-radius:8px;grid-template-columns:1fr 1fr 1fr;gap:10px;margin:0 12px 12px;padding:10px;display:grid}.estimate-detail-table-wrap{border:1px solid var(--border);border-radius:8px;margin:0 12px 12px;overflow:hidden}.estimate-detail-table-head{border-bottom:1px solid var(--border);background:#fff;justify-content:space-between;align-items:center;padding:9px 10px;display:flex}.estimate-detail-table-head h4{color:#9c2f65;margin:0;font-size:14px}.estimate-detail-table-head>div{gap:8px;display:flex}.estimate-edit-subtotal{color:#28344b;background:#f9f0fb;border-top:1px solid #ebd8ef;justify-content:flex-end;gap:18px;padding:9px 10px;font-size:13px;font-weight:700;display:flex}.cost-detail-card{border:1px solid var(--border);border-radius:8px;margin:0 12px 12px;overflow:hidden}.cost-detail-head{border-bottom:1px solid var(--border);background:#f8fbff;justify-content:space-between;align-items:center;padding:9px 10px;display:flex}.cost-detail-head h4{color:#48618e;margin:0;font-size:13px}.estimate-add-free{justify-self:center;min-width:240px}.estimate-total-grid{grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;padding:14px;display:grid}.estimate-total-item{border:1px solid var(--border);background:#f7f9fc;border-radius:8px;padding:10px 12px}.estimate-total-item strong{color:#1d2637;font-size:22px;font-weight:800}.estimate-total-item strong.accent{color:#2d5ec7}.estimate-total-item.success{background:#eaf7f1}.estimate-total-item.success strong{color:#1f8a4b}.estimate-edit-page{gap:16px;display:grid}.estimate-edit-page .card-head,.estimate-edit-page .card-header{padding:10px 20px}.estimate-edit-page .card-head h3,.estimate-edit-page .card-header h3{color:#1a1f2e;font-size:13px;font-weight:600}.estimate-edit-page .estimate-edit-basic-grid,.estimate-edit-page .form-row.form-row-4{gap:14px 16px;padding:20px}.estimate-edit-page .card-body{padding:10px 20px}.estimate-edit-page .card>.card-body>.form-row{margin-bottom:10px!important}.estimate-edit-page .note-box{padding:6px 14px}.estimate-edit-page .estimate-add-work-card{padding:16px}.estimate-edit-page .estimate-add-work-card>.field-label,.estimate-edit-page .estimate-add-work-card>.form-label{color:var(--muted);letter-spacing:.06em;text-transform:uppercase;font-size:11px;font-weight:700}.estimate-edit-page .estimate-work-type-grid{margin-top:10px}.estimate-work-sections-tabs{flex-wrap:wrap;gap:8px;margin:-6px 0 2px;display:flex}.estimate-work-section-tab{color:#4c5568;cursor:pointer;background:#fff;border:1px solid #ccd3e1;border-radius:999px;padding:6px 12px;font-size:12px;font-weight:700}.estimate-work-section-tab.active{color:#25324d;background:#eef2f8;border-color:#5f6f92}.estimate-edit-page .estimate-edit-work-card{border:1px solid #f2dca0;border-left:4px solid #f6c90e}.estimate-edit-page .estimate-edit-work-card-free{background:#fff;border:1px solid #d9dee8}.estimate-edit-page .estimate-edit-work-card-free .estimate-edit-work-head{background:#f6f7f9;border-bottom:1px dashed #d3d9e4}.estimate-edit-page .estimate-edit-work-card-yellow{background:#fffdf3;border-color:#f0d482 #f0d482 #f0d482 #f6c90e}.estimate-edit-page .estimate-edit-work-card-yellow .estimate-edit-work-head{background:#fff0bf;border-bottom-color:#ebd88b}.estimate-edit-page .estimate-edit-work-card-blue{border-color:#b8cef8 #b8cef8 #b8cef8 #4f84e6}.estimate-edit-page .estimate-edit-work-card-blue .estimate-edit-work-head{background:#eef4ff;border-bottom-color:#cdddfd}.estimate-edit-page .estimate-edit-work-card-green{border-color:#b9e6c9 #b9e6c9 #b9e6c9 #4aa66a}.estimate-edit-page .estimate-edit-work-card-green .estimate-edit-work-head{background:#eefaf2;border-bottom-color:#caecd5}.estimate-edit-page .estimate-edit-work-card-pink{border-color:#efc6df #efc6df #efc6df #c86aa6}.estimate-edit-page .estimate-edit-work-card-pink .estimate-edit-work-head{background:#fdf1f8;border-bottom-color:#f0d2e4}.estimate-edit-page .estimate-edit-work-card-purple{border-color:#d9cdf2 #d9cdf2 #d9cdf2 #8a6acb}.estimate-edit-page .estimate-edit-work-card-purple .estimate-edit-work-head{background:#f6f2ff;border-bottom-color:#e0d7f5}.estimate-edit-page .estimate-edit-work-head{background:#fff8e1;border-bottom:1px solid #f1e3ba;padding:10px 16px}.estimate-edit-page .estimate-edit-work-meta{gap:12px;padding:12px 16px}.estimate-edit-page .estimate-edit-work-meta>label{align-content:start;gap:6px;width:100%;display:grid}.estimate-edit-page .estimate-edit-work-meta .num-input{max-width:100%}.estimate-edit-page .field-label,.estimate-edit-page .form-label{color:#5a6072;font-size:11px;font-weight:600}.estimate-edit-page .form-input,.estimate-edit-page select.form-input,.estimate-edit-page .form-select,.estimate-edit-page .form-textarea{color:#1a1f2e;border-color:#cfd5df}.estimate-edit-page .order-info-card{margin:0 16px 14px;padding:10px 14px}.estimate-edit-page .order-info-card>label{align-content:start;gap:6px;width:100%;display:grid}.estimate-edit-page .estimate-detail-table-wrap{margin:0 16px 14px}.estimate-edit-page .estimate-detail-table-head h4{color:#7a5800}.estimate-edit-page .estimate-detail-table-wrap thead th{color:#5a6072;background:#f8f9fb;font-size:11px;font-weight:600}.estimate-edit-page .estimate-detail-table-wrap tbody td{color:#1a1f2e;border-bottom-color:#dde1e8}.estimate-edit-page .estimate-detail-table-wrap tbody td:first-child{color:#1e4db7;font-weight:700}.estimate-edit-page .estimate-edit-subtotal{color:#374151;background:#fff8e1;border-top:1px solid #f1e3ba}.estimate-edit-page .estimate-edit-subtotal span:last-child{color:#1a7f4b}.estimate-edit-page .pill-warn{color:#7a5800;background:#f6c90e;min-width:auto;padding:2px 9px;font-size:10px;font-weight:700}.estimate-edit-page .pill-neutral{color:#fff;background:#6f7684;min-width:auto;padding:2px 9px;font-size:10px;font-weight:700}.estimate-edit-page .order-no-label{align-items:center;gap:4px;display:inline-flex}.estimate-edit-page .order-no-icon{font-size:11px;line-height:1}.estimate-edit-page .order-no-note{color:#8c93a4;font-size:10px;font-weight:500}.estimate-edit-page .btn-code-add{color:#fff;background:#6f7684;border-color:#6f7684}.estimate-edit-page .btn-code-add:hover{background:#5d6472}.estimate-edit-page .estimate-edit-work-card-free-mode .estimate-edit-work-meta,.estimate-edit-page .estimate-edit-work-card-free-mode .order-info-card,.estimate-edit-page .estimate-edit-work-card-free-mode .estimate-detail-table-wrap,.estimate-edit-page .estimate-edit-work-card-free-mode .cost-detail-card{background:#fff}.estimate-edit-page .estimate-edit-work-card-free-mode .estimate-edit-subtotal{background:#f7f1dc;border-top:1px solid #e6dcc0}.estimate-edit-page .estimate-edit-work-card-free-mode .estimate-edit-subtotal span:last-child{color:#0f8a4d}.estimate-edit-page .estimate-edit-work-card-free-mode .cost-detail-card .empty-cell{background:#fff;height:44px}.estimate-edit-page .pill-visible{color:#1a7f4b;background:#e6f5ee;min-width:44px;padding:2px 8px;font-size:10px;font-weight:700}.pill-muted{color:#475569;background:#f1f5f9}.estimate-edit-page .estimate-add-free{justify-content:center;width:100%;margin-bottom:20px;padding:12px}.estimate-edit-page .estimate-total-grid{gap:14px;padding:16px}.estimate-edit-page .estimate-total-item{padding:14px}.estimate-edit-page .estimate-total-item strong{font-size:16px}.estimate-edit-page .estimate-total-item.success strong{font-size:18px}.estimate-edit-page .estimate-assist-head strong{font-size:14px;line-height:1.2}.estimate-edit-page .estimate-assist-search{background:#f8f9fb;padding:8px 14px}.estimate-edit-page .estimate-assist-search span{color:#5a6072;white-space:nowrap;font-size:12px}.estimate-edit-page .assist-force-yellow{border-color:#d8c27a!important}.estimate-edit-page .assist-force-yellow .estimate-assist-head{background:#cfad50!important}.estimate-edit-page .estimate-assist-foot{color:#5a6072;background:#f8f9fb;padding:12px 20px;font-size:12px;font-weight:500}.estimate-edit-page .cost-detail-card{background:#fff;border:1px solid #b8bec9;border-radius:8px;margin:0 16px 14px;overflow:hidden}.estimate-edit-page .cost-detail-head{background:#f8f9fb;border-bottom:1px solid #dde1e8;padding:8px 14px}.estimate-edit-page .cost-detail-head h4{color:#5a6072;align-items:center;gap:6px;font-size:12px;font-weight:600;display:flex}.estimate-edit-page .cost-detail-caption{color:#9199aa;font-size:10px;font-weight:400}.estimate-edit-page .cost-detail-card thead th{color:#5a6072;background:#f8f9fb;font-size:11px;font-weight:600}.estimate-edit-page .cost-detail-card td{padding:8px 10px}.estimate-edit-page .cost-detail-card .form-input{height:28px;font-size:12px}.estimate-edit-page .cost-detail-card .cost-optional{color:#9199aa;font-size:10px;font-weight:400}.estimate-edit-page .cost-order-note{color:#9199aa;font-size:10px;font-weight:600}.estimate-edit-page .cost-order-note.linked{color:#1e4db7}.table-action-group{gap:6px;display:flex}.table-action-group .btn{padding:5px 10px;font-size:11px}.shortcut-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;padding:14px;display:grid}.shortcut-card{border:1px solid var(--border);color:#4a5366;cursor:pointer;background:linear-gradient(#fff 0%,#fbfcfe 100%);border-radius:10px;place-items:center;gap:6px;min-height:96px;display:grid}.shortcut-card:hover{background:#f8fbff;border-color:#bfd0f6}.shortcut-icon{font-size:23px}.shortcut-title{font-size:14px;font-weight:700}.month-chip{border:1px solid var(--border);color:#3f4657;border-radius:8px;place-items:center;min-width:96px;height:28px;font-size:12px;display:grid}.top-month-select{border:1px solid var(--border);color:#3f4657;background:var(--surface-soft);border-radius:6px;min-width:120px;height:28px;padding:0 8px;font-size:12px}.sales-board{grid-template-columns:1fr 1fr;gap:0;padding:16px;display:grid}.sales-main,.sales-side{border:1px solid var(--border);padding:14px 18px}.sales-main{border-right:none;border-radius:10px 0 0 10px}.sales-side{border-radius:0 10px 10px 0}.sales-label{color:var(--muted);margin:0;font-size:12px;font-weight:700}.sales-value{color:#2855c4;margin:14px 0;font-size:18px;font-weight:800}.sales-metric{color:#5a6170;margin:8px 0 0;font-size:13px}.sales-metric strong{color:#1e8b52}.sales-diff{margin:14px 0 8px;font-size:14px;font-weight:800}.sales-diff.up{color:#108050}.sales-diff.down{color:#c13333}.composition-wrap{margin-top:20px}.composition-labels,.composition-values{color:var(--muted);justify-content:space-between;font-size:12px;display:flex}.composition-bar{background:#e7ebf2;border-radius:999px;height:10px;margin:8px 0;overflow:hidden}.composition-primary{background:linear-gradient(90deg,#2d56be 0%,#416ddb 100%);border-radius:999px;height:100%}.top-dashboard{gap:4px;display:grid}.top-dashboard>.card+.card{margin-top:8px}.top-dashboard>.card.alert+.card{margin-top:12px}.top-dashboard .main-header{margin-bottom:2px}.header-date{color:var(--muted);white-space:nowrap;font-size:12px}.top-dashboard .page-title{font-size:19px;line-height:1.25}.top-dashboard .section-sub{margin-top:3px;font-size:11px;line-height:1.45}.top-dashboard .stats-row{grid-template-columns:repeat(3,1fr);gap:10px}.top-dashboard .stat-card{padding:11px 16px}.top-dashboard .stat-label{font-size:10px;line-height:1.4}.top-dashboard .stat-value{margin:4px 0;font-size:20px;line-height:1.15}.top-dashboard .stat-sub{margin-top:3px;font-size:10px;line-height:1.45}.top-dashboard .card-head,.top-dashboard .alert-head{padding:8px 14px}.top-dashboard .card-head h3,.top-dashboard .alert-head h3{font-size:12px;line-height:1.3}.top-dashboard table{font-size:11px}.top-dashboard th,.top-dashboard td{padding:8px 10px;line-height:1.35}.top-dashboard thead th{padding:9px 10px;font-size:10px}.top-dashboard .btn-sm{padding:3px 8px;font-size:10px}.top-dashboard .top-grid{gap:12px}.top-dashboard .shortcut-grid{gap:8px;padding:12px}.top-dashboard .shortcut-card{gap:4px;min-height:84px}.top-dashboard .shortcut-icon{font-size:21px}.top-dashboard .shortcut-title{font-size:13px;line-height:1.3}.top-dashboard .top-month-select{min-width:112px;height:26px;font-size:11px}.top-dashboard .sales-board{padding:12px}.top-dashboard .sales-main,.top-dashboard .sales-side{padding:11px 13px}.top-dashboard .sales-label{font-size:11px}.top-dashboard .sales-value{margin:10px 0;font-size:17px;line-height:1.2}.top-dashboard .sales-metric{margin-top:6px;font-size:12px;line-height:1.35}.top-dashboard .sales-diff{margin:10px 0 6px;font-size:13px}.top-dashboard .composition-wrap{margin-top:14px}.top-dashboard .composition-labels,.top-dashboard .composition-values{font-size:11px}.top-dashboard .composition-bar{height:8px;margin:6px 0}.top-dashboard .activity-pill{min-width:50px;height:21px;padding:0 8px;font-size:10px}.top-dashboard .empty-cell{padding:14px;font-size:11px}.estimate-detail-grid{grid-template-columns:1fr 330px;gap:16px;display:grid}.estimate-main-col,.estimate-side-col{gap:16px;display:grid}.basic-info-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;padding:16px 18px;display:grid}.field-label{color:var(--muted);letter-spacing:.01em;margin:0 0 5px;font-size:11px;font-weight:700}.field-label.required-label{color:#cc4c2f}.form-field-error{color:#c7372f;margin:4px 0 0;font-size:11px;font-weight:700;line-height:1.35}.field-value{margin:0;font-size:14px;font-weight:700}.field-value.primary{color:var(--accent);letter-spacing:.02em;font-size:20px;font-weight:800}.basic-info-grid .field-value{letter-spacing:.01em;font-size:16px;font-weight:700}.basic-info-grid .field-value.primary{font-size:22px;line-height:1.12}.wide-field{grid-column:span 2}.dark-head{color:#fff;background:#0f1e3b}.work-head{color:#fff;background:#19284b;padding:12px 16px;font-size:15px;font-weight:700}.work-subhead{color:#fff;background:#2f61d8;justify-content:space-between;padding:10px 16px;font-size:13px;font-weight:700;display:flex}.estimate-main-col table{font-size:13px}.estimate-main-col table thead th{font-size:12px}.pill-visible{color:#177845;background:#d8f0e3}.pill-hidden{color:#667085;background:#eceff3}.work-foot{color:#2f3b50;justify-content:flex-end;gap:26px;padding:12px 16px;font-size:14px;font-weight:700;display:flex}.summary-block{gap:4px;padding:14px 16px 18px;display:grid}.summary-row{border-bottom:1px solid var(--border);justify-content:space-between;align-items:center;padding:12px 8px;font-size:14px;display:flex}.summary-row.big strong{color:#2855c4;font-size:18px;line-height:1}.summary-row.success strong{color:#17854c}.doc-actions{gap:8px;padding:12px;display:grid}.estimate-detail-page{gap:12px;display:grid}.estimate-detail-page .estimate-detail-grid{grid-template-columns:minmax(0,1fr) 360px;align-items:start;gap:14px}.estimate-detail-page .estimate-main-col{align-content:start;align-items:start;gap:12px;min-width:0}.estimate-detail-page .kooji-table{margin-bottom:12px}.estimate-detail-page .kooji-header{padding:8px 14px}.estimate-detail-page .uciwake-header{padding:6px 12px 6px 24px}.estimate-detail-page .meisai-row{padding:6px 12px 6px 44px}.estimate-detail-page .kooji-footer{padding:8px 14px}.estimate-detail-page .card-head,.estimate-detail-page .card-header{padding:14px 20px}.estimate-detail-page .card-head h3,.estimate-detail-page .card-header h3{color:#1a1f2e;font-size:13px;font-weight:600}.estimate-detail-page .basic-info-grid{gap:14px 16px;padding:20px}.estimate-detail-page .field-label,.estimate-detail-page .form-label{color:#5a6072;margin-bottom:4px;font-size:11px;font-weight:600}.estimate-detail-page .field-value{color:#1a1f2e;font-size:13px;font-weight:400;line-height:1.5}.estimate-detail-page .basic-info-grid .field-value.primary{color:#1e4db7;font-size:15px;font-weight:700}.estimate-detail-page .card-body>.form-row.form-row-4>.form-group{min-width:0}.estimate-detail-page .card-body>.form-row.form-row-4>.form-group>div{overflow-wrap:anywhere;word-break:break-word;min-width:0}.estimate-work-title{color:#1a1f2e;margin:0 0 10px;font-size:13px;font-weight:700}.estimate-work-card{overflow:hidden}.estimate-work-section+.estimate-work-section{border-top:1px solid var(--border)}.estimate-detail-page .work-head{color:#fff;background:#1a1f2e;justify-content:space-between;align-items:center;gap:8px;padding:10px 16px;font-size:12px;font-weight:600;display:flex}.estimate-detail-page .work-head-meta{flex-shrink:0;align-items:center;gap:8px;display:inline-flex}.estimate-detail-page .work-head-rebate{color:#aab;font-size:12px;font-weight:500}.estimate-detail-page .work-subhead{color:#fff;background:#1e4db7;justify-content:space-between;padding:8px 14px 8px 26px;font-size:12px;font-weight:500;display:flex}.estimate-detail-page .work-subhead.alt{background:#2563eb}.estimate-work-table{font-size:12px}.estimate-work-table thead th{color:#5a6072;border-bottom:1px solid var(--border);background:#f8f9fb;padding:8px 14px;font-size:11px;font-weight:600}.estimate-work-table td{color:#1a1f2e;padding:8px 14px;font-size:12px}.estimate-detail-page .estimate-work-table .pill{border-radius:20px;min-width:auto;padding:2px 8px;font-size:10px;font-weight:500}.estimate-detail-page .estimate-work-table .pill-visible{color:#1a7f4b;background:#e6f5ee}.estimate-detail-page .estimate-work-table .pill-hidden{color:#5a6072;background:#f0f2f5}.estimate-detail-page .work-foot{border-top:1px solid var(--border);color:#1a1f2e;background:#f8f9fb;gap:24px;padding:10px 16px;font-size:12px;font-weight:700}.estimate-detail-page .summary-block{gap:0;padding:20px}.estimate-detail-page .summary-row{color:#5a6072;border-bottom:none;padding:6px 0;font-size:12px}.estimate-detail-page .summary-row strong{color:#1a1f2e;font-size:12px;font-weight:500}.estimate-detail-page .estimate-status{border-radius:20px;padding:2px 8px;font-size:11px;font-weight:500}.estimate-detail-page .summary-row.big{border-top:2px solid var(--border);margin-top:6px;padding-top:10px;padding-bottom:6px}.estimate-detail-page .summary-row.big strong{color:#2855c4;font-size:16px;font-weight:700}.estimate-detail-page .summary-row.success strong{color:#17854c;font-size:16px;font-weight:700}.estimate-detail-page .summary-row:last-child strong{color:#b45309}.estimate-detail-page .doc-actions{gap:8px;padding:20px}.estimate-detail-page .doc-actions .btn{justify-content:center;height:36px;font-size:12px;font-weight:500}.estimate-detail-page .related-partner-orders{gap:10px;padding:20px;display:grid}.estimate-detail-page .related-partner-order-empty{gap:10px;display:grid}.estimate-detail-page .related-partner-order-item{border:1px solid var(--border);background:#fbfcfe;border-radius:10px;gap:8px;padding:12px;display:grid}.estimate-detail-page .related-partner-order-main,.estimate-detail-page .related-partner-order-meta{justify-content:space-between;align-items:center;gap:12px;display:flex}.estimate-detail-page .related-partner-order-main strong{color:#1a1f2e;font-size:13px}.estimate-detail-page .related-partner-order-main span,.estimate-detail-page .related-partner-order-meta span{color:#5a6072;font-size:12px}.estimate-detail-page .related-partner-order-meta{flex-wrap:wrap}.estimate-detail-page .related-partner-order-actions{justify-content:flex-end;gap:8px}.estimate-detail-page .related-partner-order-actions .btn{min-width:68px}.invoice-detail-page .header-actions{align-items:center}.invoice-detail-page .invoice-payment-form{padding-top:16px;padding-bottom:16px}.invoice-detail-page .invoice-payment-form label{gap:6px;display:grid}.invoice-detail-page .invoice-payment-form .form-input{height:36px}.invoice-detail-page .invoice-payment-form-actions{padding-top:8px}.invoice-detail-page .invoice-payment-latest{padding-top:4px;font-size:11px}.toho-payment-form{background:#f8fafc;border:1px solid #d1d5db;border-radius:10px;padding:14px 16px}.toho-payment-form label>span{color:#374151;font-weight:600}.toho-payment-form .req{color:#dc2626;font-weight:700}.toho-payment-form .form-input,.toho-payment-form .form-select{background:#fff;border:1px solid #d1d5db;height:36px}.toho-payment-form .form-input:focus,.toho-payment-form .form-select:focus{border-color:var(--accent,#1e4db7);outline:none;box-shadow:0 0 0 3px #1e4db726}.toho-modal-body{padding-right:2px}.toho-modal-body th,.toho-modal-body td{padding:7px 10px}.toho-modal-body .empty-cell{padding:10px}.invoice-detail-page .estimate-main-col{align-content:start;min-width:0}.invoice-detail-page .kooji-table.invoice-cols .meisai-header-row,.invoice-detail-page .kooji-table.invoice-cols .meisai-row{grid-template-columns:90px minmax(0,2fr) 60px minmax(0,1fr) minmax(0,1fr) minmax(0,1fr) 70px;min-width:0}.invoice-detail-page .kooji-table.invoice-cols .meisai-header-row>*,.invoice-detail-page .kooji-table.invoice-cols .meisai-row>*{overflow-wrap:anywhere;min-width:0}.login-wrap{background:linear-gradient(150deg,#101a2b 0%,#173052 45%,#0d1a30 100%);place-items:center;min-height:100vh;padding-top:44px;display:grid}.login-box{background:var(--surface);border-radius:14px;width:min(420px,100% - 32px);padding:44px 48px;box-shadow:0 24px 80px #0000004d}.login-company{color:var(--muted);margin:0;font-size:12px}.login-title{margin:4px 0 0;font-size:20px;font-weight:800}.accent-bar{background:var(--accent);border-radius:2px;width:40px;height:3px;margin:8px auto 0}.form-label{color:#4e5769;font-size:12px;font-weight:700}.form-input,.form-select{border:1px solid var(--border);background:var(--surface);border-radius:7px;width:100%;height:34px;padding:0 11px;font-size:13px;line-height:1.2}.form-textarea{border:1px solid var(--border);background:var(--surface);resize:vertical;border-radius:7px;width:100%;padding:5px 11px;font-family:inherit;font-size:13px;line-height:1.4}.form-input[readonly],.form-input.disabled,.form-textarea[readonly],.form-textarea.disabled{cursor:default;background:#f3f4f6}.form-input:disabled,.form-select:disabled,.form-select.disabled,.form-textarea:disabled{color:var(--text-secondary);cursor:not-allowed;background:#f3f4f6}.form-label-note{font-size:inherit;font-weight:400;line-height:inherit;color:var(--text-muted,#8a91a0)}.contract-no-controls{gap:6px;min-width:0;display:flex}.contract-no-prefix{flex:0 0 64px;width:64px;font-weight:700}.contract-no-value{flex:1;min-width:0;font-family:monospace;font-weight:700}.contract-no-value.is-unissued{color:var(--text-muted,#8a91a0)}.form-group{gap:3px;margin-bottom:8px;display:grid}.form-row.form-row-controls{align-items:start}.form-group-last{margin-bottom:24px}.wide{width:100%;height:42px;margin-top:8px}@media (max-width:1000px){.stats-grid{grid-template-columns:repeat(2,1fr)}.top-grid,.sales-board,.estimate-detail-grid,.basic-info-grid,.estimate-kpi-grid{grid-template-columns:1fr}.estimate-filter-grid,.estimate-edit-basic-grid,.estimate-edit-work-meta,.order-info-card,.estimate-work-type-grid,.estimate-total-grid{grid-template-columns:1fr 1fr}.estimate-assist-head,.estimate-assist-foot,.estimate-assist-search{flex-direction:column;align-items:flex-start}.estimate-filter-actions{grid-column:span 2}.sales-main{border-right:1px solid var(--border);border-radius:10px 10px 0 0}.sales-side{border-top:none;border-radius:0 0 10px 10px}.work-foot{flex-wrap:wrap;justify-content:flex-start;gap:10px 20px}}@media (max-width:760px){.workspace{grid-template-columns:1fr}.sidebar{height:auto;position:static}.main-header{top:0}.stats-grid,.shortcut-grid,.estimate-edit-basic-grid,.estimate-edit-work-meta,.order-info-card,.estimate-work-type-grid,.estimate-total-grid{grid-template-columns:1fr}.estimate-edit-wide{grid-column:span 1}.estimate-edit-work-head,.estimate-detail-table-head,.cost-detail-head,.estimate-edit-subtotal{flex-direction:column;align-items:flex-start;gap:8px}.estimate-filter-grid{grid-template-columns:1fr}.estimate-filter-actions{grid-column:span 1}.estimate-list-head{flex-direction:column;align-items:flex-start;gap:8px}.master-form-grid{grid-template-columns:1fr}}.estimate-edit-bottom-actions{justify-content:flex-end;margin-top:16px;padding-bottom:8px;display:flex}.estimate-list-page .estimate-list-table td.text-center{text-align:center}.invoice-list-page{gap:14px;display:grid}.invoice-list-page .estimate-kpi-card .stat-value{font-size:22px}.invoice-list-page .invoice-filter-row{flex-wrap:nowrap}.invoice-list-page .invoice-filter-invoice-no{width:170px}.invoice-list-page .estimate-list-head .header-actions{gap:8px}.invoice-payment-status{border-radius:999px;justify-content:center;align-items:center;padding:3px 10px;font-size:11px;font-weight:800;display:inline-flex}.invoice-payment-status.paid{color:#1f8a4b;background:#dff5e8}.invoice-payment-status.partial{color:#c27214;background:#ffedd6}.invoice-payment-status.unpaid{color:#687386;background:#eceff4}.invoice-list-page .invoice-list-table th.text-center,.invoice-list-page .invoice-list-table td.text-center{text-align:center;width:182px}@media (max-width:1000px){.invoice-list-page .invoice-filter-row{flex-wrap:wrap}.invoice-list-page .estimate-filter-actions.inline{margin-left:0}}.estimate-duplicate-modal-overlay{z-index:10000;background:#00000073;justify-content:center;align-items:center;display:flex;position:fixed;inset:0}.estimate-duplicate-modal-card{background:#fff;border-radius:14px;width:min(480px,100vw - 32px);padding:32px;box-shadow:0 20px 60px #00000040}.estimate-duplicate-modal-title{margin-bottom:6px;font-size:16px;font-weight:700}.estimate-duplicate-modal-source{color:var(--text-secondary,#4b5563);margin-bottom:20px;font-size:12px}.estimate-duplicate-modal-field{margin-bottom:16px}.estimate-duplicate-modal-newno-row{align-items:center;gap:8px;display:flex}.estimate-duplicate-modal-newno-input{flex:1;font-family:monospace;font-size:14px;font-weight:700}.estimate-duplicate-modal-hint{color:var(--text-muted,#687386);white-space:nowrap;font-size:11px}.estimate-duplicate-modal-note{color:var(--text-muted,#687386);margin-top:4px;font-size:11px}.estimate-duplicate-modal-options{flex-direction:column;gap:8px;margin-top:6px;display:flex}.estimate-duplicate-modal-option{cursor:pointer;align-items:center;gap:8px;font-size:13px;display:flex}.estimate-duplicate-modal-option input[type=checkbox]{width:15px;height:15px}.existing-invoice-choice-list{flex-direction:column;gap:4px;max-height:220px;margin-top:6px;display:flex;overflow-y:auto}.existing-invoice-choice-row{border:1px solid var(--border,#e2e6ee);cursor:pointer;border-radius:7px;grid-template-columns:auto auto auto auto minmax(0,1fr);align-items:center;gap:8px;padding:7px 9px;font-size:12px;display:grid}.existing-invoice-choice-row:has(input:checked){background:#f2f7ff;border-color:#2563eb}.existing-invoice-choice-no{font-family:monospace;font-weight:700}.existing-invoice-choice-date{color:var(--text-muted,#687386)}.existing-invoice-choice-title{color:var(--text-secondary,#4b5563);text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.estimate-duplicate-modal-actions{justify-content:flex-end;gap:10px;margin-top:8px;display:flex}.estimate-edit-wf-span2{grid-column:span 2}.estimate-add-work-panel{background:var(--surface,#f8fafc);border:1px solid var(--border,#e2e8f0);border-radius:10px;padding:14px 16px}.estimate-add-work-label{color:var(--text-muted,#94a3b8);letter-spacing:.06em;text-transform:uppercase;margin:0 0 10px;font-size:11px;font-weight:700}.estimate-cat-chips{flex-wrap:wrap;gap:6px;margin-bottom:10px;display:flex}.estimate-cat-chip{border:1px solid var(--border,#e2e8f0);color:var(--text-secondary,#64748b);cursor:pointer;white-space:nowrap;background:0 0;border-radius:12px;padding:4px 12px;font-family:inherit;font-size:11px;font-weight:500;transition:all .12s}.estimate-cat-chip.active{font-weight:700}.estimate-work-type-row{flex-wrap:wrap;align-items:stretch;gap:8px;display:flex}.work-type-btn-separator{background:var(--border,#e2e8f0);align-self:stretch;width:1px;margin:0 2px}.work-type-btn-icon{font-size:18px;display:block}.work-type-btn-free{color:#475569;cursor:pointer;background:#f8fafc;border:1.5px solid #cbd5e1;border-radius:10px;flex-direction:column;align-items:center;gap:2px;min-width:0;height:auto;padding:7px 14px;font-family:inherit;display:flex}.work-type-btn-free strong{font-size:12px;font-weight:600}.work-type-btn-free small{color:#94a3b8;font-size:10px}.estimate-work-block-footer{border-top:1px solid var(--border,#e2e8f0);justify-content:flex-end;gap:24px;margin-top:8px;padding:10px 16px 14px;display:flex}.estimate-summary-5col{grid-template-columns:repeat(5,minmax(0,1fr));gap:14px;padding:16px;display:grid}@media (max-width:1439px){.form-row.form-row-4.form-row-controls{grid-template-columns:repeat(2,minmax(0,1fr))}.estimate-edit-wf-span2{grid-column:span 2}}@media (max-width:1024px){.estimate-summary-5col{grid-template-columns:repeat(3,minmax(0,1fr))}}@media (max-width:640px){.estimate-summary-5col{grid-template-columns:repeat(2,minmax(0,1fr))}.estimate-work-type-row{flex-wrap:wrap}}.form-row{gap:12px;padding:20px;display:grid}.form-row.form-row-4{grid-template-columns:repeat(4,minmax(0,1fr))}.form-row.form-row-2{grid-template-columns:repeat(2,minmax(0,1fr))}.form-row .form-label{color:var(--text-secondary,#5a6072);margin-bottom:3px;font-size:11px;font-weight:600}.kooji-table{margin-bottom:16px}.kooji-header{color:#fff;background:#1a1f2e;border-radius:8px 8px 0 0;justify-content:space-between;align-items:center;padding:10px 16px;font-size:12px;font-weight:600;display:flex}.uciwake-header{background:var(--accent,#1e4db7);color:#fff;justify-content:space-between;align-items:center;padding:8px 14px 8px 28px;font-size:12px;font-weight:500;display:flex}.uciwake-header.alt{background:#2563eb}.meisai-header-row{background:var(--surface2,#f8f9fb);border-bottom:1px solid var(--border,#dde1e8);color:var(--text-secondary,#5a6072);grid-template-columns:2fr 1fr 1fr 1fr 80px;align-items:center;gap:10px;padding:8px 14px 8px 48px;font-size:11px;font-weight:600;display:grid}.meisai-row{background:var(--surface,#fff);border-bottom:1px solid var(--border,#dde1e8);grid-template-columns:2fr 1fr 1fr 1fr 80px;align-items:center;gap:10px;padding:8px 14px 8px 48px;font-size:12px;display:grid}.kooji-table.invoice-cols .meisai-header-row,.kooji-table.invoice-cols .meisai-row{grid-template-columns:90px 2fr 60px 1fr 1fr 1fr 70px}.kooji-footer{background:var(--surface2,#f8f9fb);border:1px solid var(--border,#dde1e8);border-top:none;border-radius:0 0 8px 8px;justify-content:flex-end;gap:24px;padding:10px 16px;font-size:12px;display:flex}.badge{white-space:nowrap;border-radius:20px;align-items:center;padding:2px 8px;font-size:11px;font-weight:500;display:inline-flex}.badge-green{background:var(--success-bg,#e6f5ee);color:var(--success,#1a7f4b)}.badge-gray{color:var(--text-secondary,#5a6072);background:#f0f2f5}.badge-yellow{color:#b45309;background:#fef9e7}.badge-blue{color:#1e4db7;background:#e8eef9}.badge-red{color:#b91c1c;background:#fde8e8}.filter-group{flex-direction:column;gap:4px;display:flex}.filter-label{color:var(--text-muted,#9199aa);font-size:11px;font-weight:500}.note-box{color:#92400e;background:#fffbeb;border:1px solid #fde68a;border-radius:8px;margin-bottom:12px;padding:8px 14px;font-size:12px}.filter-bar{background:var(--surface,#fff);border:1px solid var(--border,#dde1e8);border-radius:10px;flex-wrap:wrap;align-items:flex-end;gap:10px;margin-bottom:16px;padding:14px 20px;display:flex}.filter-input,.filter-select{border:1px solid var(--border,#dde1e8);background:var(--surface2,#f8f9fb);height:32px;color:var(--text-primary,#1a1f2e);border-radius:6px;outline:none;min-width:140px;padding:0 10px;font-family:Noto Sans JP,sans-serif;font-size:12px}.filter-select{cursor:pointer;padding-right:28px}.filter-input:hover,.filter-select:hover{border-color:var(--accent-strong,#94a3b8)}.filter-input:focus,.filter-select:focus{border-color:var(--accent,#2563eb);box-shadow:0 0 0 2px #2563eb1f}.filter-card{background:var(--surface,#fff);border:1px solid var(--border,#dde1e8);border-radius:10px;margin-bottom:16px;padding:14px 20px}.filter-main-row{flex-wrap:wrap;align-items:flex-end;gap:10px;display:flex}.filter-advanced-section{margin-top:10px}.filter-advanced-divider{border-top:1px solid var(--border,#dde1e8);height:0;margin:0 -20px 10px}.filter-advanced-grid{flex-wrap:wrap;align-items:flex-end;gap:10px;display:flex}.filter-advanced-caption{color:var(--text-muted,#9199aa);margin:0 0 8px;font-size:11px;font-weight:600}.filter-advanced-toggle{color:var(--accent,#2563eb);cursor:pointer;background:0 0;border:none;align-items:center;gap:6px;padding:6px 4px;font-family:Noto Sans JP,sans-serif;font-size:12px;font-weight:600;display:inline-flex}.filter-advanced-toggle:hover{text-decoration:underline}.filter-advanced-badge{background:var(--accent,#2563eb);color:#fff;white-space:nowrap;border-radius:999px;align-items:center;margin-left:6px;padding:1px 7px;font-size:10px;font-weight:700;display:inline-flex}.stats-row{grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:14px;margin-bottom:20px;display:grid}.estimate-copy-row{background:#fffde755}.grp-id-row{align-items:center;gap:4px;margin-top:4px;display:flex}.grp-id,.grp-id-badge{letter-spacing:.04em;color:var(--text-muted);background:var(--surface2);border:1px solid var(--border);white-space:nowrap;-webkit-user-select:all;user-select:all;border-radius:4px;padding:1px 5px;font-family:monospace;font-size:9px;font-weight:600}.grp-link{color:var(--accent);cursor:pointer;white-space:nowrap;opacity:.85;font-size:9px;text-decoration:none}.grp-link:hover{opacity:1;text-decoration:underline}.related-bar{flex-wrap:wrap;gap:8px;padding:0 16px 8px;display:flex}.related-chip{background:var(--bg);border:1px solid var(--border);color:var(--text-secondary);border-radius:12px;padding:2px 10px;font-size:11px}.related-total-badge{color:#1e4db7;background:#e8eef9;border:1px solid #b5d4f4;border-radius:8px;padding:1px 6px;font-size:10px;font-weight:700}.pagination{border-top:1px solid var(--border);justify-content:center;align-items:center;gap:12px;padding:12px 16px;display:flex}.pagination-info{color:var(--muted);font-size:12px}.pg-btn{border:1px solid var(--border);background:var(--surface);color:#3f4657;cursor:pointer;-webkit-user-select:none;user-select:none;border-radius:6px;justify-content:center;align-items:center;min-width:28px;height:26px;padding:0 8px;font-size:11px;font-weight:700;display:inline-flex}.pg-btn:hover{background:var(--surface2,#f1f5f9)}.pg-btn.active{background:var(--accent);border-color:var(--accent);color:#fff}.list-card-header{padding:12px 16px}.btn-danger-soft{color:var(--danger);background:#fef2f2;border:1px solid #fecaca;font-weight:600}.btn-danger-soft:hover:not(:disabled){background:#fde8e8}.tag{border:1px solid #0000;border-radius:4px;justify-content:center;align-items:center;padding:1px 7px;font-size:10px;font-weight:700;display:inline-flex}.estimate-edit-header-actions{justify-content:flex-end;gap:8px;margin-bottom:16px;display:flex}.two-col-grid{grid-template-columns:1fr 1fr;gap:16px;display:grid}:root{--link-action:#2563eb;--link-action-muted:#64748b;--readonly-bg:#f3f4f6;--readonly-border:#e5e7eb;--danger-soft-bg:#fef2f2;--danger-soft-border:#fecaca;--danger-soft-text:#b91c1c;--gap-xs:6px;--gap-sm:8px;--gap-md:12px;--gap-lg:16px;--gap-xl:20px}.code-display{background:var(--readonly-bg);border:1px solid var(--readonly-border);cursor:default;width:70px;height:26px;font-family:monospace;font-size:12px;font-weight:700}.assist-dropdown{z-index:20;background:#fff;border:1px solid #d5d9e2;border-radius:8px;max-height:320px;margin-top:4px;position:absolute;top:100%;left:0;right:0;overflow-y:auto;box-shadow:0 6px 16px #0f172a14}.assist-dropdown__item{text-align:left;cursor:pointer;width:100%;font:inherit;background:#fff;border:none;padding:10px 12px;display:block}.assist-dropdown__item:hover{background:#f8fafc}.assist-dropdown__empty{color:#64748b;padding:10px}.form-input.field-warning{background:#fffbeb;border-color:#f59e0b;box-shadow:0 0 0 1px #f59e0b33}.form-input.field-warning:focus{border-color:#d97706;outline-color:#d97706}.form-input.field-error{background:#fef2f2;border-color:#ef4444;box-shadow:0 0 0 1px #ef444433}.form-input.field-error:focus{border-color:#dc2626;outline-color:#dc2626}.assist-warning{color:#b45309;margin-top:4px;font-size:11px;line-height:1.4}.text-link-action{color:var(--link-action);cursor:pointer;background:0 0;border:none;padding:0;font-family:inherit;font-size:11px;text-decoration:underline}.text-link-action--muted{color:var(--link-action-muted)}.field-label-row{justify-content:space-between;align-items:center;gap:var(--gap-sm);flex-wrap:wrap;display:flex}.field-label-row__actions{gap:10px;font-weight:400;display:inline-flex}.work-action-buttons{flex-wrap:nowrap;align-items:center;gap:8px;display:flex}.work-action-button{white-space:nowrap;border-radius:6px;align-items:center;gap:6px;height:28px;padding:0 14px;font-size:11px;font-weight:600;line-height:1;display:inline-flex}.work-action-button--primary{border:none}.work-action-button--secondary{background:var(--surface);color:var(--text-secondary);border:1px solid var(--border)}.work-action-button--danger{background:var(--surface);color:var(--danger-soft-text);border:1px solid var(--danger-soft-border)}.work-action-button--danger:disabled{color:var(--muted);border-color:var(--border);cursor:not-allowed;opacity:.6}.master-edit-modal-overlay{z-index:10000;background:#00000073;justify-content:center;align-items:flex-start;padding:40px 16px;display:flex;position:fixed;inset:0;overflow-y:auto}.master-edit-modal{background:#fff;border-radius:14px;width:min(820px,100vw - 40px);margin:auto;box-shadow:0 20px 60px #00000040}.master-edit-modal-header{background:var(--accent);color:#fff;border-radius:14px 14px 0 0;justify-content:space-between;align-items:center;padding:16px 24px;display:flex}.master-edit-modal-title{font-size:16px;font-weight:700}.master-edit-modal-subtitle{opacity:.85;margin-top:2px;font-size:11px}.master-edit-modal-close{color:#fff;background:#fff3;border:none}.master-edit-modal-body{padding:20px 24px}.master-edit-tabs{border-bottom:1px solid var(--border);margin-bottom:16px;display:flex}.master-edit-tab{color:var(--text-secondary);cursor:pointer;background:0 0;border:none;border-bottom:2px solid #0000;padding:8px 18px;font-family:inherit;font-size:12px;font-weight:500}.master-edit-tab.active{color:var(--accent);border-bottom-color:var(--accent);font-weight:700}.form-row.master-edit-row-2-equal{grid-template-columns:1fr 1fr}.form-row.master-edit-row-2-narrow-wide{grid-template-columns:minmax(160px,220px) minmax(0,1fr)}.form-row.master-edit-row-2-wide-narrow{grid-template-columns:minmax(0,1fr) minmax(160px,220px)}.form-row.master-edit-row-2-compact{grid-template-columns:minmax(180px,240px) minmax(180px,240px);justify-content:start}.form-row.master-edit-row-1{grid-template-columns:minmax(0,1fr)}.master-edit-modal .form-group{align-content:start}.master-edit-modal-footer{border-top:1px solid var(--border);justify-content:flex-end;gap:10px;margin-top:16px;padding-top:16px;display:flex}.master-edit-inner-box{border:1px solid var(--border);border-radius:8px;padding:14px}.master-edit-note{margin-bottom:14px}.form-row.form-row-flush{padding:0}.form-row.form-row-mb,.form-group.form-group-mb{margin-bottom:14px}.form-group.form-group-mb-0{margin-bottom:0}.col-span-2{grid-column:span 2}.col-span-3{grid-column:span 3}.col-span-4{grid-column:span 4}.col-span-5{grid-column:span 5}.col-span-6{grid-column:span 6}.col-span-12{grid-column:span 12}.col-span-full{grid-column:1/-1}.form-row.form-row-12{grid-template-columns:repeat(12,minmax(0,1fr))}@media (max-width:1099px){.form-row.form-row-12{grid-template-columns:repeat(6,minmax(0,1fr))}.form-row.form-row-12>.col-span-2,.form-row.form-row-12>.col-span-3{grid-column:span 3}.form-row.form-row-12>.col-span-4,.form-row.form-row-12>.col-span-5,.form-row.form-row-12>.col-span-6,.form-row.form-row-12>.col-span-12{grid-column:span 6}}@media (max-width:700px){.form-row.form-row-12>*{grid-column:span 6!important}}.input-mono{font-family:monospace}.input-mono-bold{font-family:monospace;font-weight:700}.cp-section{margin-bottom:6px}.cp-section.note-box{padding:6px 14px}.cp-section>.card-body{padding-top:10px;padding-bottom:10px}.cp-section .form-group{margin-bottom:6px}.cp-form-row-flush{padding:0}.cp-seal-file-input{display:none}.cp-seal-row{flex-wrap:wrap;align-items:flex-start;gap:16px;display:flex}.cp-seal-preview{border:1px solid var(--border);background:#fff;border-radius:8px;flex-direction:column;flex:none;justify-content:center;align-items:center;gap:4px;width:96px;height:96px;display:flex;overflow:hidden}.cp-seal-preview img{object-fit:contain;width:100%;height:100%;padding:6px}.cp-seal-preview.is-empty{background:var(--surface2);color:var(--text-muted);border-style:dashed}.cp-seal-preview>span{color:var(--text-muted);text-align:center;font-size:11px;line-height:1.3}.cp-seal-info{flex-direction:column;flex:260px;gap:6px;min-width:0;display:flex}.cp-seal-status{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.cp-seal-spec{color:var(--text-muted);font-size:11px}.cp-seal-desc{color:var(--text-secondary);font-size:12px}.cp-seal-actions{flex-wrap:wrap;align-items:center;gap:8px;margin-top:2px;display:flex}.cp-seal-actions .btn{align-items:center;gap:6px;display:inline-flex}.cp-seal-actions .btn:disabled{opacity:.6;cursor:not-allowed}.cp-seal-delete{color:var(--text-secondary,#64748b)}.cp-seal-delete:hover:not(:disabled){color:#b91c1c;background:#fde8e8}.cp-bank-accounts-list{flex-direction:column;gap:10px;display:flex}.cp-bank-accounts-empty{text-align:center;color:var(--text-muted);background:var(--surface2);border-radius:8px;padding:16px;font-size:12px}.cp-bank-account-card{border:1px solid var(--border);border-radius:8px;padding:12px 14px;position:relative}.cp-bank-account-actions{align-items:center;gap:6px;display:flex;position:absolute;top:10px;right:10px}.cp-default-badge{background:var(--accent);color:#fff;border-radius:10px;padding:2px 8px;font-size:10px;font-weight:600}.cp-set-default-btn{border:1px solid var(--border);color:var(--text-secondary);cursor:pointer;background:0 0;padding:2px 8px;font-size:11px}.cp-delete-icon-btn{cursor:pointer;background:0 0;border:none;padding:2px;font-size:16px}.cp-seal-grid{grid-template-columns:repeat(3,1fr);gap:16px}.cp-seal-card{border:1px solid var(--border);text-align:center;border-radius:8px;padding:12px}.cp-seal-label{color:var(--text-secondary);margin-bottom:8px;font-size:11px;font-weight:600}.cp-seal-box{border:2px solid var(--danger);width:80px;height:80px;color:var(--danger);background:#fff;border-radius:4px;justify-content:center;align-items:center;margin:0 auto 8px;font-size:10px;font-weight:700;display:flex;overflow:hidden}.cp-seal-box.cp-seal-box-circle{border-radius:50%}.cp-seal-image{object-fit:contain;width:100%;height:100%}.cp-seal-actions{flex-wrap:wrap;justify-content:center;gap:6px;display:flex}.cp-seal-hint{color:var(--text-muted);margin-top:6px;font-size:9px}.cp-tax-row{align-items:start}.cp-tax-number-input-row{align-items:center;gap:8px;display:flex}.cp-tax-prefix{text-align:center;width:14px;color:var(--text-secondary);flex-shrink:0;font-size:13px;font-weight:600;line-height:34px}.cp-tax-number-input{letter-spacing:.05em}.cp-tax-note{color:var(--text-muted);margin-left:22px;font-size:10px}@property --tw-rotate-x{syntax:"*";inherits:false}@property --tw-rotate-y{syntax:"*";inherits:false}@property --tw-rotate-z{syntax:"*";inherits:false}@property --tw-skew-x{syntax:"*";inherits:false}@property --tw-skew-y{syntax:"*";inherits:false}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-outline-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-blur{syntax:"*";inherits:false}@property --tw-brightness{syntax:"*";inherits:false}@property --tw-contrast{syntax:"*";inherits:false}@property --tw-grayscale{syntax:"*";inherits:false}@property --tw-hue-rotate{syntax:"*";inherits:false}@property --tw-invert{syntax:"*";inherits:false}@property --tw-opacity{syntax:"*";inherits:false}@property --tw-saturate{syntax:"*";inherits:false}@property --tw-sepia{syntax:"*";inherits:false}@property --tw-drop-shadow{syntax:"*";inherits:false}@property --tw-drop-shadow-color{syntax:"*";inherits:false}@property --tw-drop-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-drop-shadow-size{syntax:"*";inherits:false}
