:root{--color-bg:#fafaf9;--color-surface:#fff;--color-text:#1c1917;--color-text-muted:#57534e;--color-border:#e7e5e4;--color-accent:#2563eb;--color-accent-hover:#1d4ed8;--color-accent-muted:#2563eb1f;--color-danger:#b91c1c;--color-danger-bg:#fef2f2;--color-success:#15803d;--color-success-muted:#15803d24;--color-canceled-fg:#92400e;--color-canceled-bg:#92400e1f;--font-sans:"DM Sans", system-ui, sans-serif;--font-mono:ui-monospace, monospace;--text-xs:.75rem;--text-sm:.8125rem;--text-base:.9375rem;--text-lg:1.125rem;--text-xl:1.375rem;--space-1:.25rem;--space-2:.5rem;--space-3:.75rem;--space-4:1rem;--space-5:1.25rem;--space-6:1.5rem;--space-8:2rem;--space-10:2.5rem;--radius-sm:6px;--radius-md:8px;--shadow-sm:0 1px 2px #1c19170f;--focus-ring:0 0 0 2px var(--color-surface), 0 0 0 4px var(--color-accent);--color-shell-bg:#292524;--color-shell-bg-hover:#3f3a36;--color-shell-text:#fafaf9;--color-shell-muted:#a8a29e;--color-shell-border:#44403c;--app-header-height:48px;--color-fill-muted:#f5f5f4;--color-control-border:#d6d3d1;--color-placeholder:#a8a29e;--color-disabled-bg:#a8a29e;--color-success-bg:#f0fdf4;--color-success-border:#bbf7d0;--color-error-bg:#fef2f2;--color-error-border:#fecaca;--color-warning-bg:#fffbeb;--color-warning-fg:#b45309;--color-warning-border:#fde68a;--color-info-bg:#2563eb1a;--color-info-border:#2563eb47;--color-info-fg:var(--color-accent-hover);--color-purple-bg:#f5f3ff;--color-purple-fg:#6d28d9;--color-purple-border:#ddd6fe;--lightningcss-light:initial;--lightningcss-dark: ;--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light}*{box-sizing:border-box}html{-webkit-font-smoothing:antialiased;height:100%;font-size:16px}body{height:100%;font-family:var(--font-sans);font-size:var(--text-base);color:var(--color-text);background:var(--color-bg);margin:0;font-weight:400;line-height:1.5;overflow:hidden}#root{height:100%;min-height:0}button,input,select,textarea{font:inherit}button{cursor:pointer}.app-shell{flex-direction:column;height:100%;min-height:0;display:flex;overflow:hidden}.top-header,.app-shell-header{z-index:200;height:var(--app-header-height);background:var(--color-shell-bg);border-bottom:1px solid var(--color-shell-border);box-shadow:var(--shadow-sm);padding:0 var(--space-4);flex-shrink:0;justify-content:space-between;align-items:center;display:flex;position:sticky;top:0}.header-left,.header-right{align-items:center;gap:12px;display:flex}.header-left{flex:auto;min-width:0}.header-left>nav{flex:1;min-width:0}.header-right{z-index:1;position:relative}.logo-block{color:var(--color-shell-text);border-radius:var(--radius-sm);padding:var(--space-2) 0;font-size:var(--text-base);background:0 0;flex-shrink:0;font-weight:600}.breadcrumb-list{gap:var(--space-2);color:var(--color-shell-muted);font-size:var(--text-sm);flex-wrap:nowrap;align-items:center;min-width:0;margin:0;padding:0;list-style:none;display:flex}.top-header .breadcrumb-list>li{text-overflow:ellipsis;white-space:nowrap;min-width:0;overflow:hidden}.top-header .breadcrumb-list>li:nth-child(2n){flex:none;min-width:auto;overflow:visible}.top-header .breadcrumb-list>li:nth-child(odd):not(:first-child){flex:1;min-width:0}.top-header .breadcrumb-list .breadcrumb-link{text-overflow:ellipsis;white-space:nowrap;max-width:100%;display:block;overflow:hidden}.breadcrumb-link{color:var(--color-accent);font:inherit;font-size:var(--text-sm);cursor:pointer;background:0 0;border:none;padding:0;font-weight:500;text-decoration:none}.breadcrumb-link:hover{color:var(--color-accent);filter:brightness(1.15);text-decoration:underline}.breadcrumb-link:focus-visible{box-shadow:var(--focus-ring);border-radius:var(--radius-sm);outline:none}.top-header .user-role-pill{background:var(--color-shell-bg-hover);color:var(--color-shell-muted);border:1px solid var(--color-shell-border)}.top-header .readonly-badge{border-color:#fcd34d73}.avatar-button{border:1px solid var(--color-shell-border);background:var(--color-shell-bg-hover);width:32px;height:32px;color:var(--color-shell-text);font-weight:600;font-size:var(--text-sm);border-radius:999px}.avatar-button:hover{filter:brightness(1.08)}.avatar-button:focus-visible,.menu-button:focus-visible,.ghost-button:focus-visible,.nav-item:focus-visible,.user-menu button:focus-visible{box-shadow:var(--focus-ring);outline:none}.user-menu{border:1px solid var(--color-border);border-radius:var(--radius-md);background:var(--color-surface);z-index:210;width:220px;margin:0;padding:6px;list-style:none;position:absolute;top:calc(100% + 6px);right:0;box-shadow:0 12px 24px #1c19171f}.user-menu button{text-align:left;border-radius:var(--radius-sm);width:100%;color:var(--color-text);background:0 0;border:none;padding:10px}.user-menu button:hover{background:var(--color-accent-muted)}.layout-body,.app-shell-body{flex:1;min-height:0;display:flex;overflow:hidden}.sidebar,.app-shell-sidebar{border-right:1px solid var(--color-border);background:var(--color-surface);width:216px;padding:var(--space-5) var(--space-4);flex-direction:column;flex-shrink:0;align-self:stretch;transition:width .18s;display:flex;overflow:hidden}.sidebar.collapsed,.app-shell-sidebar.collapsed{width:84px}.sidebar-header{margin-bottom:var(--space-3);flex-shrink:0;justify-content:space-between;align-items:center;display:flex}.sidebar-header h2{font-size:var(--text-xs);letter-spacing:.06em;text-transform:uppercase;color:var(--color-text-muted);margin:0;font-weight:600}.sidebar-title-toggle{cursor:pointer;outline-offset:2px;border-radius:8px}.ghost-button{border:1px solid var(--color-shell-border);border-radius:var(--radius-sm);background:var(--color-shell-bg-hover);color:var(--color-shell-text);padding:4px 8px}.sidebar-nav{flex-direction:column;flex:1;min-height:0;display:flex;overflow:hidden}.nav-list{gap:var(--space-1);flex-direction:column;margin:0;padding:0;list-style:none;display:flex}.nav-list--footer{padding-top:var(--space-4);border-top:1px solid var(--color-border);margin-top:auto}.nav-item{width:100%;padding:var(--space-2) var(--space-3);padding-left:calc(var(--space-3) - 2px);border-radius:var(--radius-sm);align-items:center;gap:var(--space-3);color:var(--color-text);font-size:var(--text-sm);text-align:left;cursor:pointer;background:0 0;border:none;border-left:3px solid #0000;margin-left:-1px;font-weight:400;transition:background .14s,color .14s,border-color .14s;display:flex}.nav-item:hover{background:var(--color-bg);color:var(--color-text)}.nav-item.active{color:var(--color-accent-hover);background:var(--color-accent-muted);border-left-color:var(--color-accent);font-weight:600}.nav-item.active:hover{background:var(--color-accent-muted);filter:brightness(.98)}.nav-icon{border-radius:var(--radius-sm);background:var(--color-border);width:24px;height:24px;color:var(--color-text-muted);font-weight:600;font-size:var(--text-xs);flex-shrink:0;justify-content:center;align-items:center;display:inline-flex}.nav-item.active .nav-icon{background:var(--color-accent-muted);color:var(--color-accent-hover)}.main-content,.app-shell-main{min-width:0;min-height:0;padding:var(--space-8);background:var(--color-bg);flex:1;overflow-y:auto}.top-header .menu-button{border:1px solid var(--color-shell-border);border-radius:var(--radius-sm);background:var(--color-shell-bg-hover);color:var(--color-shell-text);font-size:var(--text-sm);font-weight:500}.top-header .menu-button--icon{justify-content:center;align-items:center;min-width:40px;min-height:36px;padding:8px 10px;font-size:0;display:inline-flex}.top-header .menu-button__hamburger{flex-shrink:0;display:block}.top-header .menu-button:hover{filter:brightness(1.08)}.sidebar .ghost-button{border:1px solid var(--color-border);background:var(--color-surface);color:var(--color-text)}.toast-stack{bottom:max(16px, env(safe-area-inset-bottom,0px));z-index:1100;pointer-events:none;flex-direction:column;align-items:stretch;gap:8px;width:min(420px,100vw - 32px);display:flex;position:fixed;left:50%;transform:translate(-50%)}.toast-stack .toast{pointer-events:auto}.toast{border:1px solid #0000;border-radius:10px;justify-content:space-between;align-items:flex-start;gap:12px;padding:12px 14px;font-size:.92rem;line-height:1.4;animation:.2s ease-out toast-in;display:flex;box-shadow:0 10px 30px #1c19172e}@keyframes toast-in{0%{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}.toast__text{flex:1;min-width:0}.toast__dismiss{color:inherit;opacity:.65;cursor:pointer;background:0 0;border:none;border-radius:6px;flex-shrink:0;margin:-4px -6px -4px 0;padding:4px 8px;font-size:1.25rem;line-height:1}.toast__dismiss:hover{opacity:1}.toast__dismiss:focus-visible{outline-offset:2px;outline:2px solid}.toast--success{background:var(--color-success-bg);border-color:var(--color-success-border);color:var(--color-success)}.toast--error{background:var(--color-danger-bg);border-color:var(--color-error-border);color:var(--color-danger)}.toast--loading{background:var(--color-surface);border-color:var(--color-border);color:var(--color-text-muted)}.view-heading{flex-wrap:wrap;justify-content:space-between;align-items:flex-start;gap:12px 16px;margin:0 0 12px;display:flex}.view-heading__title{font-size:var(--text-xl);color:var(--color-text);letter-spacing:-.02em;flex:auto;min-width:0;margin:0;font-weight:650}.view-heading-toolbar{flex-shrink:0;align-items:center;gap:8px;display:flex}.view-heading--reports{align-items:center}.view-heading--health-records-list{align-items:flex-start}.view-heading--health-records-list .health-records-tablist--below-title{flex-basis:100%;width:100%;margin-bottom:0;margin-right:0}.view-heading-toolbar--reports-search{flex:0 auto}.reports-header-search{border:1px solid var(--color-control-border);background:var(--color-surface);border-radius:8px;width:min(360px,100%);min-width:min(220px,100%);padding:8px 12px;font-size:.95rem}.reports-header-search:focus{outline:2px solid var(--color-accent-muted);outline-offset:1px;border-color:var(--color-accent)}@media (width<=960px){.reports-header-search,.report-tile-select,.report-tile-field .litter-parent-search__combobox input[type=search]{font-size:1rem}}.view-header-overflow{position:relative}.view-header-overflow__trigger{border:1px solid var(--color-control-border);background:var(--color-surface);width:36px;height:36px;color:var(--color-text-muted);border-radius:8px;justify-content:center;align-items:center;padding:0;font-size:1.35rem;line-height:1;display:inline-flex}.view-header-overflow__trigger:hover{background:var(--color-fill-muted)}.view-header-overflow__trigger:focus-visible{outline:2px solid var(--color-accent);outline-offset:2px}.view-header-overflow__menu{z-index:35;border:1px solid var(--color-control-border);background:var(--color-surface);border-radius:10px;min-width:200px;margin:0;padding:6px;list-style:none;position:absolute;top:calc(100% + 4px);right:0;box-shadow:0 12px 24px #1c191724}.view-header-overflow__item{text-align:left;width:100%;font:inherit;color:var(--color-text-muted);cursor:pointer;background:0 0;border:none;border-radius:8px;padding:10px 12px;font-size:.95rem}.view-header-overflow__item:hover:not(:disabled){background:var(--color-accent-muted)}.view-header-overflow__item:disabled{opacity:.5;cursor:not-allowed}.view-header-overflow__item--danger{color:var(--color-danger)}.view-header-overflow__item--danger:hover:not(:disabled){background:var(--color-danger-bg)}.view-container{border:1px solid var(--color-border);background:var(--color-surface);border-radius:14px;min-width:0;max-width:100%;padding:16px;box-shadow:0 4px 12px #1c19170d}.view-container:not(.view-container--reports) section{min-width:0;max-width:100%}.view-container--reports{box-shadow:none;background:0 0;border:none;border-radius:0;min-width:0;max-width:100%;padding:0}h1{margin-top:0}.content-grid{grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:12px;display:grid}.metric-card{border:1px solid var(--color-border);background:var(--color-bg);border-radius:12px;padding:12px}.metric-card h3{margin:0 0 8px;font-size:.95rem}.metric-card strong{font-size:1.5rem;display:block}.metric-card span{color:var(--color-text-muted);font-size:.9rem}.dog-offspring-dashboard{border-top:1px solid var(--color-border);margin-top:20px;padding-top:16px}.dog-offspring-dashboard__title{margin:0 0 4px;font-size:1.05rem}.dog-offspring-dashboard__subtitle{color:var(--color-text-muted);margin:0 0 14px;font-size:.88rem;line-height:1.35}.dog-offspring-dashboard__body{grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:start;gap:20px;display:grid}@media (width<=720px){.dog-offspring-dashboard__body{grid-template-columns:1fr}}.dog-offspring-dashboard__chart-col{flex-wrap:wrap;align-items:center;gap:16px 20px;display:flex}.dog-offspring-donut{width:120px;height:120px;box-shadow:inset 0 0 0 1px var(--color-border);border-radius:50%;flex-shrink:0;position:relative}.dog-offspring-donut__hole{background:var(--color-bg);box-shadow:0 0 0 1px var(--color-border);border-radius:50%;flex-direction:column;justify-content:center;align-items:center;display:flex;position:absolute;inset:28px}.dog-offspring-donut__num{font-size:1.35rem;font-weight:700;line-height:1.1}.dog-offspring-donut__lbl{color:var(--color-text-muted);text-transform:uppercase;letter-spacing:.04em;font-size:.72rem}.dog-offspring-legend{color:var(--color-text-muted);margin:0;padding:0;font-size:.88rem;line-height:1.5;list-style:none}.dog-offspring-legend li{align-items:center;gap:8px;display:flex}.dog-offspring-legend__swatch{border-radius:2px;flex-shrink:0;width:10px;height:10px}.dog-offspring-legend__swatch--available{background:var(--color-success)}.dog-offspring-legend__swatch--sold{background:var(--color-text-muted)}.dog-offspring-legend__swatch--retained{background:var(--color-purple-fg)}.dog-offspring-legend__swatch--died{background:var(--color-danger)}.dog-offspring-dashboard__metrics-col{gap:14px;display:grid}.dog-offspring-metric{flex-direction:column;gap:4px;display:flex}.dog-offspring-metric--full{grid-column:1/-1}.dog-offspring-metric__label{color:var(--color-text-muted);text-transform:uppercase;letter-spacing:.03em;font-size:.82rem}.dog-offspring-metric__value{font-size:1.2rem;font-weight:600}.dog-offspring-metric__hint{color:var(--color-text-muted);font-size:.82rem}.dog-offspring-death-meter__track{background:var(--color-fill-muted);border:1px solid var(--color-border);border-radius:999px;height:8px;overflow:hidden}.dog-offspring-death-meter__fill{background:var(--color-danger);border-radius:999px;min-width:0;height:100%;transition:width .25s}.dog-offspring-legend__swatch--herd-active{background:var(--color-success)}.dog-offspring-legend__swatch--herd-sold{background:var(--color-text-muted)}.dog-offspring-legend__swatch--herd-retired{background:var(--color-purple-fg)}.dog-offspring-legend__swatch--herd-died{background:var(--color-danger)}.dog-offspring-legend__swatch--invoice-draft{background:var(--color-text-muted)}.dog-offspring-legend__swatch--invoice-sent{background:var(--color-accent-hover)}.dog-offspring-legend__swatch--invoice-partial{background:var(--color-warning-fg)}.dog-offspring-legend__swatch--invoice-paid{background:var(--color-success)}.dog-offspring-legend__swatch--invoice-void{background:var(--color-danger)}.customer-dashboard-collection-fill{background:var(--color-success)}.customer-dashboard-recent{border-top:1px solid var(--color-border);margin-top:20px;padding-top:16px}.customer-dashboard-recent__title{color:var(--color-text);margin:0 0 10px;font-size:.95rem;font-weight:600}.customer-dashboard-recent__table{border-collapse:collapse;width:100%;font-size:.88rem}.customer-dashboard-recent__table th,.customer-dashboard-recent__table td{text-align:left;border-bottom:1px solid var(--color-border);vertical-align:middle;padding:8px 10px 8px 0}.customer-dashboard-recent__table th{color:var(--color-text-muted);font-size:.8rem;font-weight:500}.customer-dashboard-recent__num{text-align:right;font-variant-numeric:tabular-nums}.dogs-herd-dashboard{border:1px solid var(--color-border);border-radius:var(--radius-md);background:var(--color-bg-elevated,var(--color-bg));margin-top:20px;margin-bottom:0;padding:16px 18px}.dogs-herd-dashboard+.dogs-herd-dashboard{margin-top:16px}.dogs-litter-dashboard__head{flex-wrap:wrap;justify-content:space-between;align-items:flex-end;gap:12px 16px;margin-bottom:16px;display:flex}.dogs-litter-dashboard__title{margin-bottom:0}.dogs-litter-dashboard__window{color:var(--color-text-muted);align-items:center;gap:8px;font-size:.88rem;display:flex}.dogs-litter-dashboard__window-label{white-space:nowrap}.dogs-litter-dashboard__window-select{font:inherit;border-radius:var(--radius-sm,6px);border:1px solid var(--color-border);background:var(--color-bg-elevated,var(--color-bg));color:var(--color-text);min-width:8.5rem;padding:6px 10px;font-size:.88rem}.dogs-herd-dashboard__title{margin:0 0 4px;font-size:1.05rem}.dogs-herd-dashboard__subtitle{color:var(--color-text-muted);margin:0 0 16px;font-size:.85rem;line-height:1.35}.dogs-herd-dashboard__body{grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:start;gap:20px 24px;display:grid}@media (width<=800px){.dogs-herd-dashboard__body{grid-template-columns:1fr}}.dogs-herd-dashboard__metrics{gap:14px;display:grid}.dogs-herd-metric{flex-direction:column;gap:4px;display:flex}.dogs-herd-metric--hero .dogs-herd-metric__value{font-size:1.75rem}.dogs-herd-metric--full{grid-column:1/-1}.dogs-herd-metric__label{color:var(--color-text-muted);text-transform:uppercase;letter-spacing:.03em;font-size:.82rem}.dogs-herd-metric__value{font-size:1.2rem;font-weight:600}.dogs-herd-metric__hint{color:var(--color-text-muted);font-size:.82rem}.dogs-herd-sex-bar{background:var(--color-fill-muted);border:1px solid var(--color-border);border-radius:999px;height:10px;display:flex;overflow:hidden}.dogs-herd-sex-bar__male{background:var(--color-accent-hover);min-width:0;transition:width .2s}.dogs-herd-sex-bar__female{background:var(--color-purple-fg);min-width:0;transition:width .2s}.dogs-herd-sex-bar__empty{flex:1;min-height:8px}.dogs-herd-sex-legend{color:var(--color-text-muted);flex-wrap:wrap;gap:12px 20px;margin:8px 0 0;padding:0;font-size:.88rem;list-style:none;display:flex}.dogs-herd-sex-legend__swatch{vertical-align:middle;border-radius:2px;width:10px;height:10px;margin-right:6px;display:inline-block}.dogs-herd-sex-legend__swatch--male{background:var(--color-accent-hover)}.dogs-herd-sex-legend__swatch--female{background:var(--color-purple-fg)}.dogs-herd-sex-legend__pct{color:var(--color-text-muted)}.dogs-herd-dashboard__chart-col{flex-wrap:wrap;align-items:center;gap:16px 20px;display:flex}.dogs-herd-dashboard__chart-head{flex:100%;margin-bottom:-4px}.dogs-herd-status-donut{width:128px;height:128px}.dogs-herd-status-legend{flex:1;min-width:160px}.dogs-herd-dashboard__empty-chart{color:var(--color-text-muted);margin:0;font-size:.88rem}.split-panel{grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:12px;display:grid}.stack-layout{gap:12px;display:grid}.single-panel{display:grid}.reports-detail{min-width:0;max-width:100%}.shot-record-report-doc{box-sizing:border-box;min-width:0;max-width:100%}.card{border:1px solid var(--color-border);background:var(--color-surface);border-radius:12px;padding:12px}.panel h3{margin-top:0}@media (width<=960px){table.list-data-table{table-layout:fixed;width:100%}table.list-data-table>thead>tr>th,table.list-data-table>tbody>tr>td{overflow-wrap:anywhere;word-break:break-word;min-width:0}table.list-data-table .table-actions-col,table.list-data-table .table-actions-cell--menu{vertical-align:middle;overflow:visible}table.list-data-table .table-actions-cell{white-space:nowrap;word-break:normal}table.list-data-table .table-actions-col{white-space:nowrap;width:44px}table.list-data-table .status-badge{white-space:nowrap}.invoice-detail .puppy-table-lite{table-layout:fixed;width:100%}.invoice-detail .puppy-table-lite>thead>tr>th,.invoice-detail .puppy-table-lite>tbody>tr>td{overflow-wrap:anywhere;word-break:break-word;min-width:0}.invoice-detail .puppy-table-lite .table-actions-col,.invoice-detail .puppy-table-lite .table-actions-cell--menu{vertical-align:middle;overflow:visible}.invoice-detail .puppy-table-lite .table-actions-cell{white-space:nowrap;word-break:normal}.invoice-detail .puppy-table-lite .table-actions-col{white-space:nowrap;width:44px}}table{border-collapse:collapse;width:100%;font-size:.92rem}th,td{border-bottom:1px solid var(--color-border);text-align:left;padding:8px}tbody tr:hover{background:var(--color-fill-muted)}.clickable-row{cursor:pointer}.clickable-row:hover{background:var(--color-accent-muted)!important}.clickable-row:focus-visible{outline:2px solid var(--color-accent);outline-offset:-2px}.health-records-tablist{border-bottom:1px solid var(--color-border);margin-bottom:var(--space-4);gap:0;display:flex}.health-records-tab{padding:var(--space-2) var(--space-4);color:var(--color-text-muted);font-weight:600;font-size:var(--text-sm);cursor:pointer;background:0 0;border:none;border-bottom:2px solid #0000;border-radius:0;margin-bottom:-1px}.health-records-tab:hover{color:var(--color-text)}.health-records-tab--active{color:var(--color-accent);border-bottom-color:var(--color-accent)}.health-records-table-fit{width:100%;min-width:0}table .hr-col-hidden{display:none!important}.health-records-expand-col{text-align:center;vertical-align:middle;width:2.5rem}button.health-records-expand-btn{border:1px solid var(--color-control-border);background:var(--color-surface);width:36px;height:36px;color:var(--color-text-muted);cursor:pointer;border-radius:8px;justify-content:center;align-items:center;padding:0;font-size:.75rem;line-height:1;display:inline-flex}button.health-records-expand-btn:hover{background:var(--color-fill-muted);color:var(--color-text)}.health-records-puppy-subrow__name{padding-left:1.75rem}.row-selected{background:var(--color-accent-muted)}.status-badge{text-transform:capitalize;border:1px solid #0000;border-radius:999px;padding:2px 10px;font-size:.82rem;font-weight:600;display:inline-block}.status-available,.status-active{background:var(--color-success-bg);color:var(--color-success);border-color:var(--color-success-border)}.status-sold,.status-retained{background:var(--color-fill-muted);color:var(--color-text-muted);border-color:var(--color-control-border)}.status-retired{background:var(--color-purple-bg);color:var(--color-purple-fg);border-color:var(--color-purple-border)}.status-died{background:var(--color-danger-bg);color:var(--color-danger);border-color:var(--color-error-border)}.status-draft,.status-empty{background:var(--color-fill-muted);color:var(--color-text-muted);border-color:var(--color-control-border)}.status-sent{background:var(--color-info-bg);color:var(--color-accent-hover);border-color:var(--color-info-border)}.status-partial{background:var(--color-warning-bg);color:var(--color-warning-fg);border-color:var(--color-warning-border)}.status-paid{background:var(--color-success-bg);color:var(--color-success);border-color:var(--color-success-border)}.status-void{background:var(--color-danger-bg);color:var(--color-danger);border-color:var(--color-error-border)}.status-whelped{background:var(--color-info-bg);color:var(--color-accent-hover);border-color:var(--color-info-border)}.status-weaned{background:var(--color-success-bg);color:var(--color-success);border-color:var(--color-success-border)}.action-bar{flex-wrap:wrap;justify-content:flex-end;align-items:center;gap:12px;margin-bottom:12px;display:flex}.action-bar--list-tools{justify-content:flex-start}.action-bar--list-tools .table-search{flex:200px;max-width:360px}.action-bar--list-tools>.btn-primary{margin-left:auto}.action-bar--detail{justify-content:flex-end}.table-search{border:1px solid var(--color-control-border);background:var(--color-surface);border-radius:8px;min-width:0;padding:9px 12px;font-size:.92rem}.table-search::placeholder{color:var(--color-placeholder)}.table-search:focus{outline:2px solid var(--color-accent);outline-offset:1px;border-color:var(--color-accent)}.th-sort{font:inherit;color:inherit;cursor:pointer;text-align:left;background:0 0;border:none;align-items:center;gap:6px;width:100%;margin:0;padding:0;font-weight:600;display:inline-flex}.th-sort:hover{color:var(--color-accent)}.th-sort:focus-visible{outline:2px solid var(--color-accent);outline-offset:2px;border-radius:4px}.th-sort-indicator{opacity:.9;font-size:.75rem;font-weight:700}.th-sort-indicator--secondary{opacity:.65;font-size:.65rem;font-weight:600}.inline-label{align-items:center;gap:8px;margin-right:auto;font-size:.92rem;display:flex}.inline-label select{border:1px solid var(--color-control-border);border-radius:8px;padding:6px 8px}.btn-primary{background:var(--color-accent);color:var(--color-surface);border:none;border-radius:8px;padding:9px 16px;font-size:.92rem;font-weight:600}.btn-primary:hover{filter:brightness(1.06)}.btn-primary:disabled{background:var(--color-disabled-bg);cursor:not-allowed}.btn-secondary{border:1px solid var(--color-control-border);background:var(--color-surface);color:var(--color-text-muted);border-radius:8px;padding:9px 16px;font-size:.92rem;font-weight:600}.btn-secondary:hover{background:var(--color-fill-muted)}.btn-danger{border:1px solid var(--color-error-border);background:var(--color-danger-bg);color:var(--color-danger);cursor:pointer;border-radius:8px;padding:9px 16px;font-size:.92rem;font-weight:600}.btn-danger:hover{background:var(--color-danger-bg);border-color:var(--color-error-border)}form label,.panel>label{gap:6px;margin-bottom:10px;display:grid}input,select,textarea{border:1px solid var(--color-control-border);background:var(--color-surface);border-radius:8px;padding:8px 10px}input:focus-visible,select:focus-visible,textarea:focus-visible{border-color:var(--color-accent);outline:2px solid var(--color-accent-muted)}form button[type=submit]{background:var(--color-accent);color:var(--color-surface);border:none;border-radius:8px;padding:9px 12px;font-weight:600}.help-text{color:var(--color-text-muted);margin:0 0 14px;font-size:.92rem;line-height:1.45}.field-hint{color:var(--color-text-muted);font-size:.85rem;font-weight:400}.table-actions-cell{white-space:nowrap}.table-actions-cell--menu{text-align:right;vertical-align:middle;overflow:visible}.table-row-overflow__menu{z-index:60}.table-row-overflow__menu--portal{left:auto}.table-row-overflow__trigger{flex-shrink:0}.table-actions-cell .btn-secondary{margin-bottom:4px;margin-right:8px}.table-actions-cell .btn-secondary:last-child{margin-right:0}.detail-form{width:100%;max-width:none}.litter-form-name--prefill-locked{background-color:var(--color-fill-muted);color:var(--color-text-muted);cursor:not-allowed}.detail-readonly{width:100%;margin-bottom:8px}.form-grid{grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:0 16px;display:grid}.form-grid-break{border:0;grid-column:1/-1;height:0;margin:12px 0 0;padding:0;overflow:hidden}.litter-parent-search{flex-direction:column;gap:6px;min-width:0;display:flex}.litter-parent-search__label-row{justify-content:space-between;align-items:baseline;gap:8px;display:flex}.litter-parent-search__label-row .breadcrumb-link{font-size:.88rem}.litter-parent-search__input--selected{color:var(--color-text);font-weight:600}.litter-parent-search__combobox{width:100%;position:relative}.litter-parent-search__panel{z-index:30;background:var(--color-fill-muted);border-radius:8px;position:absolute;top:calc(100% + 4px);left:0;right:0;box-shadow:0 8px 24px #1c19171f}.litter-parent-search__list{max-height:180px}.health-targets-columns{grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:16px 24px;display:grid}.health-targets-fieldset{border:1px solid var(--color-border);border-radius:8px;min-width:0;margin:0;padding:10px 12px 12px}.health-targets-fieldset legend{padding:0 6px;font-size:.9rem;font-weight:600}.health-targets-list{margin:0;padding:0;list-style:none}.health-targets-list li{margin-bottom:6px}.health-target-label{cursor:pointer;align-items:flex-start;gap:8px;font-weight:400;display:flex}.health-target-chips{flex-wrap:wrap;align-items:center;gap:8px;margin-bottom:12px;display:flex}.health-target-chip{background:var(--color-accent-muted);border:1px solid #2563eb59;border-radius:999px;align-items:center;gap:6px;max-width:100%;padding:5px 6px 5px 10px;font-size:.88rem;display:inline-flex}.health-target-chip-remove{cursor:pointer;opacity:.65;color:inherit;background:0 0;border:none;flex-shrink:0;padding:0 6px;font-size:1.15rem;line-height:1}.health-target-chip-remove:hover{opacity:1}.health-target-search-block{flex-direction:column;gap:8px;display:flex}.health-target-search-block label{flex-direction:column;gap:4px;font-size:.9rem;display:flex}.health-target-search-section{text-transform:uppercase;letter-spacing:.04em;color:var(--color-text-muted);background:var(--color-fill-muted);border-bottom:1px solid var(--color-border);padding:6px 12px 4px;font-size:.78rem;font-weight:600}.health-target-search__dropdown-list{max-height:min(320px,55vh)}.text-muted{opacity:.78;font-size:.92em}.detail-actions{flex-wrap:wrap;align-items:center;gap:10px;margin-top:16px;display:flex}.detail-actions .push-end{margin-left:auto}.report-subheading{margin-top:20px;margin-bottom:10px;font-size:1rem;font-weight:600}.detail-info-grid{background:var(--color-bg);border:1px solid var(--color-border);border-radius:10px;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:12px;margin-bottom:20px;padding:16px;display:grid}.info-item{flex-direction:column;gap:4px;display:flex}.info-label{color:var(--color-text-muted);text-transform:uppercase;letter-spacing:.04em;font-size:.8rem;font-weight:600}.info-value{color:var(--color-text);font-size:.95rem}.related-section{border-top:1px solid var(--color-border);margin-top:24px;padding-top:16px}.related-section h4{margin-top:0}.shot-record-section{border-top:1px solid var(--color-border);margin-top:20px;padding-top:16px}.shot-record-section h4{margin-top:0}.reports-hub{background:0 0;padding:20px;display:block}.reports-tile-grid{grid-template-columns:repeat(auto-fill,minmax(min(100%,300px),1fr));align-items:start;gap:20px;display:grid}.report-tile{background:var(--color-surface);border:1px solid #a8a29e73;border-radius:14px;flex-direction:column;min-height:0;padding:20px 22px;display:flex;box-shadow:0 1px 2px #1c19170d,0 10px 28px #1c19171a}.report-tile-title{margin:0 0 8px;font-size:1.08rem;font-weight:650}.report-tile-desc{color:var(--color-text-muted);margin:0 0 4px;font-size:.92rem;line-height:1.45}.report-tile-config{flex-direction:column;gap:18px;margin-top:12px;display:flex}.report-tile-field{flex-direction:column;align-items:stretch;gap:8px;display:flex}.report-tile-field-label{color:var(--color-text-muted);margin:0;font-size:.875rem;font-weight:600;line-height:1.35}label.report-tile-field-label{cursor:pointer}.report-tile-field-label-row{color:var(--color-text-muted);justify-content:space-between;align-items:baseline;gap:8px;margin:0;font-size:.875rem;font-weight:600;line-height:1.35;display:flex}.report-tile-field-label-row .breadcrumb-link{font-size:.88rem}.report-tile-inline-options{flex-wrap:wrap;gap:12px;display:flex}.report-tile-select{border:1px solid var(--color-control-border);background:var(--color-surface);border-radius:8px;width:100%;max-width:100%;padding:8px 10px;font-size:.95rem}.report-tile-select:focus{outline:2px solid var(--color-accent-muted);outline-offset:1px}.report-tile-result{border-top:1px solid var(--color-border);margin-top:18px;padding-top:16px}.report-tile-generate{align-self:flex-start}.report-tile-field .litter-parent-search__combobox input[type=search]{box-sizing:border-box;border:1px solid var(--color-control-border);background:var(--color-surface);border-radius:8px;width:100%;max-width:100%;padding:8px 10px;font-size:.95rem}.report-tile-field .litter-parent-search__combobox input[type=search]:focus-visible{outline:2px solid var(--color-accent-muted);outline-offset:1px}.report-tile-field .report-tile-multi-select-chips{margin-bottom:0}.reports-by-status-print-title{display:none}.shot-report-header{border-bottom:1px solid var(--color-border);margin-bottom:20px;padding-bottom:16px}.shot-report-title{margin:0 0 6px;font-size:1.25rem;font-weight:700}.shot-report-subtitle{color:var(--color-text-muted);margin:0;font-size:.92rem}.shot-report-intro{max-width:40rem;margin:10px 0 0}.shot-report-block{border-top:1px solid var(--color-border);margin-top:20px;padding-top:16px}.shot-report-block:first-of-type{border-top:none;margin-top:0;padding-top:0}.shot-report-block--sub{margin-top:24px}.shot-report-block-title{margin:0 0 10px;font-size:1.05rem}.shot-report-litter-line{margin:0;font-size:1rem}.shot-report-meta{grid-template-columns:auto 1fr;gap:4px 20px;margin:0 0 12px;font-size:.95rem;display:grid}.shot-report-meta dt{color:var(--color-text-muted);margin:0;font-weight:500}.shot-report-meta dd{min-width:0;margin:0}.shot-report-events-heading{margin:16px 0 8px;font-size:.98rem;font-weight:600}.shot-report-table-wrap{-webkit-overflow-scrolling:touch;max-width:100%;overflow-x:auto}.shot-report-table{border-collapse:collapse;width:100%;font-size:.88rem}.shot-report-table th,.shot-report-table td{border:1px solid var(--color-border);text-align:left;vertical-align:top;overflow-wrap:anywhere;word-break:break-word;padding:8px 10px}.shot-report-table th{background:var(--color-fill-muted);font-weight:600}.shot-report-empty{color:var(--color-text-muted);margin:0;font-size:.92rem}.shot-report-fallback-pre{-webkit-overflow-scrolling:touch;max-width:100%;margin-top:12px;overflow-x:auto}.medical-report-customer-doc{border:1px solid var(--color-border);background:var(--color-surface);border-radius:4px;max-width:720px;margin-left:auto;margin-right:auto;padding:28px 32px 32px;box-shadow:0 1px 3px #1c19170f}.medical-report-doc-accent{background:var(--color-accent);border-radius:2px;height:4px;margin:0 -32px 20px}.medical-report-customer-header{border-bottom:1px solid var(--color-border);margin-bottom:8px;padding-bottom:4px}.medical-report-org{letter-spacing:.12em;text-transform:uppercase;color:var(--color-text-muted);margin:0 0 10px;font-size:.7rem;font-weight:600}.medical-report-doc-kind{color:var(--color-text-muted);margin:0 0 4px;font-size:.8rem;font-weight:600}.medical-report-doc-title{letter-spacing:-.02em;color:var(--color-text);margin:0 0 6px;font-size:1.5rem;font-weight:700;line-height:1.25}.medical-report-subject-line{color:var(--color-text);margin:0 0 4px;font-size:1.05rem;font-weight:600}.medical-report-generated{color:var(--color-text-muted);margin:0 0 18px;font-size:.88rem}.medical-report-intro{max-width:42rem;color:var(--color-text-muted);margin:0 0 24px;font-size:.95rem;line-height:1.55}.medical-report-customer-doc .shot-report-block:first-of-type{border-top:none;margin-top:0;padding-top:0}.shot-report-section-heading{letter-spacing:.06em;text-transform:uppercase;color:var(--color-text-muted);margin:0 0 10px;font-size:.78rem;font-weight:700}.medical-report-customer-doc .shot-report-block+.shot-report-block{margin-top:22px}.shot-report-meta--boxed{background:var(--color-fill-muted);border:1px solid var(--color-border);border-radius:4px;grid-template-columns:120px 1fr;gap:8px 16px;padding:14px 16px}.shot-report-meta--boxed dt{color:var(--color-text-muted);font-weight:600}.medical-report-customer-doc .shot-report-meta--boxed dt{font-weight:500}.medical-report-customer-doc .shot-report-table tbody tr:nth-child(2n){background:var(--color-bg)}.medical-report-customer-doc .shot-report-table th{background:var(--color-fill-muted);color:var(--color-text-muted);letter-spacing:.02em;font-size:.8rem}.medical-report-customer-footer{border-top:1px solid var(--color-border);color:var(--color-text-muted);max-width:42rem;margin-top:28px;padding-top:16px;font-size:.78rem;line-height:1.55}.medical-report-customer-footer p{margin:0}@media (width<=520px){.shot-report-meta--boxed{grid-template-columns:1fr}.medical-report-customer-doc{padding:20px 16px 24px}.medical-report-doc-accent{margin-left:-16px;margin-right:-16px}}@media print{@page{margin:12mm}html,body{background:var(--color-surface)!important;height:auto!important;overflow:visible!important}#root{height:auto!important;overflow:visible!important}.top-header,.app-shell-header,.sidebar,.app-shell-sidebar,.sidebar-backdrop,.toast-stack,.view-heading,.no-print{display:none!important}.layout-body,.app-shell-body{display:block!important}.main-content,.app-shell-main{background:var(--color-surface)!important;overflow:visible!important}.view-container{box-shadow:none!important;border:none!important;border-radius:0!important;padding:0!important}.view-container--reports,.reports-hub{background:0 0!important;padding:0!important}.shot-record-report-doc{box-shadow:none!important;border:none!important;padding:0!important}.shot-report-table-wrap{max-width:none!important;overflow:visible!important}.reports-by-status-print-title{margin:0 0 8px;display:block!important}.shot-report-table,.shot-report-block{break-inside:avoid}.medical-report-customer-doc+.medical-report-customer-doc,.invoice-report-doc-block+.invoice-report-doc-block{break-before:page;margin-top:0!important}.invoice-report-table--readonly{break-inside:avoid}}.multi-select-chips{flex-wrap:wrap;gap:6px;margin-bottom:6px;display:flex}.multi-select-chip{background:var(--color-accent-muted);color:var(--color-text);border-radius:4px;align-items:center;gap:4px;padding:2px 6px 2px 8px;font-size:.82rem;font-weight:500;line-height:1.4;display:inline-flex}.multi-select-chip__remove{all:unset;cursor:pointer;color:var(--color-text-muted);padding:0 2px;font-size:1rem;line-height:1}.multi-select-chip__remove:hover{color:var(--color-text)}.empty-state{text-align:center;color:var(--color-text-muted);padding:32px 16px;font-size:.95rem}.timeline{margin:0;padding-left:18px}pre{white-space:pre-wrap;background:var(--color-fill-muted);border:1px solid var(--color-border);border-radius:8px;padding:10px;font-size:.86rem}.stacked-form{margin-top:10px}.inline-fields{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;display:grid}.modal-backdrop{z-index:100;background:#1c191773;justify-content:center;align-items:center;padding:16px;display:flex;position:fixed;inset:0}.modal-panel{background:var(--color-surface);border:1px solid var(--color-border);border-radius:12px;width:100%;max-width:480px;padding:20px 22px;box-shadow:0 20px 50px #1c191733}.modal-panel--puppy{max-width:560px;max-height:min(90vh,880px);overflow-y:auto}.modal-panel__header{justify-content:space-between;align-items:flex-start;gap:12px;margin-bottom:12px;display:flex}.modal-panel__header h3{flex:1;min-width:0;margin:0}.modal-panel__header-tools{flex-shrink:0;align-items:center;gap:8px;display:flex}.modal-panel__header-btn{padding:6px 12px;font-size:.9rem}.modal-close{cursor:pointer;color:var(--color-text-muted);background:0 0;border:none;flex-shrink:0;padding:0 4px;font-size:1.5rem;line-height:1}.modal-close:hover{color:var(--color-text)}.modal-panel h3{margin:0 0 4px;font-size:1.15rem}.modal-actions{flex-wrap:wrap;justify-content:flex-end;gap:10px;margin-top:18px;display:flex}.mark-sold-sale-fields{flex-direction:column;gap:10px;margin-top:12px;display:flex}.mark-sold-sale-fields label{grid-template-columns:1fr auto;align-items:center;gap:12px;font-size:.95rem;display:grid}.mark-sold-sale-fields__label{text-align:left;justify-self:start}.mark-sold-sale-fields label input{justify-self:end;width:auto;min-width:0;max-width:100%}.mark-sold-invoice-fieldset{border:1px solid var(--color-border);border-radius:8px;margin:14px 0 0;padding:12px 14px 14px}.mark-sold-legend{padding:0 6px;font-size:.9rem;font-weight:600}.mark-sold-radio{cursor:pointer;align-items:flex-start;gap:8px;margin-top:8px;font-size:.95rem;display:flex}.mark-sold-radio:first-of-type{margin-top:4px}.mark-sold-radio input{margin-top:3px}.mark-sold-search-block{flex-direction:column;gap:8px;margin:8px 0 12px 1.5rem;display:flex}.mark-sold-search-block label{flex-direction:column;gap:4px;font-size:.9rem;display:flex}.mark-sold-customer-field{min-width:0}.mark-sold-customer-dropdown-list{max-height:min(240px,50vh)}.mark-sold-invoice-field{min-width:0}.mark-sold-invoice-dropdown-list{max-height:min(240px,50vh)}.mark-sold-search-scroll{border:1px solid var(--color-border);background:var(--color-fill-muted);border-radius:8px;max-height:200px;overflow-y:auto}.mark-sold-search-empty{margin:0;padding:10px 12px;font-size:.9rem}.mark-sold-search-option{text-align:left;border:none;border-bottom:1px solid var(--color-border);background:var(--color-fill-muted);width:100%;color:inherit;font:inherit;cursor:pointer;flex-direction:column;align-items:flex-start;gap:2px;padding:8px 12px;display:flex}.mark-sold-search-option:last-child{border-bottom:none}.mark-sold-search-option:hover{background:var(--color-accent-muted)}.mark-sold-search-option--selected{background:var(--color-accent-muted);font-weight:600}.mark-sold-search-option__primary{font-size:.95rem}.mark-sold-search-option__meta{color:var(--color-text-muted);font-size:.82rem}.puppy-invoice-detail{flex-direction:column;align-items:flex-start;gap:4px;display:flex}.puppy-invoice-detail__meta{color:var(--color-text-muted);font-size:.9rem}.puppy-table-hint{margin:0 0 10px;font-size:.9rem}.puppy-table-lite{width:100%}.table-actions-col{text-align:right;width:44px}.customers-table{table-layout:fixed;width:100%}.customers-table th:first-child,.customers-table td:first-child,.customers-table th:nth-child(2),.customers-table td:nth-child(2){text-overflow:ellipsis;white-space:nowrap;width:22%;min-width:0;overflow:hidden}.customers-table .customers-table__col-email{min-width:0}.customers-table__email-text{white-space:nowrap;min-width:0;display:block;overflow:hidden;-webkit-mask-image:linear-gradient(90deg,#000 0% calc(100% - 1.25rem),#0000 100%);mask-image:linear-gradient(90deg,#000 0% calc(100% - 1.25rem),#0000 100%)}.customers-table .table-actions-col,.customers-table .table-actions-cell--menu{box-sizing:border-box;width:48px;min-width:48px;max-width:48px;padding-left:4px;padding-right:6px}.invoices-table-wrap{-webkit-overflow-scrolling:touch;min-width:0;max-width:100%;overflow-x:auto}.invoices-table{table-layout:fixed;width:100%;min-width:0}.invoices-table__colgroup-data{width:calc(25% - 12px)}.invoices-table__colgroup-actions{width:48px}.invoices-table .invoices-table__col-customer{min-width:0}.invoices-table__customer-text{white-space:nowrap;min-width:0;display:block;overflow:hidden;-webkit-mask-image:linear-gradient(90deg,#000 0% calc(100% - 1.25rem),#0000 100%);mask-image:linear-gradient(90deg,#000 0% calc(100% - 1.25rem),#0000 100%)}.invoices-table th:nth-child(2),.invoices-table td:nth-child(2),.invoices-table th:nth-child(3),.invoices-table td:nth-child(3),.invoices-table th:nth-child(4),.invoices-table td:nth-child(4){text-overflow:ellipsis;white-space:nowrap;min-width:0;overflow:hidden}.invoices-table .table-actions-col,.invoices-table .table-actions-cell--menu{box-sizing:border-box;width:48px;min-width:48px;max-width:48px;padding-left:4px;padding-right:6px}.litters-table-wrap{-webkit-overflow-scrolling:touch;min-width:0;max-width:100%;overflow-x:auto}.litters-table{table-layout:fixed;width:100%;min-width:0}.litters-table__colgroup-data{width:calc(25% - 12px)}.litters-table .litters-table__th-whelp--narrow{display:none}@media (width<=960px){.litters-table col.litters-table__colgroup-dam{display:none}.litters-table col.litters-table__colgroup-data:not(.litters-table__colgroup-dam){width:calc(33.3333% - 16px)}.litters-table th.litters-table__dam-col,.litters-table td.litters-table__dam-col,.litters-table .litters-table__th-whelp--wide{display:none}.litters-table .litters-table__th-whelp--narrow{display:inline}}.litters-table__colgroup-actions{width:48px}.litters-table__cell-text{white-space:nowrap;min-width:0;display:block;overflow:hidden;-webkit-mask-image:linear-gradient(90deg,#000 0% calc(100% - 1.25rem),#0000 100%);mask-image:linear-gradient(90deg,#000 0% calc(100% - 1.25rem),#0000 100%)}.litters-table th:first-child,.litters-table td:first-child,.litters-table th:nth-child(2),.litters-table td:nth-child(2),.litters-table th:nth-child(3),.litters-table td:nth-child(3),.litters-table th:nth-child(4),.litters-table td:nth-child(4){text-overflow:ellipsis;white-space:nowrap;min-width:0;overflow:hidden}.litters-table th:nth-child(2),.litters-table td:nth-child(2){white-space:normal;text-overflow:clip;vertical-align:top;overflow:visible}.litters-table td:nth-child(2) .litters-table__cell-text{white-space:normal;overflow-wrap:break-word;word-wrap:break-word;overflow:visible;-webkit-mask-image:none;mask-image:none}.litters-table .table-actions-col,.litters-table .table-actions-cell--menu{box-sizing:border-box;width:48px;min-width:48px;max-width:48px;padding-left:4px;padding-right:6px}.input-with-action{align-items:stretch;gap:6px;display:flex}.input-with-action input{flex:1;min-width:0}.btn-scan{border:1px solid var(--color-control-border);background:var(--color-surface);width:38px;color:var(--color-text-muted);border-radius:8px;flex-shrink:0;justify-content:center;align-items:center;transition:background .12s,color .12s;display:inline-flex}.btn-scan:hover{background:var(--color-accent-muted);color:var(--color-accent)}.barcode-scanner-overlay{z-index:1000;background:#1c191799;justify-content:center;align-items:center;padding:16px;display:flex;position:fixed;inset:0}.barcode-scanner-modal{background:var(--color-surface);border-radius:12px;width:100%;max-width:420px;overflow:hidden;box-shadow:0 20px 60px #1c19174d}.barcode-scanner-header{border-bottom:1px solid var(--color-border);justify-content:space-between;align-items:center;padding:14px 16px;font-size:1rem;font-weight:600;display:flex}.btn-close{color:var(--color-text-muted);background:0 0;border:none;border-radius:6px;padding:2px 6px;font-size:1.4rem;line-height:1}.btn-close:hover{background:var(--color-fill-muted);color:var(--color-text)}.barcode-scanner-viewport{background:#000;width:100%;min-height:260px}.barcode-scanner-hint{text-align:center;color:var(--color-text-muted);margin:0;padding:10px 16px 14px;font-size:.85rem}.menu-button{border:1px solid var(--color-border);border-radius:var(--radius-sm);background:var(--color-surface);padding:6px 10px}.sidebar-backdrop{inset:var(--app-header-height) 0 0 0;z-index:39;background:#1c191773;border:none;position:fixed}@media (width<=960px){.sidebar.mobile,.app-shell-sidebar.mobile{top:var(--app-header-height);z-index:40;width:280px;transition:left .18s;position:fixed;bottom:0;left:-280px;box-shadow:0 16px 40px #1c191740}.sidebar.mobile.open,.app-shell-sidebar.mobile.open{left:0}.breadcrumb-list{font-size:.85rem}.main-content{padding:12px}.reports-detail .shot-report-title{font-size:1.12rem}.reports-detail .shot-report-subtitle,.reports-detail .shot-report-intro{font-size:.88rem}.form-grid{grid-template-columns:1fr}.detail-info-grid{grid-template-columns:1fr 1fr}}.auth-gate{background:var(--color-bg);min-height:100%;color:var(--color-text);justify-content:center;align-items:center;display:flex}.auth-gate--loading{font-size:1rem}.login-page{box-sizing:border-box;-webkit-overflow-scrolling:touch;background:linear-gradient(160deg, #f5f5f4 0%, var(--color-bg) 50%, #e7e5e4 100%);justify-content:center;align-items:center;height:100%;min-height:0;padding:24px;display:flex;overflow-y:auto}.login-card{background:var(--color-surface);border-radius:var(--radius-md);border:1px solid var(--color-border);width:100%;max-width:400px;box-shadow:var(--shadow-sm);padding:28px 28px 32px}.login-title{margin:0 0 8px;font-size:1.5rem;font-weight:700}.login-subtitle{color:var(--color-text-muted);margin:0 0 24px;font-size:.9rem;line-height:1.5}.login-form{flex-direction:column;gap:16px;display:flex}.login-label{color:var(--color-text-muted);flex-direction:column;gap:6px;font-size:.85rem;font-weight:600;display:flex}.login-input{border:1px solid var(--color-control-border);background:var(--color-surface);border-radius:8px;padding:10px 12px;font-size:1rem}.login-input:focus{outline:2px solid var(--color-accent);outline-offset:1px}.login-error{color:var(--color-danger);margin:0;font-size:.875rem}.login-submit{width:100%;margin-top:4px}.login-google-section{margin-bottom:20px}.login-google-button-wrap{justify-content:center;min-height:44px;display:flex}.login-google-hint{color:var(--color-text-muted);text-align:center;margin:10px 0 0;font-size:.85rem}.login-divider{align-items:center;gap:12px;margin-top:20px;display:flex}.login-divider-line{background:var(--color-border);flex:1;height:1px}.login-divider-text{color:var(--color-text-muted);text-transform:uppercase;letter-spacing:.06em;font-size:.8rem;font-weight:600}.user-role-pill{text-transform:uppercase;letter-spacing:.04em;color:var(--color-text-muted);background:var(--color-border);border-radius:6px;padding:4px 8px;font-size:.75rem;font-weight:600}.readonly-badge{color:var(--color-canceled-fg);background:var(--color-warning-bg);border:1px solid var(--color-warning-border);border-radius:6px;padding:4px 10px;font-size:.8rem;font-weight:600}.pdf-preview-overlay{z-index:200;background:#1c19178c;justify-content:center;align-items:center;padding:16px;display:flex;position:fixed;inset:0}.pdf-preview-modal{background:var(--color-surface);border:1px solid var(--color-border);border-radius:12px;flex-direction:column;width:100%;max-width:900px;height:min(90vh,860px);display:flex;overflow:hidden;box-shadow:0 24px 60px #1c191740}.pdf-preview-toolbar{border-bottom:1px solid var(--color-border);flex-shrink:0;justify-content:space-between;align-items:center;gap:12px;padding:12px 16px;display:flex}.pdf-preview-filename{color:var(--color-text);text-overflow:ellipsis;white-space:nowrap;min-width:0;font-size:.875rem;font-weight:600;overflow:hidden}.pdf-preview-actions{flex-shrink:0;align-items:center;gap:8px;display:flex}.pdf-preview-close{color:var(--color-text-muted);cursor:pointer;background:0 0;border:none;border-radius:6px;padding:4px 8px;font-size:1.4rem;line-height:1}.pdf-preview-close:hover{background:var(--color-hover);color:var(--color-text)}.pdf-preview-body{background:var(--color-bg);flex:1;justify-content:center;align-items:center;min-height:0;display:flex}.pdf-preview-iframe{border:none;width:100%;height:100%}.pdf-preview-loading,.pdf-preview-error{color:var(--color-text-muted);text-align:center;padding:40px 20px;font-size:.9rem}.pdf-preview-error{color:var(--color-danger)}@media (width<=640px){.pdf-preview-modal{border-radius:0;max-width:100%;height:100vh}.pdf-preview-filename{font-size:.8rem}}.permission-editor{flex-direction:column;gap:1rem;display:flex}.permission-editor__group{border:1px solid var(--color-border,#d4d4d8);border-radius:8px;padding:.65rem 1rem 1rem}.permission-editor__group legend{padding:0 .35rem;font-size:.9rem;font-weight:600}.permission-editor__keys{grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:.35rem 1.25rem;margin-top:.35rem;display:grid}.permission-editor__keys .checkbox-row{font-size:.9rem}
