html{font-size:18px}:root{--bg-color: #0f172a;--text-main: #f8fafc;--text-secondary: #94a3b8;--primary-color: #818cf8;--primary-hover: #a5b4fc;--accent-production: #34d399;--accent-sales: #60a5fa;--card-bg: #1e293b;--header-bg-blur: rgba(15, 23, 42, .8);--border-color: #334155;--shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, .3);--shadow-md: 0 4px 6px -1px rgba(0, 0, 0, .4), 0 2px 4px -1px rgba(0, 0, 0, .2);--shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, .5), 0 4px 6px -2px rgba(0, 0, 0, .2);--font-sans: "Noto Sans JP", sans-serif}*,*:before,*:after{box-sizing:border-box}body{font-family:var(--font-sans);margin:0;padding:0;background-color:var(--bg-color);color:var(--text-main);-webkit-font-smoothing:antialiased;min-height:100vh;font-size:18px;overflow-x:hidden}#root{min-height:100vh;overflow-x:hidden}.app-container{width:100%}header.page-header{background:var(--header-bg-blur);-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);padding:1.25rem 2rem;border-radius:1rem;box-shadow:var(--shadow-sm);margin-bottom:2rem;border:1px solid var(--border-color);display:flex!important;justify-content:space-between;align-items:center}h1{font-size:1.875rem;font-weight:800;margin:0;background:linear-gradient(135deg,#f8fafc,#94a3b8);-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent;letter-spacing:-.025em}button{background-color:var(--primary-color);color:#fff;border:none;padding:.5rem 1rem;border-radius:.5rem;font-weight:600;cursor:pointer;transition:all .2s;font-size:1rem;box-shadow:var(--shadow-sm);display:inline-flex;align-items:center;justify-content:center;gap:.4rem;line-height:1.2;white-space:nowrap}button:hover{background-color:var(--primary-hover);transform:translateY(-1px);box-shadow:var(--shadow-md)}button:disabled{opacity:.6;cursor:not-allowed;transform:none}.btn{display:inline-flex;align-items:center;justify-content:center;gap:.4rem;width:auto;min-height:38px;padding:8px 16px;box-sizing:border-box;border-radius:6px;font-weight:700;line-height:1.2;white-space:nowrap;box-shadow:var(--shadow-sm)}.btn:hover{transform:translateY(-1px);box-shadow:var(--shadow-md)}.btn-primary{border:none;background:var(--primary-color);color:#fff}.btn-secondary{border:1px solid var(--border-color);background:transparent;color:var(--text-main);box-shadow:none}.btn-secondary:hover{background:#94a3b81f;box-shadow:none}.btn-success-outline{border:1px solid #10b981;background:transparent;color:#10b981;box-shadow:none}.btn-success-outline:hover{background:#10b9811f;color:#6ee7b7;border-color:#6ee7b7;box-shadow:none}.btn-danger{border:none;background:#ef4444;color:#fff}.btn-danger:hover{background:#f87171}.btn-danger-outline{border:1px solid #ef4444;background:transparent;color:#ef4444;box-shadow:none}.btn-danger-outline:hover{background:#ef44441f;color:#fca5a5;border-color:#fca5a5;box-shadow:none}.btn-link{min-height:0;padding:0;border:0;border-radius:0;background:transparent;color:var(--primary-hover);text-decoration:underline;font:inherit;font-weight:700;box-shadow:none}.btn-link:hover{background:transparent;opacity:.82;transform:none;box-shadow:none}.btn-icon{width:38px;height:38px;min-height:38px;padding:0;border:1px solid var(--border-color);background:transparent;color:var(--text-main);box-shadow:none}.btn-icon:hover{background:#94a3b81f;box-shadow:none;transform:none}.btn-form-adjacent{min-height:42px;align-self:stretch}select,input,textarea{padding:.5rem 1rem;border-radius:.5rem;border:1px solid var(--border-color);background-color:#1e293b;font-size:1rem;color:var(--text-main);outline:none;transition:border-color .2s,box-shadow .2s;cursor:pointer;width:100%}input[type=month]{padding-right:2rem}select:focus,input[type=month]:focus{border-color:var(--primary-color);box-shadow:0 0 0 3px #6366f133}.control-panel{display:flex;gap:1.5rem;align-items:center;background:#1e293b;padding:.75rem 1.25rem;border-radius:.75rem;border:1px solid var(--border-color)}.summary-section,.project-list-section{background:var(--card-bg);border-radius:1rem;box-shadow:var(--shadow-lg);padding:1.5rem;margin-bottom:2rem;border:1px solid var(--border-color);overflow:hidden;max-width:100%}h3{font-size:1.5rem;font-weight:700;margin:0 0 25px;padding-left:.75rem;border-left:4px solid var(--primary-color);color:var(--text-main)}label{font-size:1.25rem;color:var(--text-secondary)}table{width:100%;max-width:100%;border-collapse:separate;border-spacing:0;font-size:.85rem;table-layout:fixed}th,td{padding:.75rem 1rem;border-bottom:1px solid var(--border-color);text-align:right;color:var(--text-main)}th{padding-left:4px;padding-right:4px;background-color:#0f172a;color:var(--text-secondary);font-weight:600;text-align:center;position:sticky;top:0;z-index:10;text-transform:uppercase;font-size:.7rem;letter-spacing:.05em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}th,td{overflow:hidden;text-overflow:ellipsis}tbody tr:hover{background-color:#ffffff08;transition:background-color .15s}td:not(:first-child){font-weight:500}tr.total-row{font-weight:700;background-color:#6366f11a}.loading-container{display:flex;justify-content:center;align-items:center;height:50vh;font-size:1.5rem;color:var(--text-secondary);font-weight:600;animation:pulse 2s cubic-bezier(.4,0,.6,1) infinite}@keyframes pulse{0%,to{opacity:1}50%{opacity:.5}}.summary-table-header th{text-align:center}.app-layout{min-height:100vh;width:100%;overflow-x:hidden}.mobile-layout-bar,.mobile-layout-source-toggle,.mobile-nav-backdrop,.mobile-nav-toggle,.mobile-nav-close,.standard-data-mobile-toolbar,.standard-data-mobile-list,.closing-mobile-cards,.project-filter-mobile-list,.master-mobile-list{display:none}.standard-data-pagination{flex-wrap:wrap}.summary-mobile-list,.project-list-mobile-cards{display:grid;gap:12px}.summary-mobile-card,.project-list-mobile-card,.project-list-mobile-total{border:1px solid var(--border-color);border-radius:12px;background:#0f172a73}.sidebar{width:260px;background:var(--card-bg);border-right:1px solid var(--border-color);display:flex;flex-direction:column;position:fixed;top:0;left:0;bottom:0;z-index:1000;overflow:hidden}.sidebar-header{padding:2rem 1.5rem;border-bottom:1px solid var(--border-color);text-align:center;margin-bottom:8px}.sidebar-header-main{min-width:0}.sidebar-header h1{font-family:Zen Kaku Gothic New,sans-serif;font-size:22.4px;font-weight:900;margin:0;letter-spacing:.08em}.sidebar-title-short{display:none}.sidebar-nav{flex:1;padding:.75rem 0;overflow-y:auto}.sidebar-nav ul{list-style:none;padding:0;margin:0}.sidebar-nav li{margin-bottom:.5rem}.sidebar-nav a{display:flex;align-items:center;padding:.75rem 1.5rem;font-size:16px;color:var(--text-secondary);text-decoration:none;transition:all .2s;gap:12px}.sidebar-nav a:hover{background:#ffffff0d;color:var(--text-main)}.sidebar-nav a.active{background:#6366f11a;color:var(--primary-color);border-right:3px solid var(--primary-color)}.sidebar-nav .icon{font-size:20px}.sidebar-footer{padding:1rem 1.5rem;border-top:1px solid var(--border-color);display:flex;align-items:center;justify-content:space-between}.sidebar-footer .user-name{font-weight:700;font-size:14.4px}.sidebar-footer .user-role{font-size:12px;color:var(--text-secondary)}.sidebar-footer .logout-icon-button{background:transparent;width:40px;height:40px;padding:0;display:flex;align-items:center;justify-content:center;font-size:1.5rem;border-radius:8px;transition:all .2s;box-shadow:none}.sidebar-footer .logout-icon-button:hover{background:#ef44441a;transform:scale(1.1)}.main-content{min-width:0;margin-left:260px;padding:2rem;overflow-x:hidden;max-width:none;box-sizing:border-box}.estimate-header-meta{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.estimate-source-chip,.estimate-number-chip{display:inline-flex;align-items:center;padding:8px 12px;border-radius:999px;border:1px solid var(--border-color);background:#ffffff0a;color:var(--text-secondary);font-size:.85rem;font-weight:700}.estimate-status-banner{margin-bottom:20px;padding:14px 18px;border-radius:12px;font-weight:700;border:1px solid transparent}.estimate-status-banner.is-success{background:#10b98126;color:#a7f3d0;border-color:#10b98159}.estimate-status-banner.is-error{background:#ef444426;color:#fecaca;border-color:#ef444459}.estimate-form-grid,.estimate-item-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.estimate-item-grid{grid-template-columns:minmax(170px,1.45fr) 84px 84px 140px 156px;gap:10px 12px;align-items:end}.estimate-field{display:flex;flex-direction:column;gap:8px}.estimate-item-grid .estimate-field{gap:5px}.estimate-item-grid input[name^=estimate_item_quantity_],.estimate-item-grid input[name^=estimate_item_unit_price_],.estimate-item-grid input[name^=estimate_item_amount_]{text-align:right}.estimate-client-field{position:relative;grid-column:span 2}.estimate-official-badge{align-self:flex-start;display:inline-flex;align-items:center;padding:3px 9px;border-radius:6px;border:1px solid #ef4444;background:#dc2626;color:#fff;font-size:.72rem;font-weight:800;line-height:1.1}.estimate-client-picker{display:flex;align-items:center;gap:8px}.estimate-client-picker input{flex:1;margin:0}.estimate-client-create-button{height:38px;padding:0 20px;border-radius:6px;background:#10b981;color:#fff;font-size:.9rem;font-weight:700;display:inline-flex;align-items:center;gap:6px;white-space:nowrap;box-shadow:none}.estimate-client-create-button:hover{background:#34d399;box-shadow:none}.estimate-client-suggestions{position:absolute;top:100%;left:0;right:0;z-index:1000;max-height:200px;overflow-y:auto;margin-top:2px;border:1px solid #475569;border-radius:4px;background:#1e293b;box-shadow:0 4px 6px #0000004d}.estimate-client-suggestion{width:100%;display:block;padding:8px 12px;border:0;border-bottom:1px solid #334155;border-radius:0;background:transparent;color:var(--text-main);text-align:left;box-shadow:none}.estimate-client-suggestion:hover{background:#334155;transform:none;box-shadow:none}.estimate-client-suggestion strong,.estimate-client-suggestion small{display:block}.estimate-client-suggestion small{margin-top:2px;color:var(--text-secondary);font-size:.85em}.estimate-field span{color:var(--text-secondary);font-size:.9rem;font-weight:700}.estimate-field .estimate-official-badge{color:#fff;font-size:.72rem;font-weight:800}.estimate-field textarea{min-height:88px;resize:vertical}.estimate-item-grid textarea{min-height:52px}.estimate-item-grid textarea[name^=estimate_item_name_]{min-height:40px}.estimate-field--wide{grid-column:span 2}.estimate-field--full{grid-column:1 / -1}.estimate-items-header,.estimate-item-card-header,.estimate-action-bar,.estimate-preview-header,.estimate-preview-topline,.estimate-preview-footer{display:flex;align-items:center;justify-content:space-between;gap:16px}.estimate-items-list{margin-top:14px;display:grid;gap:10px}.estimate-add-item-button{width:36px;height:36px;justify-self:center;margin-top:14px;padding:0;border-radius:999px;border:1px solid var(--border-color);background:transparent;color:var(--text-main);box-shadow:none;display:inline-flex;align-items:center;justify-content:center;line-height:1}.estimate-add-item-button:hover{background:#94a3b81f;box-shadow:none;transform:none}.estimate-item-card{border:1px solid var(--border-color);border-radius:12px;padding:12px 60px;background:#0f172a73;position:relative;transition:border-color .18s ease,box-shadow .18s ease,opacity .18s ease,transform .18s ease}.estimate-item-card.is-dragging{opacity:.55}.estimate-item-card.is-drag-over{border-color:#10b981d9;box-shadow:0 0 0 2px #10b9812e;transform:translateY(-1px)}.estimate-drag-handle{width:40px;height:40px;padding:0;border:1px solid var(--border-color);border-radius:8px;background:#0f172a59;color:var(--text-secondary);box-shadow:none;display:flex;align-items:center;justify-content:center;line-height:1;flex-shrink:0;position:absolute;top:50%;left:12px;transform:translateY(-50%);cursor:grab;touch-action:none}.estimate-drag-handle:hover{background:#94a3b81f;color:var(--text-main);box-shadow:none;transform:translateY(-50%)}.estimate-drag-handle:active{cursor:grabbing}.estimate-delete-button,.estimate-copy-button{width:40px;height:40px;padding:0;border:1px solid var(--border-color);border-radius:8px;background:transparent;color:var(--text-main);box-shadow:none;display:flex;align-items:center;justify-content:center;line-height:1;flex-shrink:0;position:absolute;right:12px}.estimate-delete-button{top:12px}.estimate-copy-button{top:58px}.estimate-delete-button:hover,.estimate-copy-button:hover{background:#94a3b81f;box-shadow:none;transform:none}.estimate-delete-button:disabled{opacity:.45;cursor:not-allowed;transform:none}.estimate-primary-action-button{white-space:nowrap}.estimate-number-link{padding:0;border:0;background:transparent;color:#fff;text-decoration:underline;font:inherit;font-weight:700;box-shadow:none}.estimate-number-link:hover{background:transparent;color:#fff;opacity:.8;transform:none;box-shadow:none}.estimate-list-actions{display:inline-flex;align-items:center;justify-content:center;gap:8px}.estimate-list-action-button{height:32px;padding:0 12px;border:1px solid var(--border-color);border-radius:6px;background:transparent;color:var(--primary-hover);font-weight:600;cursor:pointer;box-shadow:none;font-size:.9rem}.estimate-list-action-button:hover{background:#818cf81f;border-color:#818cf873;color:#fff;box-shadow:none}.estimate-list-action-button:disabled{opacity:.55;cursor:not-allowed;transform:none}.estimate-action-bar{margin-bottom:2rem;flex-wrap:wrap}.estimate-action-summary{display:flex;align-items:center;gap:18px;flex-wrap:wrap;color:var(--text-secondary)}.estimate-action-summary strong{color:var(--text-main);font-size:1.05rem}.estimate-items-summary{margin-top:18px;padding-top:16px;border-top:1px solid var(--border-color);display:flex;justify-content:flex-end;align-items:center;gap:18px;flex-wrap:wrap;color:var(--text-secondary)}.estimate-items-summary strong{color:var(--text-main);font-size:1.05rem}.estimate-action-buttons{display:flex;gap:12px}.estimate-preview-shell{background:linear-gradient(180deg,#ffffff0a,#0f172ad1)}.estimate-preview-frame-shell{max-width:960px;margin:0 auto}.estimate-preview-loading{margin:0 0 12px;color:var(--text-secondary);font-size:.95rem}.estimate-preview-frame{display:block;width:100%;min-height:1180px;height:1180px;border:none;background:#fff;border-radius:12px;box-shadow:0 18px 40px #0f172a29}.estimate-preview-frame--empty{background:#f8fafc}.estimate-preview-toolbar{display:flex;justify-content:flex-end;gap:12px;margin-bottom:16px}.estimate-document-tabs{display:flex;gap:10px;margin-bottom:20px;border-bottom:1px solid var(--border-color)}.estimate-document-tabs button{padding:10px 20px;border:none;border-bottom:2px solid transparent;background:transparent;color:var(--text-secondary);cursor:pointer;box-shadow:none;font-weight:400}.estimate-document-tabs button:hover{background:transparent;color:var(--primary-color);box-shadow:none;transform:none}.estimate-document-tabs button.is-active{background:var(--card-bg);color:var(--primary-color);border-bottom-color:var(--primary-color);font-weight:700}.purchase-order-settings{margin:0 0 24px;padding:20px;border:1px solid var(--border-color);border-radius:12px;background:#0f172a80}.purchase-order-settings-header{margin-bottom:16px}.purchase-order-settings-header h3{margin:0 0 6px;color:var(--text-main)}.purchase-order-settings-header p{margin:0;color:var(--text-secondary);font-size:.9rem}.purchase-order-settings-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.purchase-order-contact-empty{min-height:38px;display:flex;align-items:center;padding:0 12px;border:1px solid var(--border-color);border-radius:8px;color:var(--text-secondary);background:#0f172a59;font-size:.9rem}.purchase-order-empty-message{color:var(--text-secondary);font-weight:700;text-align:center;padding:24px 12px}.estimate-printable{max-width:920px;margin:0 auto;background:#fff;color:#111827;border-radius:12px;padding:18mm 14mm 16mm;box-shadow:0 18px 40px #0f172a29;font-family:Yu Gothic,Hiragino Kaku Gothic ProN,Meiryo,sans-serif}.estimate-printable--paginated{position:relative;max-width:none;padding:0;background:transparent;border-radius:0;box-shadow:none}.estimate-preview-page-height-probe{position:absolute;width:1px;height:277mm;visibility:hidden;pointer-events:none}.estimate-preview-measurer{position:absolute;top:0;left:-10000px;width:190mm;visibility:hidden;pointer-events:none}.estimate-preview-page{position:relative;width:210mm;height:297mm;margin:0 auto 24px;overflow:hidden;background:#fff;border-radius:8px;box-shadow:0 18px 40px #0f172a29}.estimate-preview-page:last-child{margin-bottom:0}.estimate-preview-page-viewport{position:absolute;top:10mm;left:10mm;width:190mm;height:277mm;overflow:hidden}.estimate-preview-page-content{width:190mm;transform-origin:top left}.estimate-preview-continued-marker,.estimate-preview-page-number{position:absolute;bottom:6px;color:#64748b;font-size:9px;line-height:1.3;pointer-events:none}.estimate-preview-continued-marker{right:10mm;bottom:22px}.estimate-preview-page-number{left:10mm;right:10mm;text-align:right}.estimate-printable h2,.estimate-printable h3,.estimate-printable h4,.estimate-printable p,.estimate-printable strong,.estimate-printable span,.estimate-printable td,.estimate-printable th{color:inherit}.estimate-preview-eyebrow{margin:0 0 8px;letter-spacing:.2em;text-transform:uppercase;font-size:.75rem;color:#64748b}.estimate-preview-meta-row{display:flex;justify-content:space-between;gap:16px;align-items:flex-end;margin-bottom:6mm}.estimate-preview-meta-row--pdf{gap:10mm}.estimate-preview-title-inline{margin:0;font-size:28px;letter-spacing:.22em;text-indent:.22em;font-weight:700;line-height:1}.estimate-preview-number-block{width:82mm;color:#111827;font-size:11px}.estimate-preview-number-block--formal{width:82mm;font-size:11px}.estimate-meta-row{display:flex;justify-content:space-between;gap:18px;border-bottom:1px solid #cbd5e1;padding:2px 0}.estimate-meta-row span{color:#475569}.estimate-meta-row strong{font-weight:500}.estimate-preview-title-block{text-align:center;margin-bottom:7mm}.estimate-preview-title-block h2{margin:0;font-size:1.9rem;letter-spacing:.38em;text-indent:.38em;font-weight:700}.estimate-preview-topline{display:flex;justify-content:space-between;gap:12mm;align-items:flex-start}.estimate-preview-topline--formal{margin-bottom:8mm}.estimate-recipient-block{flex:1}.estimate-recipient-block--formal{padding-right:16px}.estimate-recipient-block h3{margin:0 0 4mm;padding-left:0;border-left:none;font-size:25px;font-weight:500;letter-spacing:.05em;border-bottom:1px solid #475569;display:inline-block;min-width:72mm;padding-bottom:2px}.estimate-recipient-block p{display:block;margin:0 0 1mm;line-height:1.5}.estimate-lead-text{font-size:12px;margin-bottom:1mm!important}.estimate-subject-row,.estimate-project-row{display:flex;gap:10px;align-items:baseline;margin-top:3mm;font-size:12px}.estimate-subject-row span{min-width:32px;color:#475569}.estimate-subject-row strong{font-weight:500;border-bottom:1px solid #cbd5e1;flex:1;padding-bottom:2px;font-size:15px;line-height:1.35}.estimate-project-row{color:#475569}.estimate-issuer-block{min-width:260px;text-align:right}.estimate-issuer-block--formal{flex:0 0 72mm;width:72mm;min-width:72mm;text-align:left;font-size:11px;line-height:1.5;padding-top:8mm}.estimate-issuer-block span{display:block;margin:0 0 1mm;line-height:1.5}.estimate-preview-company-logo{width:88%;margin:0 0 3mm;overflow:hidden}.estimate-preview-company-logo img{display:block;width:100%;height:auto;transform:translate(-3.9%)}.estimate-issuer-block--formal strong{font-size:1rem;margin-bottom:6px}.estimate-summary-band{display:flex;justify-content:space-between;gap:1.5mm;margin-bottom:7mm}.estimate-summary-meta{flex:1;display:grid;gap:2.5mm;align-content:start}.estimate-summary-meta>div{display:grid;grid-template-columns:19mm 1fr;gap:1mm;align-items:center;font-size:11px}.estimate-summary-meta span{color:#475569}.estimate-summary-meta strong{font-weight:500;padding-bottom:2px;border-bottom:1px solid #cbd5e1}.estimate-total-highlight{width:76mm;margin:0;padding:0;background:#fff;border:1px solid #111827;text-align:center;align-self:start}.estimate-total-highlight span{color:#111827;font-weight:700;font-size:10px;text-align:center;border-bottom:1px solid #111827;padding:7px 10px;display:block}.estimate-total-highlight strong{font-size:27px;text-align:center;letter-spacing:.04em;padding:8px 10px 9px;display:block}.estimate-preview-table{width:100%;border-collapse:collapse;table-layout:fixed;font-size:11px;border-right:1.2px solid #6b7280}.estimate-preview-table th,.estimate-preview-table td{position:static;border:1px solid #6b7280;padding:4px 8px;text-align:right;background:transparent;height:9mm;vertical-align:middle}.estimate-preview-table th{background:#f1f5f9;color:#111827;text-transform:none;font-weight:700;text-align:center}.estimate-preview-table th:last-child,.estimate-preview-table td:last-child{border-right:1.2px solid #6b7280}.estimate-item-name-cell{text-align:left!important}.estimate-preview-cell-center{text-align:center!important}.estimate-preview-cell-right{text-align:right!important}.estimate-preview-table td:nth-child(2),.estimate-preview-table td:nth-child(3),.estimate-preview-table th:nth-child(2),.estimate-preview-table th:nth-child(3){text-align:center}.estimate-item-name-cell small{display:block;margin-top:3px;color:#64748b;white-space:pre-wrap;font-size:10px;line-height:1.45}.estimate-preview-table tfoot td{font-weight:700;background:#fff}.estimate-preview-footer-label,.estimate-preview-table tfoot td:first-child{text-align:right}.estimate-preview-footer{margin-top:7mm;align-items:stretch}.estimate-preview-footer>div{flex:1;border:1px solid #6b7280;border-radius:0;padding:10px 12px;min-height:34mm}.estimate-preview-footer h4{margin:0 0 8px;font-size:11px;padding-bottom:5px;border-bottom:1px solid #cbd5e1}.estimate-preview-footer p{margin:0;white-space:pre-wrap;line-height:1.1;font-size:10px}.estimate-preview-footer--formal{display:block;margin-top:7mm}.estimate-guidance-block{background:#fafafa}.source-toggle-wrapper{padding:0 20px 8px}.source-toggle{display:flex;background:#ffffff0d;border-radius:8px;padding:4px}.source-toggle-btn{flex:1;padding:8px 0;border:none;border-radius:6px;background:transparent;color:var(--text-secondary);cursor:pointer;font-weight:400;transition:all .2s ease;font-size:13.6px;box-shadow:none}.source-toggle-btn:hover{background:#ffffff0d;transform:none;box-shadow:none}.source-toggle-btn--active{color:#fff;font-weight:700}.source-toggle-btn--cn.source-toggle-btn--active{background:var(--primary-color)}.source-toggle-btn--sogami.source-toggle-btn--active{background:#f59e0b}.source-toggle-short{display:none}@media (max-width: 1024px){.sidebar{width:60px}.sidebar .label,.sidebar-footer .user-info,.sidebar-title-full{display:none!important}.sidebar-title-short{display:inline}.sidebar-header{padding:1.25rem .5rem;margin-bottom:4px;display:flex;justify-content:center}.sidebar-header h1{display:flex;align-items:center;justify-content:center;font-size:1.15rem!important}.source-toggle-wrapper{padding:0 6px 12px}.source-toggle{flex-direction:column;gap:2px;padding:3px;min-width:0;align-items:stretch}.source-toggle-btn{width:100%;box-sizing:border-box;display:flex;align-items:center;justify-content:center;min-width:0;font-size:.65rem;padding:6px 0;line-height:1.1}.source-toggle-full{display:none}.source-toggle-short{display:inline;width:100%;text-align:center}.main-content{min-width:0;margin-left:60px;max-width:none}.sidebar-nav{padding:.5rem 0}.sidebar-nav li{margin-bottom:.25rem}.sidebar-nav a{justify-content:center;padding:.9rem .5rem;gap:0}.sidebar-nav a.active{border-right:none;box-shadow:inset 3px 0 0 var(--primary-color)}.sidebar-footer{padding:.75rem .5rem;justify-content:center}.sidebar-footer .logout-icon-button{width:36px;height:36px}.estimate-form-grid,.estimate-item-grid{grid-template-columns:1fr}.estimate-field--wide,.estimate-client-field{grid-column:span 1}.estimate-client-picker{align-items:stretch;flex-direction:column}.estimate-preview-topline,.estimate-preview-header,.estimate-action-bar,.estimate-preview-footer{flex-direction:column;align-items:stretch}.estimate-summary-band,.estimate-preview-footer--formal{grid-template-columns:1fr;flex-direction:column}.estimate-issuer-block,.estimate-preview-number-block{min-width:0;text-align:left}.estimate-printable{padding:24px}.estimate-printable--paginated{padding:0}}@media (max-width: 768px){.app-layout{position:relative}.mobile-layout-bar{display:flex;align-items:center;gap:12px;position:fixed;top:0;left:0;right:0;z-index:1050;margin:0;padding:.65rem .55rem;background:#0f172af0;-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);border-bottom:1px solid var(--border-color);box-shadow:0 12px 28px #02061747}.mobile-layout-title{flex:1 1 auto;min-width:0;font-size:.95rem;font-weight:800;color:var(--text-main);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mobile-layout-source-toggle{display:block;flex:0 0 96px}.mobile-layout-source-toggle .source-toggle{display:flex;flex-direction:row!important;align-items:stretch;gap:3px;padding:3px;border-radius:8px}.mobile-layout-source-toggle .source-toggle-btn{flex:1 1 0;width:auto;min-height:34px;padding:0;font-size:.68rem;line-height:1}.mobile-nav-toggle,.mobile-nav-close{display:inline-flex;align-items:center;justify-content:center;position:relative;flex-shrink:0;width:42px;height:42px;padding:0;border:1px solid var(--border-color);border-radius:10px;background:#ffffff0a;color:var(--text-main);box-shadow:none}.mobile-nav-toggle:hover,.mobile-nav-close:hover{background:#94a3b81f;transform:none;box-shadow:none}.mobile-nav-toggle span,.mobile-nav-close span{position:absolute;display:block;width:18px;height:2px;border-radius:999px;background:currentColor}.mobile-nav-toggle span:nth-child(1){transform:translateY(-6px)}.mobile-nav-toggle span:nth-child(3){transform:translateY(6px)}.mobile-nav-close span:first-child{transform:rotate(45deg)}.mobile-nav-close span:last-child{transform:rotate(-45deg)}.mobile-nav-backdrop{display:block;position:fixed;top:0;right:0;bottom:0;left:0;z-index:1100;border:0;padding:0;background:#0f172a8f;-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px)}.sidebar{width:min(84vw,320px);transform:translate(-100%);transition:transform .24s ease;z-index:1200;box-shadow:18px 0 36px #02061773}.sidebar.is-open{transform:translate(0)}.sidebar .label,.sidebar-footer .user-info,.sidebar-title-full{display:inline!important}.sidebar-title-short{display:none!important}.sidebar-header{position:sticky;top:0;z-index:2;padding:.75rem .75rem .65rem;margin-bottom:0;display:flex;align-items:center;justify-content:space-between;gap:8px;background:#0f172afa;-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px)}.sidebar-header h1{display:block;font-size:.95rem!important;text-align:left}.sidebar-header-main{flex:1 1 auto}.sidebar-nav{padding:.5rem 0}.sidebar-nav li{margin-bottom:.15rem}.sidebar-nav a{justify-content:flex-start;padding:.9rem 1rem;gap:12px}.sidebar-nav a.active{border-right:3px solid var(--primary-color);box-shadow:none}.sidebar-footer{padding:.9rem 1rem;justify-content:space-between}.main-content{margin-left:0;padding:calc(56px + .25rem) .25rem .25rem}body.mobile-nav-open{overflow:hidden}header.page-header{padding:.7rem .65rem;margin-bottom:.65rem;border-radius:.7rem;flex-direction:column;justify-content:flex-start!important;align-items:stretch!important;gap:.65rem}header.page-header h1{width:100%;font-size:1.08rem!important;line-height:1.35;text-align:left;overflow-wrap:anywhere}header.page-header>div{width:100%;min-width:0}header.page-header>div:empty{display:none}header.page-header>div:last-child{justify-content:flex-start!important;align-items:stretch!important;flex-wrap:wrap;gap:.5rem!important}header.page-header>div:last-child>button,header.page-header>div:last-child>.btn{width:100%!important;min-height:42px}.app-modal-overlay{align-items:flex-start!important;padding:calc(56px + .5rem) .5rem .75rem!important;overflow-y:auto;-webkit-overflow-scrolling:touch;box-sizing:border-box}.app-modal-panel{width:100%!important;max-width:none!important;max-height:calc(100vh - 72px)!important;overflow-y:auto;padding:1rem!important;border-radius:.75rem!important;box-sizing:border-box;text-align:left!important}.app-modal-panel h3{margin-bottom:.75rem!important;font-size:1rem!important;line-height:1.4}.app-modal-panel p{line-height:1.6}.app-modal-panel input,.app-modal-panel select,.app-modal-panel textarea,.app-modal-panel .custom-datepicker-wrapper{width:100%!important;min-width:0!important}.app-modal-actions{display:flex!important;flex-direction:column!important;align-items:stretch!important;justify-content:flex-start!important;gap:.6rem!important;margin-top:1rem!important;text-align:left!important}.app-modal-actions .btn,.app-modal-actions button{width:100%!important;min-height:42px!important}.project-filter-modal-panel{padding:0!important}.project-filter-modal-header{padding:.9rem 1rem!important;align-items:flex-start!important;gap:.75rem}.project-filter-modal-body{padding:1rem!important}.project-filter-row-card{padding:.8rem!important}.project-filter-condition-row-grid{grid-template-columns:28px minmax(0,1fr) 40px!important;gap:.6rem!important;align-items:start!important}.project-filter-condition-row-grid>select{grid-column:2;grid-row:1}.project-filter-row-remove{grid-column:3;grid-row:1}.project-filter-condition-control{grid-column:1 / -1;grid-row:2;min-width:0}.project-filter-condition-control>div,.project-filter-condition-control>div>div{display:grid!important;grid-template-columns:1fr!important;gap:.6rem!important}.project-filter-sort-row-grid{grid-template-columns:28px minmax(0,1fr) 88px 40px!important;gap:.6rem!important}.project-filter-modal-actions{padding:1rem!important;border-top:1px solid var(--border-color)}.project-filter-table-wrap{display:none}.project-filter-mobile-list{display:grid;padding:.75rem}.project-filter-mobile-message{color:var(--text-secondary);font-weight:700;text-align:center}.project-filter-mobile-card{cursor:grab}.project-filter-mobile-card-head{display:grid;grid-template-columns:32px minmax(0,1fr);gap:.6rem;align-items:center;padding-bottom:.75rem;border-bottom:1px solid rgba(148,163,184,.14)}.project-filter-mobile-drag{display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;padding:0;border:0;border-radius:8px;background:transparent;color:var(--text-secondary);box-shadow:none;cursor:grab}.project-filter-mobile-title{min-width:0;color:var(--text-main);font-size:.95rem;font-weight:800;line-height:1.45;overflow-wrap:anywhere}.project-filter-mobile-actions{display:grid;grid-template-columns:1fr;gap:.55rem;padding-top:.75rem}.project-filter-mobile-actions .btn,.project-filter-mobile-actions button{width:100%;min-height:42px}.master-maintenance-page .page-header{margin-bottom:.65rem}.master-tabs{gap:.35rem!important;margin:0 -.25rem .75rem!important;padding:0 .25rem .45rem;overflow-x:auto;scrollbar-width:none;-webkit-overflow-scrolling:touch}.master-tabs::-webkit-scrollbar{display:none}.master-tabs button{flex:0 0 auto;min-height:38px;padding:.45rem .7rem!important;border-radius:8px 8px 0 0;white-space:nowrap}.master-layout-grid{grid-template-columns:1fr!important;gap:.75rem!important}.master-content-card{width:100%;min-width:0;max-width:100%;box-sizing:border-box;min-height:0!important;padding:.75rem!important;border-radius:.7rem!important;overflow-x:visible!important}.master-data-table{display:none}.master-mobile-list{display:grid}.master-mobile-card{position:relative;width:100%;min-width:0;max-width:100%;overflow:hidden}.master-mobile-row{grid-template-columns:minmax(84px,104px) minmax(0,1fr)}.master-mobile-drag{margin-bottom:.4rem;color:var(--text-secondary);font-weight:800;letter-spacing:.08em;cursor:grab;-webkit-user-select:none;user-select:none}.master-mobile-actions{display:grid;grid-template-columns:1fr;gap:.55rem;padding-top:.75rem}.master-mobile-actions button{width:100%;max-width:100%;min-height:42px;white-space:normal!important;overflow-wrap:anywhere}.master-subtabs{flex-wrap:nowrap!important;gap:.4rem!important;margin:0 -.1rem .75rem!important;padding:0 .1rem .5rem!important;overflow-x:auto;scrollbar-width:none;-webkit-overflow-scrolling:touch}.master-subtabs::-webkit-scrollbar{display:none}.master-subtabs button{flex:0 0 auto;min-height:38px;padding:.45rem .7rem!important;white-space:nowrap}.master-danger-card-grid,.master-system-grid,.master-toggle-grid,.master-company-grid{grid-template-columns:1fr!important;gap:.75rem!important}.master-inline-form-row{display:grid!important;grid-template-columns:1fr!important;align-items:stretch!important;gap:.55rem!important}.master-inline-form-row input,.master-inline-form-row select,.master-inline-form-row button{width:100%!important}.master-tax-rate-row{grid-template-columns:1fr!important;gap:.65rem!important;padding:.75rem;border:1px solid rgba(148,163,184,.18);border-radius:10px;background:#ffffff06}.master-tax-rate-row button{width:100%;min-height:42px}.master-form-actions{align-items:stretch!important}.master-form-actions button{width:100%;min-height:42px;justify-content:center}.master-backup-header{flex-direction:column;align-items:stretch!important;gap:.75rem}.master-backup-header button{width:100%;justify-content:center}.master-backup-table,.master-backup-table thead,.master-backup-table tbody,.master-backup-table tr,.master-backup-table th,.master-backup-table td{display:block}.master-backup-table thead{display:none}.master-backup-table tr{padding:.75rem;margin-bottom:.75rem;border:1px solid rgba(148,163,184,.18)!important;border-radius:10px;background:#0f172a80}.master-backup-table td{display:grid!important;grid-template-columns:minmax(92px,112px) minmax(0,1fr);gap:.6rem;align-items:start;padding:.45rem 0!important;text-align:left!important;border-bottom:1px solid rgba(148,163,184,.12);word-break:break-word}.master-backup-table td:last-child{grid-template-columns:1fr;border-bottom:0}.master-backup-table td:before{color:var(--text-secondary);font-size:.8rem;font-weight:700}.master-backup-table td:nth-child(1):before{content:"ファイル名"}.master-backup-table td:nth-child(2):before{content:"作成日時"}.master-backup-table td:nth-child(3):before{content:"サイズ"}.master-backup-table td:nth-child(4):before{content:"操作"}.master-backup-table td:nth-child(4){display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));gap:.5rem!important}.master-backup-table td:nth-child(4):before{grid-column:1 / -1}.master-backup-table td:nth-child(4) button{width:100%;min-height:36px}.mobile-list-toolbar{display:grid!important;grid-template-columns:1fr;gap:.6rem!important;align-items:stretch!important;margin-bottom:.75rem!important}.mobile-list-search{width:100%!important;max-width:none!important;flex:1 1 auto!important}.mobile-list-search-input{width:100%!important;max-width:none!important;flex:1 1 auto!important;min-height:42px}.mobile-list-limit{width:100%;margin-left:0!important;justify-content:space-between}.mobile-list-limit select{min-width:120px}.mobile-list-pagination{flex-wrap:wrap;gap:10px!important}.mobile-list-pagination button{flex:1 1 120px}.mobile-filter-panel{display:grid!important;grid-template-columns:1fr;align-items:stretch!important;gap:.65rem!important}.mobile-filter-panel>div,.mobile-filter-panel input,.mobile-filter-panel select,.mobile-filter-panel .custom-datepicker-wrapper,.mobile-filter-panel button{width:100%!important;min-width:0!important}.mobile-filter-panel button{min-height:42px}.client-form-back-action{margin-bottom:.75rem!important}.client-form-back-action .btn,.client-form-back-action button{width:100%;min-height:42px}.client-form-card{padding:.65rem!important;border-radius:.7rem!important}.client-form-section{padding:.75rem!important;margin-bottom:.75rem!important;border-radius:.65rem!important}.client-form-section h3{margin-bottom:.8rem!important;padding-left:.65rem!important;font-size:1rem!important;line-height:1.35}.client-form-section label{line-height:1.45}.client-contact-section-header{flex-direction:column;align-items:stretch!important;gap:.65rem;margin-bottom:.85rem!important}.client-contact-section-header .btn,.client-contact-section-header button{width:100%;min-height:42px!important}.client-contact-card{padding:.7rem!important;border-radius:.65rem!important}.client-form-actions,.client-form-modal-actions{flex-direction:column;align-items:stretch!important;gap:.6rem!important;margin-top:1rem!important}.client-form-actions .btn,.client-form-actions button,.client-form-modal-actions .btn,.client-form-modal-actions button{width:100%;min-height:42px}.client-detail-page header.page-header h1 span{display:block;margin-left:0!important;margin-top:.25rem}.client-detail-back-action{margin-bottom:.75rem!important}.client-detail-back-action .btn,.client-detail-back-action button,.client-detail-modal-actions .btn,.client-detail-modal-actions button{width:100%;min-height:42px}.client-detail-modal-actions{flex-direction:column;gap:.6rem!important}.client-detail-info-grid,.client-detail-contact-grid{grid-template-columns:1fr!important;gap:.75rem!important;margin-bottom:.75rem!important}.client-detail-card{padding:.75rem!important;border-radius:.7rem!important;margin-bottom:.75rem!important}.client-detail-card h3{margin-bottom:.8rem!important;padding-left:.65rem!important;font-size:1rem!important;line-height:1.35}.client-detail-definition-grid,.client-detail-contact-fields{grid-template-columns:1fr!important;gap:.25rem!important}.client-detail-definition-grid>div:nth-child(odd),.client-detail-contact-fields>div:nth-child(odd){margin-top:.45rem;color:var(--text-secondary)!important}.client-detail-definition-grid>div:nth-child(2n),.client-detail-contact-fields>div:nth-child(2n){padding-bottom:.45rem;border-bottom:1px solid rgba(148,163,184,.12);word-break:break-word}.client-detail-contact-card{padding:.7rem!important}.client-detail-projects-section{margin-top:1rem!important;padding-top:1rem!important}.client-detail-projects-section h2{flex-direction:column;align-items:flex-start!important;gap:.45rem!important;margin-bottom:.9rem!important;font-size:1.05rem}.client-detail-project-table-section h4{line-height:1.45}.client-detail-project-table,.client-detail-project-table tbody,.client-detail-project-table tr,.client-detail-project-table td{display:block;width:100%!important}.client-detail-project-table thead{display:none}.client-detail-project-table tr{padding:.6rem 0;border-bottom:1px solid rgba(148,163,184,.18)!important}.client-detail-project-table td{display:grid;grid-template-columns:minmax(90px,34%) minmax(0,1fr);gap:.65rem;padding:.28rem 0!important;text-align:left!important;word-break:break-word}.client-detail-project-table td[data-align=right]{text-align:right!important}.client-detail-project-table td:before{content:attr(data-label);color:var(--text-secondary);font-weight:700;text-align:left}.expenses-period-control{width:100%;justify-content:space-between}.expenses-period-control .custom-datepicker-wrapper,.expenses-period-control input{width:150px!important}.expenses-category-section h3{margin-bottom:.75rem!important;padding:.65rem .75rem!important;font-size:1rem!important;line-height:1.35}.expenses-mobile-table,.expenses-mobile-table tbody,.expenses-mobile-table tr,.expenses-mobile-table td{display:block;width:100%!important}.expenses-mobile-table thead{display:none}.expenses-mobile-table tr{padding:.6rem 0;border-bottom:1px solid rgba(148,163,184,.18)!important}.expenses-mobile-table .expenses-subtotal-row{margin-top:.7rem;padding:.7rem .65rem;border-radius:.55rem;background:#94a3b81a!important}.expenses-mobile-table tr:last-child{border-bottom:0!important}.expenses-mobile-table td{display:grid;grid-template-columns:minmax(72px,30%) minmax(0,1fr);gap:.65rem;padding:.28rem 0!important;text-align:left!important;word-break:break-word}.expenses-mobile-table td[data-align=right]{text-align:right!important}.expenses-mobile-table td:before{content:attr(data-label);color:var(--text-secondary);font-weight:700;text-align:left}.expenses-mobile-table td[data-label=""]:before{display:none}.expenses-mobile-table .expenses-subtotal-row td{grid-template-columns:minmax(72px,30%) minmax(0,1fr);padding:.32rem 0!important}.expenses-mobile-table .expenses-subtotal-row td:first-child{text-align:left!important;color:var(--text-main)!important}.expenses-mobile-table .expenses-subtotal-row td:first-child:before{content:attr(data-label)}.expenses-mobile-table .expenses-subtotal-row td:last-child{border-top:1px solid rgba(148,163,184,.18);margin-top:.2rem;padding-top:.55rem!important}.expenses-mobile-table td button{width:100%!important;min-width:0!important;height:34px!important}.wide-report-period-control{width:100%;justify-content:space-between}.wide-report-period-control .custom-datepicker-wrapper,.wide-report-period-control input{width:170px!important}.wide-report-section{margin-bottom:1rem!important}.wide-report-section h2{margin-bottom:.65rem!important;padding-left:.65rem!important;font-size:1rem!important;line-height:1.4}.wide-report-scroll{border-radius:.65rem!important;box-shadow:none!important;-webkit-overflow-scrolling:touch}.wide-report-scroll:before{content:"横にスクロールできます";display:block;position:sticky;left:0;width:max-content;padding:.45rem .65rem;color:var(--text-secondary);font-size:.76rem;font-weight:700;background:#0f172aeb;border-bottom:1px solid rgba(148,163,184,.16);z-index:5}.wide-report-year-total-cell,.wide-report-right-placeholder-cell{position:static!important;right:auto!important;box-shadow:none!important}.closing-section{padding:.75rem!important}.closing-section h2{margin-bottom:.85rem!important;padding-left:.65rem!important;font-size:1rem!important;line-height:1.4}.closing-period-control{display:grid!important;grid-template-columns:1fr;width:100%!important;gap:.55rem!important;margin-bottom:1rem!important}.closing-period-control .custom-datepicker-wrapper,.closing-period-control input{width:100%!important}.closing-table-block{margin-bottom:1.25rem!important}.closing-table-block-header{flex-direction:column;align-items:stretch!important;gap:.55rem}.closing-table-block-header button{width:100%;min-height:40px;justify-content:center}.closing-table-scroll{border-radius:.65rem!important;box-shadow:none!important;-webkit-overflow-scrolling:touch}.closing-table-scroll:before{content:none}.closing-table-scroll table{display:none}.mobile-kv-list{display:grid;gap:12px;width:100%;min-width:0;max-width:100%;box-sizing:border-box}.mobile-kv-card{width:100%;min-width:0;max-width:100%;box-sizing:border-box;border:1px solid var(--border-color);border-radius:10px;background:#0f172a80;padding:10px;box-shadow:var(--shadow-sm)}.mobile-kv-card--total{background:#6366f11a;border-color:#818cf847}.mobile-kv-row{display:grid;grid-template-columns:minmax(92px,112px) minmax(0,1fr);gap:10px;align-items:start;min-width:0;padding:8px 0;border-bottom:1px solid rgba(148,163,184,.12)}.mobile-kv-row:last-child{border-bottom:0}.mobile-kv-label{min-width:0;color:var(--text-secondary);font-size:.8rem;font-weight:700;line-height:1.45;overflow-wrap:anywhere}.mobile-kv-value{min-width:0;max-width:100%;color:var(--text-main);font-size:.9rem;font-weight:600;line-height:1.5;white-space:normal;overflow-wrap:anywhere;word-break:break-word}.mobile-kv-value *{max-width:100%;white-space:normal!important;overflow-wrap:anywhere}.mobile-kv-value[data-align=right]{text-align:right}.mobile-kv-value[data-align=center]{text-align:left}.closing-mobile-cards{padding:10px}.project-form-back-action{margin-bottom:.75rem!important}.project-form-back-action .btn,.project-form-back-action button{width:100%;min-height:42px;justify-content:center}.project-form-card{padding:.65rem!important;border-radius:.7rem!important}.project-form-card form>h3{margin-bottom:.9rem!important;padding-left:.65rem!important;padding-bottom:.45rem!important;font-size:1rem!important;line-height:1.35}.project-form-page label{margin-bottom:.35rem!important;font-size:.92rem!important;line-height:1.45}.project-form-page input,.project-form-page select,.project-form-page textarea,.project-form-page .custom-datepicker-wrapper{width:100%!important;min-width:0!important}.project-form-page input,.project-form-page select{min-height:42px}.project-form-page textarea{min-height:82px}.project-form-actions{margin-top:1.25rem!important}.project-form-actions>button,.project-form-action-buttons,.project-form-action-buttons button{width:100%}.project-form-action-buttons{flex-direction:column;align-items:stretch!important;gap:.6rem!important}.project-form-actions button{min-height:44px;font-size:1rem!important}.project-history-section{margin-top:1rem!important;margin-bottom:1rem!important;padding:.65rem!important;border-radius:.7rem!important}.project-linked-estimates-list{padding:.75rem .6rem .6rem!important}.project-history-section h3{margin-bottom:.9rem!important;padding-left:.65rem!important;padding-bottom:.45rem!important;font-size:1rem!important;line-height:1.35}.project-history-group{padding:.75rem!important;border-radius:.65rem!important}.project-history-group-header{flex-direction:column;align-items:stretch!important;gap:.65rem}.project-history-group-header button{width:100%;min-height:42px}.project-history-table,.project-history-table tbody,.project-history-table tr,.project-history-table td{display:block;width:100%!important}.project-history-table thead{display:none}.project-history-table tr{padding:.6rem 0;border-bottom:1px solid rgba(148,163,184,.18)!important}.project-history-table tr:last-child{border-bottom:0!important}.project-history-table td{display:grid;grid-template-columns:minmax(72px,30%) minmax(0,1fr);gap:.65rem;padding:.28rem 0!important;text-align:left!important;word-break:break-word!important}.project-history-table td[data-align=right]{text-align:right!important}.project-history-table td:before{content:attr(data-label);color:var(--text-secondary);font-weight:700;text-align:left}.control-panel{padding:.55rem .6rem;gap:.65rem;border-radius:.6rem}.summary-section,.project-list-section{padding:.65rem;margin-bottom:.75rem;border-radius:.7rem}h3{margin-bottom:12px;padding-left:.45rem;font-size:1.05rem}.standard-data-table-mobile .standard-data-mobile-toolbar{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(88px,auto)!important;align-items:stretch!important;gap:10px!important;margin-bottom:14px!important}.standard-data-mobile-sort{min-width:0;display:contents;color:var(--text-secondary);font-size:.85rem;font-weight:700}.standard-data-mobile-sort>span{grid-column:1 / -1;line-height:1.35}.standard-data-mobile-sort select{grid-column:1;width:100%!important;min-height:42px!important;margin:0!important}.standard-data-mobile-sort-direction{grid-column:2;width:auto!important;min-width:88px;height:auto;min-height:42px!important;align-self:stretch!important;margin:0!important;padding-top:0!important;padding-bottom:0!important}.standard-data-table-mobile .standard-data-mobile-list{display:grid;gap:12px}.standard-data-mobile-row:first-child{padding-top:0}.standard-data-mobile-row:last-child{padding-bottom:0;border-bottom:0}.standard-data-mobile-value .btn,.standard-data-mobile-value button{width:100%}.standard-data-mobile-value .estimate-number-link{display:block;width:100%;text-align:left;white-space:normal;overflow-wrap:anywhere;word-break:break-word;line-height:1.45}.standard-data-mobile-value .primary-link{white-space:normal;overflow-wrap:anywhere;word-break:break-word;justify-content:flex-start}.standard-data-pagination{gap:10px!important}.standard-data-pagination button{flex:1 1 120px}.dashboard-page-header{display:flex!important;flex-direction:column;align-items:stretch!important;gap:.75rem!important}.dashboard-page-header-title h1{font-size:1.05rem!important;line-height:1.35}.dashboard-page-header-title h1 span{white-space:normal!important}.dashboard-page-header-controls{width:100%;flex-direction:column;align-items:stretch!important;gap:.5rem!important}.dashboard-page-header-controls .control-panel{width:100%}.dashboard-page-header-controls .control-panel select,.dashboard-page-header-controls .control-panel .custom-datepicker-wrapper{width:100%!important}.dashboard-page-header-actions{width:100%;display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:.5rem!important}.dashboard-page-header-actions button{width:100%!important}.summary-section--mobile table{display:none}.summary-mobile-card{padding:10px}.summary-mobile-card.is-accent{border-color:#818cf8a6;background:#6366f11f}.summary-mobile-card-header{display:flex;align-items:baseline;justify-content:space-between;gap:8px;margin-bottom:10px}.summary-mobile-card-header strong{font-size:.95rem}.summary-mobile-card-header span{color:var(--text-secondary);font-size:.72rem}.summary-mobile-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.summary-mobile-item{padding:8px;border-radius:8px;background:#ffffff08}.summary-mobile-item-label{color:var(--text-secondary);font-size:.72rem;margin-bottom:4px}.summary-mobile-item-value{font-size:.9rem;font-weight:700;line-height:1.35;word-break:break-word}.summary-mobile-item-value.is-negative{color:#ff8c8c}.summary-mobile-prev{margin-top:4px;color:#f97316;font-size:.72rem;font-weight:700}.summary-mobile-prev span{display:inline-block;border:1px solid #f97316;border-radius:4px;padding:0 4px;margin-right:5px;font-size:.65rem}.project-list-section--mobile h3{margin-bottom:14px!important}.project-list-mobile-total{padding:10px;margin-bottom:14px}.project-list-mobile-total-title{font-size:.9rem;font-weight:800;margin-bottom:8px}.project-list-mobile-total-grid,.project-list-mobile-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.project-list-mobile-total-grid--weighted{margin-top:8px;padding-top:8px;border-top:1px dashed var(--border-color)}.project-list-mobile-total-grid div,.project-list-mobile-metrics div{padding:8px;border-radius:8px;background:#ffffff08}.project-list-mobile-total-grid span,.project-list-mobile-metrics span{display:block;color:var(--text-secondary);font-size:.7rem;margin-bottom:4px}.project-list-mobile-total-grid strong,.project-list-mobile-metrics strong{display:block;font-size:.84rem;line-height:1.35;word-break:break-word}.project-list-mobile-group{margin-bottom:14px}.project-list-mobile-group-header{margin-bottom:10px;padding:8px 10px;border-left:4px solid var(--primary-color);background:#ffffff08;font-weight:700;font-size:.86rem}.project-list-mobile-empty{color:var(--text-secondary);font-size:.82rem;padding:2px 0 0}.project-list-mobile-card{padding:10px}.project-list-mobile-card-top{margin-bottom:8px}.project-list-mobile-card-id{color:var(--text-secondary);font-size:.72rem;margin-bottom:4px}.project-list-mobile-card-client,.project-list-mobile-card-name{display:block;font-size:.88rem;line-height:1.45}.project-list-mobile-card-name{margin-top:4px;color:#fff;text-decoration:underline}.projects-page-header{flex-direction:column;align-items:stretch!important;gap:.65rem!important}.projects-page-header h1{font-size:1.08rem!important}.projects-page-header-actions{width:100%;display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:.5rem!important}.projects-page-header-actions button{width:100%!important;height:40px!important;padding:0 10px!important}.projects-list-controls{margin-bottom:.75rem!important}.projects-list-controls-row{align-items:stretch!important;gap:.5rem!important}.projects-list-controls-row>button,.projects-saved-filter-controls,.projects-limit-control{flex:1 1 100%;width:100%}.projects-saved-filter-controls{margin-left:0!important;display:grid!important;grid-template-columns:1fr;gap:.5rem!important}.projects-saved-filter-controls select,.projects-saved-filter-controls button{width:100%}.projects-limit-control{margin-left:0!important;justify-content:space-between}.projects-limit-control select{width:130px!important}.projects-mobile-list{gap:12px}.projects-mobile-card-head{padding-bottom:8px;margin-bottom:8px;border-bottom:1px solid rgba(148,163,184,.14)}.projects-mobile-id{color:var(--text-secondary);font-size:.72rem;margin-bottom:4px}.projects-mobile-client,.projects-mobile-name{display:block;color:#fff;line-height:1.45}.projects-mobile-client{font-size:.84rem}.projects-mobile-name{margin-top:4px;font-size:.92rem;font-weight:700;text-decoration:underline}.projects-mobile-fields{display:block}.projects-mobile-field{min-width:0}.projects-mobile-field span{display:block;color:var(--text-secondary);font-size:.8rem;font-weight:700;line-height:1.45;margin-bottom:0}.projects-mobile-field strong{display:block;color:var(--text-main);font-size:.9rem;font-weight:600;line-height:1.5;word-break:break-word}.projects-pagination{flex-wrap:wrap;gap:10px!important}.projects-pagination button{flex:1 1 120px}.estimate-page .page-header{align-items:stretch!important;gap:.7rem}.estimate-header-meta{gap:8px}.estimate-source-chip,.estimate-number-chip{padding:6px 9px;font-size:.76rem}.estimate-document-tabs{gap:0;overflow-x:auto;margin-bottom:.75rem;padding-bottom:2px;scrollbar-width:none}.estimate-document-tabs::-webkit-scrollbar{display:none}.estimate-document-tabs button{flex:0 0 auto;padding:9px 12px;font-size:.86rem}.estimate-status-banner{margin-bottom:.75rem;padding:10px 12px;border-radius:8px;font-size:.86rem}.estimate-form-grid{gap:12px}.estimate-field{gap:6px}.estimate-field span{font-size:.8rem}.estimate-field input,.estimate-field select,.estimate-field textarea{min-height:42px;padding:.55rem .7rem;font-size:.92rem}.estimate-field textarea{min-height:74px}.estimate-client-create-button{width:100%;height:42px}.estimate-items-header{align-items:center}.estimate-item-card{padding:54px 10px 10px;border-radius:10px}.estimate-drag-handle,.estimate-delete-button,.estimate-copy-button{top:10px;width:36px;height:36px;transform:none}.estimate-drag-handle{left:10px}.estimate-drag-handle:hover{transform:none}.estimate-delete-button{right:10px}.estimate-copy-button{right:52px}.estimate-item-grid{gap:10px}.estimate-items-summary{justify-content:stretch;align-items:stretch;gap:8px;padding-top:12px}.estimate-items-summary span,.estimate-items-summary strong{display:flex;justify-content:space-between;gap:8px;width:100%;padding:8px 10px;border-radius:8px;background:#ffffff08;font-size:.9rem}.estimate-action-bar{align-items:stretch;gap:.75rem;margin-bottom:1rem}.estimate-action-buttons{width:100%;display:grid;grid-template-columns:1fr;gap:.55rem}.estimate-action-buttons .btn{width:100%;min-height:42px;white-space:normal}.estimate-preview-shell{padding:.5rem}.estimate-preview-frame{min-height:560px;height:82vh;border-radius:8px}.purchase-order-settings{padding:12px;border-radius:10px;margin-bottom:.75rem}.purchase-order-settings-grid{grid-template-columns:1fr;gap:10px}}@media print{body{background:#fff;color:#111827}.sidebar,.no-print{display:none!important}.print-only{display:block!important}.estimate-page>.estimate-preview-shell{padding:0!important;margin:0!important;background:#fff!important;border:none!important;box-shadow:none!important}.estimate-page>.estimate-preview-shell.project-list-section{padding:0!important;margin:0!important;border:none!important;border-radius:0!important;background:#fff!important;box-shadow:none!important;overflow:visible!important}.main-content{width:100%!important;margin-left:0!important;max-width:none!important;padding:0!important}.estimate-preview-shell,.estimate-page,.estimate-printable{margin:0!important;padding:0!important;background:#fff!important;border:none!important;box-shadow:none!important}.estimate-printable{max-width:none;border-radius:0}.estimate-preview-table th{background:#f8fafc!important;-webkit-print-color-adjust:exact;print-color-adjust:exact}.estimate-total-highlight{background:#fff!important;border-color:#111827!important;-webkit-print-color-adjust:exact;print-color-adjust:exact}.estimate-guidance-block,.estimate-preview-table th{-webkit-print-color-adjust:exact;print-color-adjust:exact}}.spinner{width:50px;height:50px;border:5px solid rgba(99,102,241,.1);border-top-color:#6366f1;border-radius:50%;animation:spin 1s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}@keyframes fadeIn{0%{opacity:0;transform:translateY(-10px)}to{opacity:1;transform:translateY(0)}}.nowrap-cell{white-space:nowrap!important}.narrow-cell{width:1%;white-space:nowrap}.primary-link{color:#fff;text-decoration:underline;transition:opacity .2s}.project-link{color:#fff;text-decoration:underline;font-weight:700;transition:opacity .2s}.project-link:hover,.primary-link:hover{opacity:.7}.primary-link:hover{opacity:.8}.currency-cell{text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums}.id-cell{white-space:nowrap;text-align:left}.probability-cell{white-space:nowrap;text-align:center}.projects-table-scroll{overflow-x:auto;overflow-y:visible;position:relative}.projects-list-section{overflow:visible}.projects-table thead th{position:sticky;top:0;z-index:30;background-color:#0f172a;box-shadow:0 1px 0 var(--border-color),0 8px 14px #0000002e}.projects-table-floating-header{position:fixed;top:0;z-index:80;overflow:hidden;pointer-events:auto;border-left:1px solid var(--border-color);border-right:1px solid var(--border-color);box-shadow:0 10px 20px #0000003d}.projects-table-floating-header .projects-table{max-width:none}.projects-table-floating-header .projects-table thead th{position:static}.standard-table-scroll{overflow-x:auto;overflow-y:visible;position:relative}.standard-list-section{overflow:visible}.standard-data-table{max-width:none}.standard-data-table thead th{position:sticky;top:0;z-index:30;background-color:#0f172a;box-shadow:0 1px 0 var(--border-color),0 8px 14px #0000002e}.standard-table-floating-header{position:fixed;top:0;z-index:80;overflow:hidden;pointer-events:auto;border-left:1px solid var(--border-color);border-right:1px solid var(--border-color);box-shadow:0 10px 20px #0000003d}.standard-table-floating-header .standard-data-table thead th{position:static}
