/* Owner-approved estimate register. */
.estimate-register-layout .workspace-main { background: #f6f8f7; color: #20352a; }
.register-header { margin: -20px -24px 0; padding: 20px 24px 24px; background: #0c171d; color: #f1f4f3; }
.register-topbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 32px; font-size: 15px; color: #c3cec8; }
.register-header button, .register-header input, .register-header select { font: inherit; }
.register-header svg { width: 16px; height: 16px; flex-shrink: 0; stroke-width: 1.7; }
.register-header .register-refresh { display: inline-flex; align-items: center; gap: 8px; min-height: 32px; padding: 6px 10px; border: 1px solid #273841; border-radius: 5px; background: #101e25; color: #f1f4f3; font-size: 12px; }
.register-refresh svg { color: #97e83e; }
.register-title { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: 31px 0 25px; }
.register-title h1 { margin: 0; color: #f1f4f3; font-size: 27px; font-weight: 650; letter-spacing: -.6px; line-height: 1.2; }
.register-title p { margin: 9px 0 0; color: #a7b7ad; font-size: 13px; }
.register-count { padding: 5px 10px; border: 1px solid #315035; border-radius: 5px; background: #193520; color: #c2f39d; font-size: 12px; white-space: nowrap; }
.register-tools { display: flex; align-items: center; gap: 10px; }
.register-search { display: flex; align-items: center; flex: 1; gap: 9px; height: 38px; padding: 0 11px; border: 1px solid #31463e; border-radius: 5px; background: #101e25; color: #a7b7ad; }
.register-header .register-search input { width: 100%; min-width: 0; height: 32px; border: 0; padding: 0; background: transparent; color: #f1f4f3; font-size: 13px; box-shadow: none; outline: none; }
.register-search input::placeholder { color: #a7b7ad; opacity: 1; }
.register-filter { display: flex; position: relative; width: 185px; height: 38px; border: 1px solid #31463e; border-radius: 5px; background: #101e25; color: #d9e5dc; }
.register-header .register-filter select { appearance: none; width: 100%; min-width: 0; height: 36px; padding: 0 34px 0 11px; border: 0; border-radius: 5px; background: transparent; color: #d9e5dc; font-size: 12px; cursor: pointer; }
.register-filter select option { background: #101e25; color: #f1f4f3; }
.register-filter > svg { position: absolute; right: 10px; top: 10px; color: #a7b7ad; pointer-events: none; }
.register-search:focus-within, .register-filter:focus-within { outline: 2px solid #97e83e; outline-offset: 2px; }
.register-content { background: #fff; margin: 0; }
.register-table-scroll { overflow-x: auto; }
.register-table { border-collapse: collapse; table-layout: fixed; width: 100%; min-width: 1000px; font-size: 13px; font-variant-numeric: tabular-nums; }
.register-table .col-date { width: 106px; }.register-table .col-name { width: auto; }.register-table .col-person { width: 110px; }.register-table .col-money { width: 125px; }.register-table .col-margin { width: 112px; }.register-table .col-profit { width: 120px; }.register-table .col-modified { width: 112px; }.register-table .col-open { width: 44px; }
.workspace-main .register-table th { height: 63px; padding: 12px 9px; border: 0; border-bottom: 1px solid #dce5de; background: #edf2ee; color: #617567; font-size: 11px; font-weight: 500; line-height: 1.5; text-align: left; white-space: normal; }
.register-table th:first-child, .register-table td:first-child { padding-left: 14px; }
.register-table th.number, .register-table td.number { text-align: right; }
.workspace-main .register-table th button { display: flex; align-items: center; gap: 7px; border: 0; background: none; padding: 0; color: #2e5637; text-align: left; font: inherit; font-weight: 600; line-height: inherit; }
.register-table th button svg { width: 13px; height: 13px; color: #497d3e; }
.workspace-main .register-table td { height: 87px; border: 0; border-bottom: 1px solid #e2e9e3; background: #fff; padding: 13px 9px; color: #344c3c; vertical-align: middle; }
.register-table tr[data-register-id] { cursor: pointer; }
.workspace-main .register-table tr[data-register-id]:hover td { background: #f4f9ef; }
.register-table tr[data-register-id]:focus-visible { outline: 2px solid #4caf2f; outline-offset: -2px; }
.register-date strong { font-size: 12px; font-weight: 500; color: #3a5142; }
.register-date small { display: block; margin-top: 6px; color: #7b8b80; font-size: 11px; }
.register-table td.register-name button { color: #263e2d; font-size: 14px; font-weight: 600; text-decoration: none; line-height: 1.4; }
.register-name small { display: block; margin-top: 6px; color: #7b8b80; font-size: 11px; }
.register-person { display: flex; align-items: center; gap: 8px; font-size: 12px; }
.register-avatar { display: inline-flex; align-items: center; justify-content: center; width: 27px; height: 27px; border: 1px solid #d7e5d0; border-radius: 50%; background: #edf4e9; color: #4d783c; font-size: 11px; }
.register-table td.register-client { font-weight: 650; color: #234c2c; white-space: nowrap; }
.register-table td.register-margin { color: #315e30; font-weight: 600; }
.register-table td.register-profit { color: #315e30; white-space: nowrap; }
.register-open svg { width: 17px; height: 17px; color: #77926f; }
.register-footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 13px 14px; background: #fbfcfa; border-bottom: 1px solid #e2e9e3; color: #7b8b80; font-size: 11px; }
.register-footer span:last-child { display: inline-flex; align-items: center; gap: 6px; }
.register-footer svg { width: 13px; height: 13px; }
.workspace-main .register-table td.register-empty { height: 140px; padding: 35px; text-align: center; color: #758477; }
.register-empty strong { display: block; color: #405c46; font-size: 15px; font-weight: 600; margin-bottom: 8px; }
.estimate-register-layout .sr-only { position: absolute; left: 0; top: 0; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
@media (max-width: 1200px) { .register-header { margin: -16px -16px 0; padding: 16px 16px 24px; }.register-table .col-name { width: 170px; }.register-table .col-person { width: 120px; } }
@media (max-width: 900px) { .register-tools { flex-wrap: wrap; }.register-search { flex-basis: 100%; }.register-filter { flex: 1; }.register-footer { flex-wrap: wrap; }.register-title h1 { font-size: 25px; } }

.estimate-register-layout .workspace-main { background-image: none; }
.estimate-register-layout .register-name button { border: 0; padding: 0; background: transparent; text-align: left; cursor: pointer; font-family: inherit; }
.estimate-register-layout .register-name button:focus-visible, .estimate-register-layout .register-refresh:focus-visible { outline: 2px solid #97e83e; outline-offset: 3px; }
.register-feedback { padding: 12px 14px; margin: 0; background: #fff5d9; color: #775218; font-size: 13px; line-height: 1.5; }
.register-person > span:last-child { overflow-wrap: anywhere; }
.register-name button { overflow-wrap: anywhere; }
.register-refresh:disabled { opacity: .55; cursor: wait; }

.register-create { margin: 20px 0; padding: 16px; border: 1px solid #dce5de; background: #fff; color: #344c3c; font-size: 13px; }
.register-create summary { cursor: pointer; font-weight: 600; }
.register-create form { margin-top: 16px; }

/* Explicit per-estimate removal uses the existing API and confirmation. */
.workspace-main .register-table .register-delete-button { display:inline-flex; align-items:center; justify-content:center; width:30px; height:30px; min-height:30px; padding:5px; border:1px solid #d8e2d9; border-radius:5px; background:transparent; cursor:pointer; }
.register-delete-button svg { width:15px; height:15px; color:#8b4640; }
.workspace-main .register-table .register-delete-button:hover { background:#fff0ed; border-color:#c98980; }
.register-delete-button:focus-visible, .register-confirm-actions button:focus-visible { outline:2px solid #4caf2f; outline-offset:2px; }
.register-delete-button:disabled { opacity:.45; cursor:wait; }
.workspace-main .register-table .register-confirm-row td { height:auto; padding:12px 14px; background:#fff8f5; }
.register-delete-confirm { display:flex; align-items:center; justify-content:space-between; gap:16px; font-size:12px; line-height:1.5; white-space:normal; }
.register-delete-confirm strong { color:#673b32; font-size:13px; }
.register-delete-confirm p { margin:4px 0 0; color:#6c736c; }
.register-confirm-actions { display:flex; gap:8px; flex-shrink:0; }
.workspace-main .register-table .register-confirm-actions button { min-height:34px; padding:6px 12px; border:1px solid #cfdacf; border-radius:5px; background:#fff; color:#344c3c; font:inherit; cursor:pointer; }
.workspace-main .register-table .register-confirm-actions button.register-delete-submit { background:#9b3e32; color:#fff; border-color:#9b3e32; }
.register-confirm-actions button:disabled { opacity:.55; cursor:wait; }
.register-delete-confirm .register-delete-error { color:#9b3025; }
.register-notice { margin:0; padding:10px 14px; color:#285a2e; background:#edf7e8; font-size:13px; }

@media(max-width:700px) { .register-delete-confirm { flex-direction:column; align-items:flex-start; position:sticky; left:12px; width:calc(100vw - 62px); max-width:100%; } .register-confirm-actions { flex-wrap:wrap; } }
