/* ============================================================================
 * 統合業務管理システム 統合業務管理システム — 単一標準 CSS スタイルシート (css/style.css)
 * ※ Tailwind CSS ビルド不要。そのままエックスサーバーへ配置・直接テキスト編集可能です。
 * ============================================================================ */
/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */
@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-space-y-reverse:0;--tw-space-x-reverse:0;--tw-divide-x-reverse:0;--tw-border-style:solid;--tw-divide-y-reverse:0;--tw-gradient-position:initial;--tw-gradient-from:#0000;--tw-gradient-via:#0000;--tw-gradient-to:#0000;--tw-gradient-stops:initial;--tw-gradient-via-stops:initial;--tw-gradient-from-position:0%;--tw-gradient-via-position:50%;--tw-gradient-to-position:100%;--tw-leading:initial;--tw-font-weight:initial;--tw-tracking:initial;--tw-ordinal:initial;--tw-slashed-zero:initial;--tw-numeric-figure:initial;--tw-numeric-spacing:initial;--tw-numeric-fraction:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-backdrop-blur:initial;--tw-backdrop-brightness:initial;--tw-backdrop-contrast:initial;--tw-backdrop-grayscale:initial;--tw-backdrop-hue-rotate:initial;--tw-backdrop-invert:initial;--tw-backdrop-opacity:initial;--tw-backdrop-saturate:initial;--tw-backdrop-sepia:initial}}}@layer theme{:root,:host{--font-sans:-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";--font-mono:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;--color-amber-50:oklch(98.7% .022 95.277);--color-amber-100:oklch(96.2% .059 95.617);--color-amber-200:oklch(92.4% .12 95.746);--color-amber-300:oklch(87.9% .169 91.605);--color-amber-400:oklch(82.8% .189 84.429);--color-amber-500:oklch(76.9% .188 70.08);--color-amber-600:oklch(66.6% .179 58.318);--color-amber-700:oklch(55.5% .163 48.998);--color-amber-800:oklch(47.3% .137 46.201);--color-amber-900:oklch(41.4% .112 45.904);--color-amber-950:oklch(27.9% .077 45.635);--color-emerald-50:oklch(97.9% .021 166.113);--color-emerald-100:oklch(95% .052 163.051);--color-emerald-200:oklch(90.5% .093 164.15);--color-emerald-300:oklch(84.5% .143 164.978);--color-emerald-500:oklch(69.6% .17 162.48);--color-emerald-600:oklch(59.6% .145 163.225);--color-emerald-700:oklch(50.8% .118 165.612);--color-emerald-800:oklch(43.2% .095 166.913);--color-emerald-900:oklch(37.8% .077 168.94);--color-emerald-950:oklch(26.2% .051 172.552);--color-teal-50:#f0f4ff;--color-teal-100:#e0e8ff;--color-teal-200:#c4d4ff;--color-teal-300:#9bb6ff;--color-teal-600:#4169ff;--color-teal-700:#3154e0;--color-teal-800:#2642b8;--color-teal-900:#1e3594;--color-teal-950:oklch(27.7% .046 192.524);--color-sky-50:oklch(97.7% .013 236.62);--color-sky-200:oklch(90.1% .058 230.902);--color-sky-300:oklch(82.8% .111 230.318);--color-sky-700:oklch(50% .134 242.749);--color-sky-900:oklch(39.1% .09 240.876);--color-blue-50:oklch(97% .014 254.604);--color-blue-100:oklch(93.2% .032 255.585);--color-blue-200:oklch(88.2% .059 254.128);--color-blue-300:oklch(80.9% .105 251.813);--color-blue-400:oklch(70.7% .165 254.624);--color-blue-700:oklch(48.8% .243 264.376);--color-blue-800:oklch(42.4% .199 265.638);--color-blue-900:oklch(37.9% .146 265.522);--color-blue-950:oklch(28.2% .091 267.935);--color-indigo-50:oklch(96.2% .018 272.314);--color-indigo-100:oklch(93% .034 272.788);--color-indigo-200:oklch(87% .065 274.039);--color-indigo-500:oklch(58.5% .233 277.117);--color-indigo-600:oklch(51.1% .262 276.966);--color-indigo-700:oklch(45.7% .24 277.023);--color-indigo-800:oklch(39.8% .195 277.366);--color-purple-50:oklch(97.7% .014 308.299);--color-purple-200:oklch(90.2% .063 306.703);--color-purple-500:oklch(62.7% .265 303.9);--color-purple-700:oklch(49.6% .265 301.924);--color-rose-50:oklch(96.9% .015 12.422);--color-rose-100:oklch(94.1% .03 12.58);--color-rose-200:oklch(89.2% .058 10.001);--color-rose-300:oklch(81% .117 11.638);--color-rose-400:oklch(71.2% .194 13.428);--color-rose-500:oklch(64.5% .246 16.439);--color-rose-600:oklch(58.6% .253 17.585);--color-rose-700:oklch(51.4% .222 16.935);--color-rose-800:oklch(45.5% .188 13.697);--color-rose-900:oklch(41% .159 10.272);--color-rose-950:oklch(27.1% .105 12.094);--color-slate-50:oklch(98.4% .003 247.858);--color-slate-100:oklch(96.8% .007 247.896);--color-slate-200:oklch(92.9% .013 255.508);--color-slate-300:oklch(86.9% .022 252.894);--color-slate-500:oklch(55.4% .046 257.417);--color-slate-600:oklch(44.6% .043 257.281);--color-slate-700:oklch(37.2% .044 257.287);--color-slate-800:oklch(27.9% .041 260.031);--color-slate-900:oklch(20.8% .042 265.755);--color-stone-50:#f7f9fe;--color-stone-100:#eef2fa;--color-stone-200:#e2e8f5;--color-stone-300:#cbd5e8;--color-stone-400:#94a3b8;--color-stone-500:#64748b;--color-stone-600:#475569;--color-stone-700:#334155;--color-stone-800:#1e293b;--color-stone-900:#0f172a;--color-white:#fff;--spacing:.25rem;--container-sm:24rem;--container-md:28rem;--container-lg:32rem;--container-xl:36rem;--container-2xl:42rem;--container-3xl:48rem;--container-4xl:56rem;--container-6xl:72rem;--text-xs:.84375rem;--text-xs--line-height:1.6;--text-sm:.925rem;--text-sm--line-height:1.65;--text-base:1rem;--text-base--line-height:calc(1.5 / 1);--text-lg:1.125rem;--text-lg--line-height:calc(1.75 / 1.125);--text-xl:1.25rem;--text-xl--line-height:calc(1.75 / 1.25);--text-2xl:1.5rem;--text-2xl--line-height:calc(2 / 1.5);--font-weight-normal:400;--font-weight-medium:500;--font-weight-semibold:600;--font-weight-bold:700;--tracking-tight:-.025em;--leading-tight:1.25;--leading-snug:1.375;--leading-relaxed:1.625;--radius-md:.375rem;--radius-lg:.5rem;--radius-xl:.75rem;--radius-2xl:1rem;--radius-3xl:1.5rem;--blur-xs:4px;--blur-md:12px;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4, 0, .2, 1);--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono)}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;tab-size:4;line-height:1.5;font-family:var(--default-font-family,-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring:where(:not(iframe)){outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab, red, red)){::placeholder{color:color-mix(in oklab, currentcolor 50%, transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){appearance:button}::file-selector-button{appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}body{font-feature-settings:"palt" 1;letter-spacing:.015em;color:#334155;background-color:#f5f8ff;font-family:BIZ UDPGothic,Plus Jakarta Sans,Noto Sans JP,-apple-system,BlinkMacSystemFont,sans-serif;line-height:1.65}h1,h2,h3,h4{letter-spacing:.02em;font-family:Zen Maru Gothic,BIZ UDPGothic,Plus Jakarta Sans,Noto Sans JP,sans-serif}.text-white{color:#ffffff!important}code,pre,.font-mono{font-variant-numeric:tabular-nums;font-family:Plus Jakarta Sans,BIZ UDPGothic,JetBrains Mono,sans-serif}table{border-collapse:separate;border-spacing:0}th{color:#64748b;font-weight:600;padding-top:.85rem!important;padding-bottom:.85rem!important}td{padding-top:.9rem!important;padding-bottom:.9rem!important}input,select,textarea,button{transition:all .18s}}@layer components;@layer utilities{.pointer-events-none{pointer-events:none}.visible{visibility:visible}.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.static{position:static}.sticky{position:sticky}.inset-0{inset:0}.top-0{top:0}.top-1\/2{top:50%}.top-16{top:calc(var(--spacing) * 16)}.right-2\.5{right:calc(var(--spacing) * 2.5)}.right-3{right:calc(var(--spacing) * 3)}.right-3\.5{right:calc(var(--spacing) * 3.5)}.left-3{left:calc(var(--spacing) * 3)}.left-3\.5{left:calc(var(--spacing) * 3.5)}.z-10{z-index:10}.z-30{z-index:30}.z-40{z-index:40}.z-50{z-index:50}.col-span-2{grid-column:span 2/span 2}.mx-1{margin-inline:var(--spacing)}.mx-2{margin-inline:calc(var(--spacing) * 2)}.mx-auto{margin-inline:auto}.my-6{margin-block:calc(var(--spacing) * 6)}.my-8{margin-block:calc(var(--spacing) * 8)}.mt-0\.5{margin-top:calc(var(--spacing) * .5)}.mt-1{margin-top:var(--spacing)}.mt-2{margin-top:calc(var(--spacing) * 2)}.mt-2\.5{margin-top:calc(var(--spacing) * 2.5)}.mt-3{margin-top:calc(var(--spacing) * 3)}.mt-4{margin-top:calc(var(--spacing) * 4)}.mr-1\.5{margin-right:calc(var(--spacing) * 1.5)}.mr-2{margin-right:calc(var(--spacing) * 2)}.mb-0\.5{margin-bottom:calc(var(--spacing) * .5)}.mb-1{margin-bottom:var(--spacing)}.mb-1\.5{margin-bottom:calc(var(--spacing) * 1.5)}.mb-2{margin-bottom:calc(var(--spacing) * 2)}.mb-2\.5{margin-bottom:calc(var(--spacing) * 2.5)}.mb-3{margin-bottom:calc(var(--spacing) * 3)}.mb-6{margin-bottom:calc(var(--spacing) * 6)}.ml-0\.5{margin-left:calc(var(--spacing) * .5)}.ml-1{margin-left:var(--spacing)}.ml-1\.5{margin-left:calc(var(--spacing) * 1.5)}.ml-2{margin-left:calc(var(--spacing) * 2)}.ml-4{margin-left:calc(var(--spacing) * 4)}.ml-auto{margin-left:auto}.line-clamp-2{-webkit-line-clamp:2;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.block{display:block}.flex{display:flex}.grid{display:grid}.hidden{display:none}.inline-block{display:inline-block}.inline-flex{display:inline-flex}.table{display:table}.h-2{height:calc(var(--spacing) * 2)}.h-2\.5{height:calc(var(--spacing) * 2.5)}.h-3{height:calc(var(--spacing) * 3)}.h-3\.5{height:calc(var(--spacing) * 3.5)}.h-4{height:calc(var(--spacing) * 4)}.h-5{height:calc(var(--spacing) * 5)}.h-6{height:calc(var(--spacing) * 6)}.h-7{height:calc(var(--spacing) * 7)}.h-8{height:calc(var(--spacing) * 8)}.h-9{height:calc(var(--spacing) * 9)}.h-10{height:calc(var(--spacing) * 10)}.h-11{height:calc(var(--spacing) * 11)}.h-12{height:calc(var(--spacing) * 12)}.h-16{height:calc(var(--spacing) * 16)}.h-full{height:100%}.max-h-32{max-height:calc(var(--spacing) * 32)}.max-h-40{max-height:calc(var(--spacing) * 40)}.max-h-72{max-height:calc(var(--spacing) * 72)}.max-h-\[50vh\]{max-height:50vh}.max-h-\[70vh\]{max-height:70vh}.max-h-\[75vh\]{max-height:75vh}.max-h-\[78vh\]{max-height:78vh}.max-h-\[88vh\]{max-height:88vh}.max-h-\[90vh\]{max-height:90vh}.max-h-\[480px\]{max-height:480px}.min-h-28{min-height:calc(var(--spacing) * 28)}.min-h-screen{min-height:100vh}.w-1\/3{width:33.3333%}.w-2{width:calc(var(--spacing) * 2)}.w-2\.5{width:calc(var(--spacing) * 2.5)}.w-2\/3{width:66.6667%}.w-3{width:calc(var(--spacing) * 3)}.w-3\.5{width:calc(var(--spacing) * 3.5)}.w-4{width:calc(var(--spacing) * 4)}.w-5{width:calc(var(--spacing) * 5)}.w-6{width:calc(var(--spacing) * 6)}.w-7{width:calc(var(--spacing) * 7)}.w-8{width:calc(var(--spacing) * 8)}.w-9{width:calc(var(--spacing) * 9)}.w-10{width:calc(var(--spacing) * 10)}.w-11{width:calc(var(--spacing) * 11)}.w-12{width:calc(var(--spacing) * 12)}.w-14{width:calc(var(--spacing) * 14)}.w-16{width:calc(var(--spacing) * 16)}.w-20{width:calc(var(--spacing) * 20)}.w-24{width:calc(var(--spacing) * 24)}.w-32{width:calc(var(--spacing) * 32)}.w-44{width:calc(var(--spacing) * 44)}.w-48{width:calc(var(--spacing) * 48)}.w-52{width:calc(var(--spacing) * 52)}.w-60{width:calc(var(--spacing) * 60)}.w-64{width:calc(var(--spacing) * 64)}.w-72{width:calc(var(--spacing) * 72)}.w-\[16\%\]{width:16%}.w-\[22\%\]{width:22%}.w-\[28\%\]{width:28%}.w-\[38\%\]{width:38%}.w-\[42\%\]{width:42%}.w-\[64px\]{width:64px}.w-\[82px\]{width:82px}.w-\[84px\]{width:84px}.w-\[140px\]{width:140px}.w-\[150px\]{width:150px}.w-\[175px\]{width:175px}.w-auto{width:auto}.w-full{width:100%}.max-w-2xl{max-width:var(--container-2xl)}.max-w-3xl{max-width:var(--container-3xl)}.max-w-4xl{max-width:var(--container-4xl)}.max-w-6xl{max-width:var(--container-6xl)}.max-w-\[85vw\]{max-width:85vw}.max-w-\[150px\]{max-width:150px}.max-w-\[190px\]{max-width:190px}.max-w-lg{max-width:var(--container-lg)}.max-w-md{max-width:var(--container-md)}.max-w-sm{max-width:var(--container-sm)}.max-w-xl{max-width:var(--container-xl)}.min-w-0{min-width:0}.min-w-52{min-width:calc(var(--spacing) * 52)}.min-w-\[86px\]{min-width:86px}.min-w-\[200px\]{min-width:200px}.min-w-\[220px\]{min-width:220px}.min-w-\[240px\]{min-width:240px}.min-w-\[260px\]{min-width:260px}.min-w-\[300px\]{min-width:300px}.min-w-\[320px\]{min-width:320px}.min-w-\[600px\]{min-width:600px}.min-w-\[720px\]{min-width:720px}.min-w-\[740px\]{min-width:740px}.min-w-\[760px\]{min-width:760px}.min-w-\[780px\]{min-width:780px}.min-w-\[820px\]{min-width:820px}.min-w-\[920px\]{min-width:920px}.flex-1{flex:1}.shrink-0{flex-shrink:0}.border-collapse{border-collapse:collapse}.-translate-y-1\/2{--tw-translate-y:calc(calc(1 / 2 * 100%) * -1);translate:var(--tw-translate-x) var(--tw-translate-y)}.transform{transform:var(--tw-rotate-x,) var(--tw-rotate-y,) var(--tw-rotate-z,) var(--tw-skew-x,) var(--tw-skew-y,)}.cursor-help{cursor:help}.cursor-pointer{cursor:pointer}.resize{resize:both}.list-inside{list-style-position:inside}.list-decimal{list-style-type:decimal}.list-disc{list-style-type:disc}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.grid-cols-7{grid-template-columns:repeat(7,minmax(0,1fr))}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-baseline{align-items:baseline}.items-center{align-items:center}.items-end{align-items:flex-end}.items-start{align-items:flex-start}.items-stretch{align-items:stretch}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.justify-end{justify-content:flex-end}.gap-0\.5{gap:calc(var(--spacing) * .5)}.gap-1{gap:var(--spacing)}.gap-1\.5{gap:calc(var(--spacing) * 1.5)}.gap-2{gap:calc(var(--spacing) * 2)}.gap-2\.5{gap:calc(var(--spacing) * 2.5)}.gap-3{gap:calc(var(--spacing) * 3)}.gap-3\.5{gap:calc(var(--spacing) * 3.5)}.gap-4{gap:calc(var(--spacing) * 4)}.gap-6{gap:calc(var(--spacing) * 6)}:where(.space-y-0\.5>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * .5) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * .5) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-1>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(var(--spacing) * var(--tw-space-y-reverse));margin-block-end:calc(var(--spacing) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-1\.5>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 1.5) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 1.5) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-2>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 2) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 2) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-2\.5>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 2.5) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 2.5) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-3>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 3) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 3) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-3\.5>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 3.5) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 3.5) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-4>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 4) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 4) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-5>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 5) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 5) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-6>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 6) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 6) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-x-2>:not(:last-child)){--tw-space-x-reverse:0;margin-inline-start:calc(calc(var(--spacing) * 2) * var(--tw-space-x-reverse));margin-inline-end:calc(calc(var(--spacing) * 2) * calc(1 - var(--tw-space-x-reverse)))}:where(.divide-x>:not(:last-child)){--tw-divide-x-reverse:0;border-inline-style:var(--tw-border-style);border-inline-start-width:calc(1px * var(--tw-divide-x-reverse));border-inline-end-width:calc(1px * calc(1 - var(--tw-divide-x-reverse)))}:where(.divide-y>:not(:last-child)){--tw-divide-y-reverse:0;border-bottom-style:var(--tw-border-style);border-top-style:var(--tw-border-style);border-top-width:calc(1px * var(--tw-divide-y-reverse));border-bottom-width:calc(1px * calc(1 - var(--tw-divide-y-reverse)))}:where(.divide-amber-200\/60>:not(:last-child)){border-color:#fee68599}@supports (color:color-mix(in lab, red, red)){:where(.divide-amber-200\/60>:not(:last-child)){border-color:color-mix(in oklab, var(--color-amber-200) 60%, transparent)}}:where(.divide-slate-200>:not(:last-child)){border-color:var(--color-slate-200)}:where(.divide-stone-100>:not(:last-child)){border-color:var(--color-stone-100)}:where(.divide-stone-200\/60>:not(:last-child)){border-color:#e2e8f599}@supports (color:color-mix(in lab, red, red)){:where(.divide-stone-200\/60>:not(:last-child)){border-color:color-mix(in oklab, var(--color-stone-200) 60%, transparent)}}:where(.divide-stone-200\/70>:not(:last-child)){border-color:#e2e8f5b3}@supports (color:color-mix(in lab, red, red)){:where(.divide-stone-200\/70>:not(:last-child)){border-color:color-mix(in oklab, var(--color-stone-200) 70%, transparent)}}:where(.divide-stone-200\/80>:not(:last-child)){border-color:#e2e8f5cc}@supports (color:color-mix(in lab, red, red)){:where(.divide-stone-200\/80>:not(:last-child)){border-color:color-mix(in oklab, var(--color-stone-200) 80%, transparent)}}.truncate{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-x-auto{overflow-x:auto}.overflow-x-hidden{overflow-x:hidden}.overflow-y-auto{overflow-y:auto}.rounded{border-radius:.25rem}.rounded-2xl{border-radius:var(--radius-2xl)}.rounded-3xl{border-radius:var(--radius-3xl)}.rounded-full{border-radius:2147483647px}.rounded-lg{border-radius:var(--radius-lg)}.rounded-md{border-radius:var(--radius-md)}.rounded-xl{border-radius:var(--radius-xl)}.border{border-style:var(--tw-border-style);border-width:1px}.border-2{border-style:var(--tw-border-style);border-width:2px}.border-t{border-top-style:var(--tw-border-style);border-top-width:1px}.border-r{border-right-style:var(--tw-border-style);border-right-width:1px}.border-b{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.border-b-2{border-bottom-style:var(--tw-border-style);border-bottom-width:2px}.border-l{border-left-style:var(--tw-border-style);border-left-width:1px}.border-l-2{border-left-style:var(--tw-border-style);border-left-width:2px}.border-l-4{border-left-style:var(--tw-border-style);border-left-width:4px}.border-\[\#0F766E\]{border-color:#0f766e}.border-\[\#1E3594\]{border-color:#1e3594}.border-\[\#4169FF\]{border-color:#4169ff}.border-\[\#4169FF\]\/40{border-color:oklab(58.3255% -.0105698 -.226687/.4)}.border-\[\#B8CCFF\]{border-color:#b8ccff}.border-\[\#C4D4FF\]{border-color:#c4d4ff}.border-\[\#C4D4FF\]\/50{border-color:oklab(87.2051% -.00102168 -.0622321/.5)}.border-\[\#C4D4FF\]\/60{border-color:oklab(87.2051% -.00102168 -.0622321/.6)}.border-\[\#C4D4FF\]\/80{border-color:oklab(87.2051% -.00102168 -.0622321/.8)}.border-amber-200{border-color:var(--color-amber-200)}.border-amber-200\/80{border-color:#fee685cc}@supports (color:color-mix(in lab, red, red)){.border-amber-200\/80{border-color:color-mix(in oklab, var(--color-amber-200) 80%, transparent)}}.border-amber-200\/90{border-color:#fee685e6}@supports (color:color-mix(in lab, red, red)){.border-amber-200\/90{border-color:color-mix(in oklab, var(--color-amber-200) 90%, transparent)}}.border-amber-300{border-color:var(--color-amber-300)}.border-blue-300{border-color:var(--color-blue-300)}.border-blue-300\/40{border-color:#90c5ff66}@supports (color:color-mix(in lab, red, red)){.border-blue-300\/40{border-color:color-mix(in oklab, var(--color-blue-300) 40%, transparent)}}.border-blue-400{border-color:var(--color-blue-400)}.border-emerald-200{border-color:var(--color-emerald-200)}.border-emerald-300{border-color:var(--color-emerald-300)}.border-indigo-200{border-color:var(--color-indigo-200)}.border-indigo-200\/60{border-color:#c7d2ff99}@supports (color:color-mix(in lab, red, red)){.border-indigo-200\/60{border-color:color-mix(in oklab, var(--color-indigo-200) 60%, transparent)}}.border-indigo-200\/70{border-color:#c7d2ffb3}@supports (color:color-mix(in lab, red, red)){.border-indigo-200\/70{border-color:color-mix(in oklab, var(--color-indigo-200) 70%, transparent)}}.border-purple-200{border-color:var(--color-purple-200)}.border-rose-200{border-color:var(--color-rose-200)}.border-rose-200\/60{border-color:#ffccd399}@supports (color:color-mix(in lab, red, red)){.border-rose-200\/60{border-color:color-mix(in oklab, var(--color-rose-200) 60%, transparent)}}.border-rose-200\/80{border-color:#ffccd3cc}@supports (color:color-mix(in lab, red, red)){.border-rose-200\/80{border-color:color-mix(in oklab, var(--color-rose-200) 80%, transparent)}}.border-rose-300{border-color:var(--color-rose-300)}.border-rose-300\/90{border-color:#ffa2aee6}@supports (color:color-mix(in lab, red, red)){.border-rose-300\/90{border-color:color-mix(in oklab, var(--color-rose-300) 90%, transparent)}}.border-sky-200{border-color:var(--color-sky-200)}.border-sky-300{border-color:var(--color-sky-300)}.border-slate-200{border-color:var(--color-slate-200)}.border-slate-300{border-color:var(--color-slate-300)}.border-slate-700{border-color:var(--color-slate-700)}.border-stone-100{border-color:var(--color-stone-100)}.border-stone-200{border-color:var(--color-stone-200)}.border-stone-200\/60{border-color:#e2e8f599}@supports (color:color-mix(in lab, red, red)){.border-stone-200\/60{border-color:color-mix(in oklab, var(--color-stone-200) 60%, transparent)}}.border-stone-200\/70{border-color:#e2e8f5b3}@supports (color:color-mix(in lab, red, red)){.border-stone-200\/70{border-color:color-mix(in oklab, var(--color-stone-200) 70%, transparent)}}.border-stone-200\/80{border-color:#e2e8f5cc}@supports (color:color-mix(in lab, red, red)){.border-stone-200\/80{border-color:color-mix(in oklab, var(--color-stone-200) 80%, transparent)}}.border-stone-200\/90{border-color:#e2e8f5e6}@supports (color:color-mix(in lab, red, red)){.border-stone-200\/90{border-color:color-mix(in oklab, var(--color-stone-200) 90%, transparent)}}.border-stone-300{border-color:var(--color-stone-300)}.border-stone-300\/80{border-color:#cbd5e8cc}@supports (color:color-mix(in lab, red, red)){.border-stone-300\/80{border-color:color-mix(in oklab, var(--color-stone-300) 80%, transparent)}}.border-stone-300\/90{border-color:#cbd5e8e6}@supports (color:color-mix(in lab, red, red)){.border-stone-300\/90{border-color:color-mix(in oklab, var(--color-stone-300) 90%, transparent)}}.border-stone-700\/80{border-color:#334155cc}@supports (color:color-mix(in lab, red, red)){.border-stone-700\/80{border-color:color-mix(in oklab, var(--color-stone-700) 80%, transparent)}}.border-teal-200{border-color:var(--color-teal-200)}.border-teal-200\/60{border-color:#c4d4ff99}@supports (color:color-mix(in lab, red, red)){.border-teal-200\/60{border-color:color-mix(in oklab, var(--color-teal-200) 60%, transparent)}}.border-teal-200\/70{border-color:#c4d4ffb3}@supports (color:color-mix(in lab, red, red)){.border-teal-200\/70{border-color:color-mix(in oklab, var(--color-teal-200) 70%, transparent)}}.border-teal-200\/80{border-color:#c4d4ffcc}@supports (color:color-mix(in lab, red, red)){.border-teal-200\/80{border-color:color-mix(in oklab, var(--color-teal-200) 80%, transparent)}}.border-teal-300{border-color:var(--color-teal-300)}.border-teal-300\/40{border-color:#9bb6ff66}@supports (color:color-mix(in lab, red, red)){.border-teal-300\/40{border-color:color-mix(in oklab, var(--color-teal-300) 40%, transparent)}}.border-transparent{border-color:#0000}.border-white\/20{border-color:#fff3}@supports (color:color-mix(in lab, red, red)){.border-white\/20{border-color:color-mix(in oklab, var(--color-white) 20%, transparent)}}.bg-\[\#0F766E\]{background-color:#0f766e}.bg-\[\#1E3594\]{background-color:#1e3594}.bg-\[\#4169FF\]{background-color:#4169ff}.bg-\[\#EEF3FF\]{background-color:#eef3ff}.bg-\[\#EEF3FF\]\/60{background-color:oklab(96.3861% -.000653029 -.0169345/.6)}.bg-\[\#F5F8FF\]{background-color:#f5f8ff}.bg-\[\#F7F6F2\]{background-color:#f7f6f2}.bg-\[\#F8FAFF\]{background-color:#f8faff}.bg-\[\#FAF9F6\]{background-color:#faf9f6}.bg-amber-50{background-color:var(--color-amber-50)}.bg-amber-50\/30{background-color:#fffbeb4d}@supports (color:color-mix(in lab, red, red)){.bg-amber-50\/30{background-color:color-mix(in oklab, var(--color-amber-50) 30%, transparent)}}.bg-amber-50\/60{background-color:#fffbeb99}@supports (color:color-mix(in lab, red, red)){.bg-amber-50\/60{background-color:color-mix(in oklab, var(--color-amber-50) 60%, transparent)}}.bg-amber-50\/70{background-color:#fffbebb3}@supports (color:color-mix(in lab, red, red)){.bg-amber-50\/70{background-color:color-mix(in oklab, var(--color-amber-50) 70%, transparent)}}.bg-amber-50\/90{background-color:#fffbebe6}@supports (color:color-mix(in lab, red, red)){.bg-amber-50\/90{background-color:color-mix(in oklab, var(--color-amber-50) 90%, transparent)}}.bg-amber-100{background-color:var(--color-amber-100)}.bg-amber-200{background-color:var(--color-amber-200)}.bg-amber-500{background-color:var(--color-amber-500)}.bg-blue-50{background-color:var(--color-blue-50)}.bg-blue-100{background-color:var(--color-blue-100)}.bg-blue-800{background-color:var(--color-blue-800)}.bg-blue-900{background-color:var(--color-blue-900)}.bg-emerald-50{background-color:var(--color-emerald-50)}.bg-emerald-100{background-color:var(--color-emerald-100)}.bg-emerald-500{background-color:var(--color-emerald-500)}.bg-emerald-700{background-color:var(--color-emerald-700)}.bg-emerald-800{background-color:var(--color-emerald-800)}.bg-emerald-900{background-color:var(--color-emerald-900)}.bg-indigo-50{background-color:var(--color-indigo-50)}.bg-purple-50{background-color:var(--color-purple-50)}.bg-purple-500{background-color:var(--color-purple-500)}.bg-rose-50{background-color:var(--color-rose-50)}.bg-rose-50\/50{background-color:#fff1f280}@supports (color:color-mix(in lab, red, red)){.bg-rose-50\/50{background-color:color-mix(in oklab, var(--color-rose-50) 50%, transparent)}}.bg-rose-50\/80{background-color:#fff1f2cc}@supports (color:color-mix(in lab, red, red)){.bg-rose-50\/80{background-color:color-mix(in oklab, var(--color-rose-50) 80%, transparent)}}.bg-rose-50\/90{background-color:#fff1f2e6}@supports (color:color-mix(in lab, red, red)){.bg-rose-50\/90{background-color:color-mix(in oklab, var(--color-rose-50) 90%, transparent)}}.bg-rose-100{background-color:var(--color-rose-100)}.bg-rose-500{background-color:var(--color-rose-500)}.bg-rose-600{background-color:var(--color-rose-600)}.bg-sky-50{background-color:var(--color-sky-50)}.bg-slate-50{background-color:var(--color-slate-50)}.bg-slate-100{background-color:var(--color-slate-100)}.bg-slate-200{background-color:var(--color-slate-200)}.bg-slate-700{background-color:var(--color-slate-700)}.bg-slate-800{background-color:var(--color-slate-800)}.bg-slate-900{background-color:var(--color-slate-900)}.bg-slate-900\/45{background-color:#0f172b73}@supports (color:color-mix(in lab, red, red)){.bg-slate-900\/45{background-color:color-mix(in oklab, var(--color-slate-900) 45%, transparent)}}.bg-stone-50{background-color:var(--color-stone-50)}.bg-stone-50\/40{background-color:#f7f9fe66}@supports (color:color-mix(in lab, red, red)){.bg-stone-50\/40{background-color:color-mix(in oklab, var(--color-stone-50) 40%, transparent)}}.bg-stone-50\/50{background-color:#f7f9fe80}@supports (color:color-mix(in lab, red, red)){.bg-stone-50\/50{background-color:color-mix(in oklab, var(--color-stone-50) 50%, transparent)}}.bg-stone-50\/60{background-color:#f7f9fe99}@supports (color:color-mix(in lab, red, red)){.bg-stone-50\/60{background-color:color-mix(in oklab, var(--color-stone-50) 60%, transparent)}}.bg-stone-50\/70{background-color:#f7f9feb3}@supports (color:color-mix(in lab, red, red)){.bg-stone-50\/70{background-color:color-mix(in oklab, var(--color-stone-50) 70%, transparent)}}.bg-stone-50\/80{background-color:#f7f9fecc}@supports (color:color-mix(in lab, red, red)){.bg-stone-50\/80{background-color:color-mix(in oklab, var(--color-stone-50) 80%, transparent)}}.bg-stone-50\/90{background-color:#f7f9fee6}@supports (color:color-mix(in lab, red, red)){.bg-stone-50\/90{background-color:color-mix(in oklab, var(--color-stone-50) 90%, transparent)}}.bg-stone-100{background-color:var(--color-stone-100)}.bg-stone-100\/80{background-color:#eef2facc}@supports (color:color-mix(in lab, red, red)){.bg-stone-100\/80{background-color:color-mix(in oklab, var(--color-stone-100) 80%, transparent)}}.bg-stone-200{background-color:var(--color-stone-200)}.bg-stone-200\/50{background-color:#e2e8f580}@supports (color:color-mix(in lab, red, red)){.bg-stone-200\/50{background-color:color-mix(in oklab, var(--color-stone-200) 50%, transparent)}}.bg-stone-200\/60{background-color:#e2e8f599}@supports (color:color-mix(in lab, red, red)){.bg-stone-200\/60{background-color:color-mix(in oklab, var(--color-stone-200) 60%, transparent)}}.bg-stone-200\/90{background-color:#e2e8f5e6}@supports (color:color-mix(in lab, red, red)){.bg-stone-200\/90{background-color:color-mix(in oklab, var(--color-stone-200) 90%, transparent)}}.bg-stone-500{background-color:var(--color-stone-500)}.bg-stone-700{background-color:var(--color-stone-700)}.bg-stone-800{background-color:var(--color-stone-800)}.bg-stone-900\/25{background-color:#0f172a40}@supports (color:color-mix(in lab, red, red)){.bg-stone-900\/25{background-color:color-mix(in oklab, var(--color-stone-900) 25%, transparent)}}.bg-stone-900\/30{background-color:#0f172a4d}@supports (color:color-mix(in lab, red, red)){.bg-stone-900\/30{background-color:color-mix(in oklab, var(--color-stone-900) 30%, transparent)}}.bg-stone-900\/35{background-color:#0f172a59}@supports (color:color-mix(in lab, red, red)){.bg-stone-900\/35{background-color:color-mix(in oklab, var(--color-stone-900) 35%, transparent)}}.bg-stone-900\/40{background-color:#0f172a66}@supports (color:color-mix(in lab, red, red)){.bg-stone-900\/40{background-color:color-mix(in oklab, var(--color-stone-900) 40%, transparent)}}.bg-stone-900\/95{background-color:#0f172af2}@supports (color:color-mix(in lab, red, red)){.bg-stone-900\/95{background-color:color-mix(in oklab, var(--color-stone-900) 95%, transparent)}}.bg-teal-50{background-color:var(--color-teal-50)}.bg-teal-50\/30{background-color:#f0f4ff4d}@supports (color:color-mix(in lab, red, red)){.bg-teal-50\/30{background-color:color-mix(in oklab, var(--color-teal-50) 30%, transparent)}}.bg-teal-50\/40{background-color:#f0f4ff66}@supports (color:color-mix(in lab, red, red)){.bg-teal-50\/40{background-color:color-mix(in oklab, var(--color-teal-50) 40%, transparent)}}.bg-teal-50\/80{background-color:#f0f4ffcc}@supports (color:color-mix(in lab, red, red)){.bg-teal-50\/80{background-color:color-mix(in oklab, var(--color-teal-50) 80%, transparent)}}.bg-teal-50\/90{background-color:#f0f4ffe6}@supports (color:color-mix(in lab, red, red)){.bg-teal-50\/90{background-color:color-mix(in oklab, var(--color-teal-50) 90%, transparent)}}.bg-teal-600{background-color:var(--color-teal-600)}.bg-transparent{background-color:#0000}.bg-white{background-color:var(--color-white)}.bg-white\/10{background-color:#ffffff1a}@supports (color:color-mix(in lab, red, red)){.bg-white\/10{background-color:color-mix(in oklab, var(--color-white) 10%, transparent)}}.bg-white\/20{background-color:#fff3}@supports (color:color-mix(in lab, red, red)){.bg-white\/20{background-color:color-mix(in oklab, var(--color-white) 20%, transparent)}}.bg-white\/80{background-color:#fffc}@supports (color:color-mix(in lab, red, red)){.bg-white\/80{background-color:color-mix(in oklab, var(--color-white) 80%, transparent)}}.bg-white\/90{background-color:#ffffffe6}@supports (color:color-mix(in lab, red, red)){.bg-white\/90{background-color:color-mix(in oklab, var(--color-white) 90%, transparent)}}.bg-white\/95{background-color:#fffffff2}@supports (color:color-mix(in lab, red, red)){.bg-white\/95{background-color:color-mix(in oklab, var(--color-white) 95%, transparent)}}.bg-gradient-to-br{--tw-gradient-position:to bottom right in oklab;background-image:linear-gradient(var(--tw-gradient-stops))}.from-\[\#F0F4FF\]{--tw-gradient-from:#f0f4ff;--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.to-\[\#F8FAFF\]{--tw-gradient-to:#f8faff;--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.stroke-\[3\]{stroke-width:3px}.object-contain{object-fit:contain}.object-cover{object-fit:cover}.p-1{padding:var(--spacing)}.p-1\.5{padding:calc(var(--spacing) * 1.5)}.p-2{padding:calc(var(--spacing) * 2)}.p-2\.5{padding:calc(var(--spacing) * 2.5)}.p-3{padding:calc(var(--spacing) * 3)}.p-3\.5{padding:calc(var(--spacing) * 3.5)}.p-4{padding:calc(var(--spacing) * 4)}.p-5{padding:calc(var(--spacing) * 5)}.p-6{padding:calc(var(--spacing) * 6)}.p-8{padding:calc(var(--spacing) * 8)}.p-10{padding:calc(var(--spacing) * 10)}.px-1{padding-inline:var(--spacing)}.px-1\.5{padding-inline:calc(var(--spacing) * 1.5)}.px-2{padding-inline:calc(var(--spacing) * 2)}.px-2\.5{padding-inline:calc(var(--spacing) * 2.5)}.px-3{padding-inline:calc(var(--spacing) * 3)}.px-3\.5{padding-inline:calc(var(--spacing) * 3.5)}.px-4{padding-inline:calc(var(--spacing) * 4)}.px-5{padding-inline:calc(var(--spacing) * 5)}.px-6{padding-inline:calc(var(--spacing) * 6)}.py-0\.5{padding-block:calc(var(--spacing) * .5)}.py-1{padding-block:var(--spacing)}.py-1\.5{padding-block:calc(var(--spacing) * 1.5)}.py-2{padding-block:calc(var(--spacing) * 2)}.py-2\.5{padding-block:calc(var(--spacing) * 2.5)}.py-3{padding-block:calc(var(--spacing) * 3)}.py-3\.5{padding-block:calc(var(--spacing) * 3.5)}.py-4{padding-block:calc(var(--spacing) * 4)}.py-5{padding-block:calc(var(--spacing) * 5)}.py-6{padding-block:calc(var(--spacing) * 6)}.py-8{padding-block:calc(var(--spacing) * 8)}.py-10{padding-block:calc(var(--spacing) * 10)}.pt-0\.5{padding-top:calc(var(--spacing) * .5)}.pt-1{padding-top:var(--spacing)}.pt-2{padding-top:calc(var(--spacing) * 2)}.pt-2\.5{padding-top:calc(var(--spacing) * 2.5)}.pt-3{padding-top:calc(var(--spacing) * 3)}.pt-4{padding-top:calc(var(--spacing) * 4)}.pt-5{padding-top:calc(var(--spacing) * 5)}.pr-1{padding-right:var(--spacing)}.pr-3{padding-right:calc(var(--spacing) * 3)}.pr-3\.5{padding-right:calc(var(--spacing) * 3.5)}.pr-9{padding-right:calc(var(--spacing) * 9)}.pr-10{padding-right:calc(var(--spacing) * 10)}.pr-24{padding-right:calc(var(--spacing) * 24)}.pb-1{padding-bottom:var(--spacing)}.pb-1\.5{padding-bottom:calc(var(--spacing) * 1.5)}.pb-3{padding-bottom:calc(var(--spacing) * 3)}.pb-4{padding-bottom:calc(var(--spacing) * 4)}.pl-0\.5{padding-left:calc(var(--spacing) * .5)}.pl-1{padding-left:var(--spacing)}.pl-2{padding-left:calc(var(--spacing) * 2)}.pl-2\.5{padding-left:calc(var(--spacing) * 2.5)}.pl-3{padding-left:calc(var(--spacing) * 3)}.pl-3\.5{padding-left:calc(var(--spacing) * 3.5)}.pl-4{padding-left:calc(var(--spacing) * 4)}.pl-8{padding-left:calc(var(--spacing) * 8)}.pl-9{padding-left:calc(var(--spacing) * 9)}.pl-10{padding-left:calc(var(--spacing) * 10)}.text-center{text-align:center}.text-left{text-align:left}.text-right{text-align:right}.align-middle{vertical-align:middle}.align-top{vertical-align:top}.font-mono{font-family:var(--font-mono)}.font-sans{font-family:var(--font-sans)}.text-2xl{font-size:var(--text-2xl);line-height:var(--tw-leading,var(--text-2xl--line-height))}.text-base{font-size:var(--text-base);line-height:var(--tw-leading,var(--text-base--line-height))}.text-lg{font-size:var(--text-lg);line-height:var(--tw-leading,var(--text-lg--line-height))}.text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.text-xl{font-size:var(--text-xl);line-height:var(--tw-leading,var(--text-xl--line-height))}.text-xs{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.text-\[9px\]{font-size:9px}.text-\[10px\]{font-size:10px}.text-\[11px\]{font-size:11px}.leading-none{--tw-leading:1;line-height:1}.leading-relaxed{--tw-leading:var(--leading-relaxed);line-height:var(--leading-relaxed)}.leading-snug{--tw-leading:var(--leading-snug);line-height:var(--leading-snug)}.leading-tight{--tw-leading:var(--leading-tight);line-height:var(--leading-tight)}.font-bold{--tw-font-weight:var(--font-weight-bold);font-weight:var(--font-weight-bold)}.font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.font-normal{--tw-font-weight:var(--font-weight-normal);font-weight:var(--font-weight-normal)}.font-semibold{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.tracking-tight{--tw-tracking:var(--tracking-tight);letter-spacing:var(--tracking-tight)}.break-words{overflow-wrap:break-word}.break-all{word-break:break-all}.whitespace-nowrap{white-space:nowrap}.whitespace-pre{white-space:pre}.whitespace-pre-line{white-space:pre-line}.whitespace-pre-wrap{white-space:pre-wrap}.text-\[\#0F766E\]{color:#0f766e}.text-\[\#1E3594\]{color:#1e3594}.text-\[\#93B4FF\]{color:#93b4ff}.text-\[\#4169FF\]{color:#4169ff}.text-amber-400{color:var(--color-amber-400)}.text-amber-500{color:var(--color-amber-500)}.text-amber-600{color:var(--color-amber-600)}.text-amber-700{color:var(--color-amber-700)}.text-amber-800{color:var(--color-amber-800)}.text-amber-900{color:var(--color-amber-900)}.text-amber-950{color:var(--color-amber-950)}.text-blue-100{color:var(--color-blue-100)}.text-blue-200{color:var(--color-blue-200)}.text-blue-700{color:var(--color-blue-700)}.text-emerald-300{color:var(--color-emerald-300)}.text-emerald-600{color:var(--color-emerald-600)}.text-emerald-700{color:var(--color-emerald-700)}.text-emerald-800{color:var(--color-emerald-800)}.text-emerald-950{color:var(--color-emerald-950)}.text-indigo-600{color:var(--color-indigo-600)}.text-indigo-700{color:var(--color-indigo-700)}.text-indigo-800{color:var(--color-indigo-800)}.text-purple-700{color:var(--color-purple-700)}.text-rose-400{color:var(--color-rose-400)}.text-rose-500{color:var(--color-rose-500)}.text-rose-600{color:var(--color-rose-600)}.text-rose-700{color:var(--color-rose-700)}.text-rose-800{color:var(--color-rose-800)}.text-rose-900{color:var(--color-rose-900)}.text-rose-950{color:var(--color-rose-950)}.text-sky-700{color:var(--color-sky-700)}.text-sky-900{color:var(--color-sky-900)}.text-slate-100{color:var(--color-slate-100)}.text-slate-300{color:var(--color-slate-300)}.text-slate-500{color:var(--color-slate-500)}.text-slate-600{color:var(--color-slate-600)}.text-slate-700{color:var(--color-slate-700)}.text-slate-800{color:var(--color-slate-800)}.text-slate-900{color:var(--color-slate-900)}.text-stone-100{color:var(--color-stone-100)}.text-stone-300{color:var(--color-stone-300)}.text-stone-400{color:var(--color-stone-400)}.text-stone-500{color:var(--color-stone-500)}.text-stone-600{color:var(--color-stone-600)}.text-stone-700{color:var(--color-stone-700)}.text-stone-800{color:var(--color-stone-800)}.text-stone-900{color:var(--color-stone-900)}.text-teal-600{color:var(--color-teal-600)}.text-teal-700{color:var(--color-teal-700)}.text-teal-800{color:var(--color-teal-800)}.text-teal-900{color:var(--color-teal-900)}.text-teal-950{color:var(--color-teal-950)}.text-transparent{color:#0000}.text-white{color:var(--color-white)}.italic{font-style:italic}.tabular-nums{--tw-numeric-spacing:tabular-nums;font-variant-numeric:var(--tw-ordinal,) var(--tw-slashed-zero,) var(--tw-numeric-figure,) var(--tw-numeric-spacing,) var(--tw-numeric-fraction,)}.line-through{text-decoration-line:line-through}.underline{text-decoration-line:underline}.antialiased{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.opacity-60{opacity:.6}.opacity-75{opacity:.75}.opacity-80{opacity:.8}.shadow-2xl{--tw-shadow:0 25px 50px -12px var(--tw-shadow-color,#00000040);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-2xs{--tw-shadow:0 1px var(--tw-shadow-color,#0000000d);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-lg{--tw-shadow:0 10px 15px -3px var(--tw-shadow-color,#0000001a), 0 4px 6px -4px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-md{--tw-shadow:0 4px 6px -1px var(--tw-shadow-color,#0000001a), 0 2px 4px -2px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-sm{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a), 0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-xl{--tw-shadow:0 20px 25px -5px var(--tw-shadow-color,#0000001a), 0 8px 10px -6px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-xs{--tw-shadow:0 1px 2px 0 var(--tw-shadow-color,#0000000d);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-\[\#4169FF\]\/20{--tw-shadow-color:#4169ff33}@supports (color:color-mix(in lab, red, red)){.shadow-\[\#4169FF\]\/20{--tw-shadow-color:color-mix(in oklab, oklab(58.3255% -.0105698 -.226687/.2) var(--tw-shadow-alpha), transparent)}}.shadow-\[\#4169FF\]\/25{--tw-shadow-color:#4169ff40}@supports (color:color-mix(in lab, red, red)){.shadow-\[\#4169FF\]\/25{--tw-shadow-color:color-mix(in oklab, oklab(58.3255% -.0105698 -.226687/.25) var(--tw-shadow-alpha), transparent)}}.backdrop-blur-\[1px\]{--tw-backdrop-blur:blur(1px);-webkit-backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,)}.backdrop-blur-\[2px\]{--tw-backdrop-blur:blur(2px);-webkit-backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,)}.backdrop-blur-md{--tw-backdrop-blur:blur(var(--blur-md));-webkit-backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,)}.backdrop-blur-xs{--tw-backdrop-blur:blur(var(--blur-xs));-webkit-backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,)}.transition-all{transition-property:all;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-colors{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-transform{transition-property:transform,translate,scale,rotate;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.select-none{-webkit-user-select:none;user-select:none}@media (hover:hover){.group-hover\:bg-teal-100:is(:where(.group):hover *){background-color:var(--color-teal-100)}.group-hover\:text-teal-700:is(:where(.group):hover *){color:var(--color-teal-700)}.group-hover\:text-white:is(:where(.group):hover *){color:var(--color-white)}}.selection\:bg-\[\#4169FF\] ::selection{background-color:#4169ff}.selection\:bg-\[\#4169FF\]::selection{background-color:#4169ff}.selection\:text-white ::selection{color:var(--color-white)}.selection\:text-white::selection{color:var(--color-white)}.placeholder\:text-slate-500::placeholder{color:var(--color-slate-500)}.placeholder\:text-stone-400::placeholder{color:var(--color-stone-400)}.last\:border-r-0:last-child{border-right-style:var(--tw-border-style);border-right-width:0}@media (hover:hover){.hover\:scale-\[1\.01\]:hover{scale:1.01}.hover\:border-\[\#0F766E\]:hover{border-color:#0f766e}.hover\:border-\[\#1E3594\]:hover{border-color:#1e3594}.hover\:border-\[\#4169FF\]:hover{border-color:#4169ff}.hover\:border-\[\#B8CCFF\]:hover{border-color:#b8ccff}.hover\:border-teal-200:hover{border-color:var(--color-teal-200)}.hover\:border-teal-600:hover{border-color:var(--color-teal-600)}.hover\:bg-\[\#0D9488\]:hover{background-color:#0d9488}.hover\:bg-\[\#1E3594\]:hover{background-color:#1e3594}.hover\:bg-\[\#115E59\]:hover{background-color:#115e59}.hover\:bg-\[\#3154E0\]:hover{background-color:#3154e0}.hover\:bg-\[\#3158EE\]:hover{background-color:#3158ee}.hover\:bg-\[\#152770\]:hover{background-color:#152770}.hover\:bg-\[\#DDE7FF\]:hover{background-color:#dde7ff}.hover\:bg-\[\#E0E8FF\]:hover{background-color:#e0e8ff}.hover\:bg-\[\#EEF3FF\]:hover{background-color:#eef3ff}.hover\:bg-\[\#EEF3FF\]\/60:hover{background-color:oklab(96.3861% -.000653029 -.0169345/.6)}.hover\:bg-\[\#F0F4FF\]:hover{background-color:#f0f4ff}.hover\:bg-\[\#F0F4FF\]\/70:hover{background-color:oklab(96.7308% -.0000039041 -.0153209/.7)}.hover\:bg-\[\#F0F4FF\]\/80:hover{background-color:oklab(96.7308% -.0000039041 -.0153209/.8)}.hover\:bg-\[\#F5F8FF\]\/70:hover{background-color:oklab(97.8857% -.000454068 -.00984651/.7)}.hover\:bg-amber-100:hover{background-color:var(--color-amber-100)}.hover\:bg-blue-50:hover{background-color:var(--color-blue-50)}.hover\:bg-blue-950:hover{background-color:var(--color-blue-950)}.hover\:bg-emerald-100:hover{background-color:var(--color-emerald-100)}.hover\:bg-emerald-700:hover{background-color:var(--color-emerald-700)}.hover\:bg-indigo-100:hover{background-color:var(--color-indigo-100)}.hover\:bg-rose-50:hover{background-color:var(--color-rose-50)}.hover\:bg-rose-50\/80:hover{background-color:#fff1f2cc}@supports (color:color-mix(in lab, red, red)){.hover\:bg-rose-50\/80:hover{background-color:color-mix(in oklab, var(--color-rose-50) 80%, transparent)}}.hover\:bg-rose-50\/90:hover{background-color:#fff1f2e6}@supports (color:color-mix(in lab, red, red)){.hover\:bg-rose-50\/90:hover{background-color:color-mix(in oklab, var(--color-rose-50) 90%, transparent)}}.hover\:bg-rose-100:hover{background-color:var(--color-rose-100)}.hover\:bg-rose-700:hover{background-color:var(--color-rose-700)}.hover\:bg-slate-100:hover{background-color:var(--color-slate-100)}.hover\:bg-slate-200:hover{background-color:var(--color-slate-200)}.hover\:bg-slate-300:hover{background-color:var(--color-slate-300)}.hover\:bg-slate-600:hover{background-color:var(--color-slate-600)}.hover\:bg-slate-800:hover{background-color:var(--color-slate-800)}.hover\:bg-stone-50:hover{background-color:var(--color-stone-50)}.hover\:bg-stone-50\/40:hover{background-color:#f7f9fe66}@supports (color:color-mix(in lab, red, red)){.hover\:bg-stone-50\/40:hover{background-color:color-mix(in oklab, var(--color-stone-50) 40%, transparent)}}.hover\:bg-stone-50\/50:hover{background-color:#f7f9fe80}@supports (color:color-mix(in lab, red, red)){.hover\:bg-stone-50\/50:hover{background-color:color-mix(in oklab, var(--color-stone-50) 50%, transparent)}}.hover\:bg-stone-50\/60:hover{background-color:#f7f9fe99}@supports (color:color-mix(in lab, red, red)){.hover\:bg-stone-50\/60:hover{background-color:color-mix(in oklab, var(--color-stone-50) 60%, transparent)}}.hover\:bg-stone-50\/70:hover{background-color:#f7f9feb3}@supports (color:color-mix(in lab, red, red)){.hover\:bg-stone-50\/70:hover{background-color:color-mix(in oklab, var(--color-stone-50) 70%, transparent)}}.hover\:bg-stone-100:hover{background-color:var(--color-stone-100)}.hover\:bg-stone-100\/80:hover{background-color:#eef2facc}@supports (color:color-mix(in lab, red, red)){.hover\:bg-stone-100\/80:hover{background-color:color-mix(in oklab, var(--color-stone-100) 80%, transparent)}}.hover\:bg-stone-200:hover{background-color:var(--color-stone-200)}.hover\:bg-stone-200\/50:hover{background-color:#e2e8f580}@supports (color:color-mix(in lab, red, red)){.hover\:bg-stone-200\/50:hover{background-color:color-mix(in oklab, var(--color-stone-200) 50%, transparent)}}.hover\:bg-stone-200\/60:hover{background-color:#e2e8f599}@supports (color:color-mix(in lab, red, red)){.hover\:bg-stone-200\/60:hover{background-color:color-mix(in oklab, var(--color-stone-200) 60%, transparent)}}.hover\:bg-stone-200\/70:hover{background-color:#e2e8f5b3}@supports (color:color-mix(in lab, red, red)){.hover\:bg-stone-200\/70:hover{background-color:color-mix(in oklab, var(--color-stone-200) 70%, transparent)}}.hover\:bg-stone-200\/80:hover{background-color:#e2e8f5cc}@supports (color:color-mix(in lab, red, red)){.hover\:bg-stone-200\/80:hover{background-color:color-mix(in oklab, var(--color-stone-200) 80%, transparent)}}.hover\:bg-stone-800:hover{background-color:var(--color-stone-800)}.hover\:bg-stone-900:hover{background-color:var(--color-stone-900)}.hover\:bg-teal-50:hover{background-color:var(--color-teal-50)}.hover\:bg-teal-100:hover{background-color:var(--color-teal-100)}.hover\:bg-teal-600:hover{background-color:var(--color-teal-600)}.hover\:bg-white:hover{background-color:var(--color-white)}.hover\:text-\[\#1E3594\]:hover{color:#1e3594}.hover\:text-\[\#3154E0\]:hover{color:#3154e0}.hover\:text-\[\#4169FF\]:hover{color:#4169ff}.hover\:text-rose-600:hover{color:var(--color-rose-600)}.hover\:text-stone-600:hover{color:var(--color-stone-600)}.hover\:text-stone-700:hover{color:var(--color-stone-700)}.hover\:text-stone-800:hover{color:var(--color-stone-800)}.hover\:text-stone-900:hover{color:var(--color-stone-900)}.hover\:text-white:hover{color:var(--color-white)}.hover\:underline:hover{text-decoration-line:underline}}.focus\:border-\[\#4169FF\]:focus{border-color:#4169ff}.focus\:border-teal-600:focus{border-color:var(--color-teal-600)}.focus\:bg-white:focus{background-color:var(--color-white)}.focus\:ring-indigo-500:focus{--tw-ring-color:var(--color-indigo-500)}.focus\:outline-none:focus{--tw-outline-style:none;outline-style:none}.disabled\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\:bg-stone-100:disabled{background-color:var(--color-stone-100)}.disabled\:text-stone-400:disabled{color:var(--color-stone-400)}.disabled\:opacity-40:disabled{opacity:.4}.disabled\:opacity-50:disabled{opacity:.5}.disabled\:opacity-70:disabled{opacity:.7}@media not all and (width>=64rem){.max-lg\:min-w-\[640px\]{min-width:640px}.max-lg\:min-w-\[820px\]{min-width:820px}.max-lg\:min-w-\[880px\]{min-width:880px}}@media (width>=40rem){.sm\:absolute{position:absolute}.sm\:top-full{top:100%}.sm\:right-0{right:0}.sm\:left-auto{left:auto}.sm\:col-span-2{grid-column:span 2/span 2}.sm\:col-span-3{grid-column:span 3/span 3}.sm\:col-span-4{grid-column:span 4/span 4}.sm\:col-span-5{grid-column:span 5/span 5}.sm\:col-span-8{grid-column:span 8/span 8}.sm\:mt-2{margin-top:calc(var(--spacing) * 2)}.sm\:h-10{height:calc(var(--spacing) * 10)}.sm\:h-20{height:calc(var(--spacing) * 20)}.sm\:w-20{width:calc(var(--spacing) * 20)}.sm\:w-64{width:calc(var(--spacing) * 64)}.sm\:w-72{width:calc(var(--spacing) * 72)}.sm\:w-\[580px\]{width:580px}.sm\:max-w-lg{max-width:var(--container-lg)}.sm\:flex-initial{flex:0 auto}.sm\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.sm\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.sm\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.sm\:grid-cols-5{grid-template-columns:repeat(5,minmax(0,1fr))}.sm\:grid-cols-12{grid-template-columns:repeat(12,minmax(0,1fr))}.sm\:flex-row{flex-direction:row}.sm\:items-center{align-items:center}.sm\:items-end{align-items:flex-end}.sm\:gap-3{gap:calc(var(--spacing) * 3)}.sm\:gap-4{gap:calc(var(--spacing) * 4)}.sm\:p-5{padding:calc(var(--spacing) * 5)}.sm\:p-6{padding:calc(var(--spacing) * 6)}.sm\:p-7{padding:calc(var(--spacing) * 7)}.sm\:px-6{padding-inline:calc(var(--spacing) * 6)}.sm\:text-base{font-size:var(--text-base);line-height:var(--tw-leading,var(--text-base--line-height))}.sm\:text-lg{font-size:var(--text-lg);line-height:var(--tw-leading,var(--text-lg--line-height))}.sm\:text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.sm\:text-xl{font-size:var(--text-xl);line-height:var(--tw-leading,var(--text-xl--line-height))}}@media (width>=48rem){.md\:col-span-3{grid-column:span 3/span 3}.md\:col-span-4{grid-column:span 4/span 4}.md\:col-span-5{grid-column:span 5/span 5}.md\:col-span-6{grid-column:span 6/span 6}.md\:inline{display:inline}.md\:w-\[660px\]{width:660px}.md\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.md\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.md\:grid-cols-12{grid-template-columns:repeat(12,minmax(0,1fr))}.md\:flex-row{flex-direction:row}.md\:items-center{align-items:center}}@media (width>=64rem){.lg\:col-span-5{grid-column:span 5/span 5}.lg\:col-span-7{grid-column:span 7/span 7}.lg\:block{display:block}.lg\:flex{display:flex}.lg\:hidden{display:none}.lg\:min-w-0{min-width:0}.lg\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.lg\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.lg\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.lg\:grid-cols-5{grid-template-columns:repeat(5,minmax(0,1fr))}.lg\:grid-cols-12{grid-template-columns:repeat(12,minmax(0,1fr))}.lg\:flex-row{flex-direction:row}.lg\:items-center{align-items:center}.lg\:overflow-x-visible{overflow-x:visible}.lg\:p-8{padding:calc(var(--spacing) * 8)}}@media (width>=80rem){.xl\:flex-row{flex-direction:row}.xl\:items-center{align-items:center}}}.bg-white.rounded-2xl,.bg-white.rounded-3xl{box-shadow:0 8px 28px -6px #4169ff0f,0 2px 6px -1px #0f172a06}.tabular-nums{font-variant-numeric:tabular-nums}@property --tw-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-z{syntax:"*";inherits:false;initial-value:0}@property --tw-rotate-x{syntax:"*";inherits:false}@property --tw-rotate-y{syntax:"*";inherits:false}@property --tw-rotate-z{syntax:"*";inherits:false}@property --tw-skew-x{syntax:"*";inherits:false}@property --tw-skew-y{syntax:"*";inherits:false}@property --tw-space-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-space-x-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-divide-x-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-divide-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-gradient-position{syntax:"*";inherits:false}@property --tw-gradient-from{syntax:"<color>";inherits:false;initial-value:#0000}@property --tw-gradient-via{syntax:"<color>";inherits:false;initial-value:#0000}@property --tw-gradient-to{syntax:"<color>";inherits:false;initial-value:#0000}@property --tw-gradient-stops{syntax:"*";inherits:false}@property --tw-gradient-via-stops{syntax:"*";inherits:false}@property --tw-gradient-from-position{syntax:"<length-percentage>";inherits:false;initial-value:0%}@property --tw-gradient-via-position{syntax:"<length-percentage>";inherits:false;initial-value:50%}@property --tw-gradient-to-position{syntax:"<length-percentage>";inherits:false;initial-value:100%}@property --tw-leading{syntax:"*";inherits:false}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-tracking{syntax:"*";inherits:false}@property --tw-ordinal{syntax:"*";inherits:false}@property --tw-slashed-zero{syntax:"*";inherits:false}@property --tw-numeric-figure{syntax:"*";inherits:false}@property --tw-numeric-spacing{syntax:"*";inherits:false}@property --tw-numeric-fraction{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-backdrop-blur{syntax:"*";inherits:false}@property --tw-backdrop-brightness{syntax:"*";inherits:false}@property --tw-backdrop-contrast{syntax:"*";inherits:false}@property --tw-backdrop-grayscale{syntax:"*";inherits:false}@property --tw-backdrop-hue-rotate{syntax:"*";inherits:false}@property --tw-backdrop-invert{syntax:"*";inherits:false}@property --tw-backdrop-opacity{syntax:"*";inherits:false}@property --tw-backdrop-saturate{syntax:"*";inherits:false}@property --tw-backdrop-sepia{syntax:"*";inherits:false}


/* Backup & Version Badge Utilities */
.bg-amber-600 { background-color: #d97706 !important; }
.hover\:bg-amber-700:hover { background-color: #b45309 !important; }
.text-teal-200 { color: #99f6e4 !important; }

.pr-16{padding-right:4rem}

/* ポップアップ表示中は下の画面のスクロールを禁止する */
html.popup-scroll-locked,body.popup-scroll-locked {overflow:hidden!important;overscroll-behavior:none!important;}
body.popup-scroll-locked main,body.popup-scroll-locked .desktop-sidebar {overflow:hidden!important;}

.fixed.inset-0 {
  overscroll-behavior: contain;
}


/* Cashflow planning: fixed month headers and row labels. */
.cashflow-plan { background:#fff; border:1px solid #dbe3ed; border-radius:14px; padding:20px; min-width:0; color:#1e293b; }
.cp-toolbar { display:flex; align-items:center; flex-wrap:wrap; gap:12px; margin-bottom:14px; }
.cp-toolbar h2 { font-size:20px; font-weight:700; margin-right:auto; }
.cashflow-plan button { border:1px solid #cbd5e1; border-radius:6px; background:#fff; padding:6px 10px; cursor:pointer; font-size:12px; }
.cashflow-plan button:hover { background:#eff6ff; }
.cashflow-plan button:disabled { opacity:.4; cursor:default; }
.cp-toolbar select,.cp-toolbar input { border:1px solid #cbd5e1; border-radius:6px; padding:7px; }
.cp-toolbar input[type=number] { width:90px; }
.cp-hint { font-size:12px; color:#64748b; margin:10px 0; }
.cp-grid { overflow:auto; max-height:65vh; border:1px solid #cbd5e1; }
.cp-grid table { border-collapse:separate; border-spacing:0; width:max-content; min-width:100%; font-size:12px; }
.cp-grid th,.cp-grid td { border-right:1px solid #e2e8f0; border-bottom:1px solid #e2e8f0; padding:6px; white-space:nowrap; text-align:right; min-width:114px; background:#fff; }
.cp-grid .cp-row-label { position:sticky; left:0; z-index:2; min-width:240px; max-width:300px; text-align:left; }
.cp-grid .cp-mobile-context-cell { display:none; }
.cp-grid thead th { position:sticky; top:0; z-index:3; background:#1e3594; color:#fff; }
.cp-grid thead .cp-row-label { z-index:4; }
.cp-grid th input { width:100%; min-width:220px; background:transparent; padding:4px; }
.cp-amount { width:110px; text-align:right; background:transparent; padding:4px; border-radius:3px; font-variant-numeric:tabular-nums; }
.cp-amount:focus,.cp-grid th input:focus { outline:2px solid #3b82f6; background:#eff6ff; }
.cp-section th,.cp-section td { background:#e8eefb; text-align:left; font-weight:700; }
.cp-summary th,.cp-summary td { background:#f1f5f9; font-weight:700; }
.cp-closing th,.cp-closing td { background:#dceee9; }
.cp-negative { color:#be123c; }
.cp-actions { min-width:260px!important; }
.cp-actions button { padding:3px 6px; margin:0 2px; }
@media print {
  body * { visibility:hidden; }
  .cashflow-plan,.cashflow-plan * { visibility:visible; }
  .cashflow-plan { position:absolute; inset:0; border:0; padding:0; }
  .cashflow-plan button,.cp-actions,.cp-hint { display:none!important; }
  .cp-grid { overflow:visible; max-height:none; border:0; }
  .cp-grid table { width:100%; min-width:0; font-size:7px; }
  .cp-grid th,.cp-grid td { min-width:0; padding:2px; }
  .cp-grid .cp-row-label { min-width:100px; position:static; }
  .cp-grid th input { min-width:0; width:100px; }
  .cp-grid .cp-amount { width:60px; font-size:7px; }
  .cp-grid thead th { position:static; }
  .cp-grid tr { break-inside:avoid; }
  @page { size:A3 landscape; margin:10mm; }
}

.cp-modal-backdrop { position:fixed; inset:0; background:#0f172a88; z-index:100; display:flex; align-items:center; justify-content:center; padding:20px; }
.cp-modal { background:white; padding:24px; border-radius:14px; width:420px; max-width:100%; box-shadow:0 20px 60px #0004; }
.cp-modal h3 { font-weight:700; margin-bottom:16px; }
.cp-modal input { width:100%; padding:10px; border:1px solid #94a3b8; border-radius:6px; margin-bottom:18px; }

.loan-scroll { overflow:auto; max-height:65vh; margin:16px 0 24px; border:1px solid #dbe3ed; }
.loan-table { width:100%; border-collapse:separate; border-spacing:0; font-size:13px; }
.loan-table th,.loan-table td { text-align:left; white-space:nowrap; padding:10px; border-bottom:1px solid #e2e8f0; }
.loan-table th { position:sticky; top:0; background:#1e3594; color:white; z-index:1; }
.loan-table td button { margin-left:6px; }
.loan-modal { width:680px; max-height:90vh; overflow:auto; }
.loan-form-grid { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.loan-field { display:flex; flex-direction:column; gap:6px; font-size:13px; }
.loan-field input,.loan-field select { padding:9px; border:1px solid #cbd5e1; border-radius:6px; margin:0; }
.loan-field input:disabled { background:#f1f5f9; }
@media(max-width:600px) { .loan-form-grid { grid-template-columns:1fr; } }
/* Finance screens share the existing application's typography and color tokens. */
@media screen {
.cashflow-plan { border-color:var(--color-stone-200); border-radius:16px; padding:20px; box-shadow:0 2px 5px #1c191708; color:var(--color-stone-700); }
.cp-toolbar { gap:12px; margin-bottom:20px; }
.cp-toolbar label { font-size:var(--text-xs); font-weight:600; color:var(--color-stone-600); }
.cp-toolbar h2 { font-size:var(--text-sm); color:#1e3594; }
.cashflow-plan button { border-color:var(--color-stone-200); border-radius:12px; padding:9px 14px; font-weight:600; color:var(--color-stone-600); transition:background .15s,border-color .15s; }
.cashflow-plan button:hover { background:#eef3ff; border-color:#b8ccff; color:#4169ff; }
.cashflow-plan button.finance-primary,.cashflow-plan button[type=submit] { background:#4169ff; border-color:#4169ff; color:white; box-shadow:0 2px 4px #4169ff22; }
.cashflow-plan button.finance-primary:hover,.cashflow-plan button[type=submit]:hover { background:#3158ee; }
.cashflow-plan button.finance-danger { color:#be123c; }
.cashflow-plan button:focus-visible { outline:2px solid #4169ff; outline-offset:3px; }
.cp-toolbar select,.cp-toolbar input,.cp-modal input,.loan-field select,.loan-field textarea { background:var(--color-stone-50); border:1px solid var(--color-stone-200); border-radius:12px; padding:10px 12px; color:var(--color-stone-700); }
.loan-field textarea { resize:vertical; }
.cp-toolbar select:focus,.cp-toolbar input:focus,.cp-modal input:focus,.loan-field select:focus,.loan-field textarea:focus { outline:2px solid #b8ccff; border-color:#4169ff; }
.cp-hint { color:var(--color-stone-500); font-size:var(--text-xs); line-height:1.8; }
.cp-grid,.loan-scroll { border-color:var(--color-stone-200); border-radius:16px; }
.cp-grid thead th,.loan-table th { background:var(--color-stone-50); color:var(--color-stone-600); font-size:var(--text-xs); font-weight:600; padding:12px 10px; border-bottom:1px solid var(--color-stone-200); }
.loan-table td { padding:14px 12px; font-size:var(--text-xs); border-color:var(--color-stone-100); }
.loan-table tbody tr:hover td { background:#f5f8ff; }
.loan-table td:nth-child(2),.loan-table td:nth-child(3),.loan-table td:nth-child(7),.loan-table td:nth-child(9),.loan-table td:nth-child(10) { text-align:right; font-variant-numeric:tabular-nums; }
.cp-grid td { font-variant-numeric:tabular-nums; }
.cp-section th,.cp-section td { background:#eef3ff; color:#1e3594; }
.cp-summary th,.cp-summary td { background:var(--color-stone-50); }
.cp-closing th,.cp-closing td { background:#ecfdf5; color:#065f46; }
.cp-modal { border-radius:16px; border:1px solid var(--color-stone-200); padding:20px; box-shadow:0 24px 80px #0f172a33; }
.cp-modal h3 { color:#1e3594; font-size:var(--text-base); margin-bottom:22px; }
.cp-modal .cp-toolbar:last-child { justify-content:flex-end; border-top:1px solid var(--color-stone-200); padding-top:18px; margin-bottom:0; }
.loan-form-grid { gap:18px; }
.finance-status { display:inline-flex; border-radius:999px; padding:5px 10px; font-size:var(--text-xs); font-weight:700; border:1px solid transparent; }
.finance-status.is-active { color:#1d4ed8; background:#eff6ff; border-color:#bfdbfe; }
.finance-status.is-deferred { color:#92400e; background:#fffbeb; border-color:#fde68a; }
.finance-status.is-paid { color:#047857; background:#ecfdf5; border-color:#a7f3d0; }
.finance-status.is-error { color:#be123c; background:#fff1f2; border-color:#fecdd3; }
.finance-status.is-scheduled { color:var(--color-stone-600); background:var(--color-stone-100); border-color:var(--color-stone-200); }

.cashflow-plan { font-family:inherit; font-size:var(--text-xs); line-height:var(--text-xs--line-height); }
.cashflow-plan button,.cashflow-plan input,.cashflow-plan select,.cashflow-plan textarea { font-family:inherit; font-size:var(--text-xs); line-height:var(--text-xs--line-height); }
.cashflow-plan h2 { font-size:var(--text-sm); font-weight:700; color:var(--color-stone-800); }
.cashflow-plan h3 { color:var(--color-stone-800); }
.cp-grid table,.loan-table,.loan-field { font-size:var(--text-xs); line-height:var(--text-xs--line-height); }
.loan-field > span { font-weight:600; color:var(--color-stone-600); }
.cp-grid th,.cp-grid td { border-color:var(--color-stone-200); }
.cp-grid th input { font-weight:500; }
.cp-summary th input { font-weight:700; }
.cp-grid .cp-amount { width:120px; }
.cp-actions { min-width:340px!important; }
.loan-table td button { border-radius:8px; padding:6px 10px; border-color:var(--color-teal-200); color:var(--color-teal-600); background:var(--color-teal-50); }
.cp-modal { max-height:88vh; overflow:auto; }
.cp-modal h3 { padding-bottom:16px; border-bottom:1px solid var(--color-stone-200); }
.cp-modal-backdrop { background:rgb(15 23 42 / .35); backdrop-filter:blur(2px); }
.cashflow-plan [role=button] { flex-shrink:0; vertical-align:middle; }

@media(max-width:640px) { .cashflow-plan { padding:16px; border-radius:16px; } .cp-modal { padding:20px; } }
}
@media print { .cashflow-plan [role=button] { display:none!important; } }

.transfer-table td { white-space:pre-wrap; overflow-wrap:anywhere; text-align:left!important; }
.transfer-table td.transfer-amount { text-align:right!important; white-space:nowrap; }
@media screen {
 .transfer-table th:first-child,.transfer-table td:first-child { min-width:140px; width:140px; white-space:nowrap; }
 .transfer-table th:nth-child(2),.transfer-table td:nth-child(2) { min-width:200px; width:200px; }
 .transfer-table .transfer-holder { min-width:200px; width:200px; }
 .transfer-table .transfer-notes { min-width:260px; width:260px; }
}
@media print {
 @page transfer-list { size:A4 landscape; margin:10mm; }
 .transfer-management { page:transfer-list; }
 .transfer-management .transfer-controls,.transfer-management .transfer-action,.transfer-management .cp-modal-backdrop { display:none!important; }
 .transfer-management .loan-scroll { overflow:visible; max-height:none; border:0; }
 .transfer-management .transfer-table { width:100%; min-width:0; font-size:11px; line-height:1.45; table-layout:fixed; }
 .transfer-management .transfer-table th,.transfer-management .transfer-table td { min-width:0; padding:4px; white-space:pre-line; overflow-wrap:anywhere; position:static; font-size:11px!important; }
 .transfer-management .transfer-table .finance-status { font-size:inherit; white-space:normal; }
 .transfer-management .transfer-table th:nth-child(1) {width:9%;}
 .transfer-management .transfer-table th:nth-child(2) {width:15%;}
 .transfer-management .transfer-table th:nth-child(3) {width:10%;}
 .transfer-management .transfer-table th:nth-child(4) {width:10%;}
 .transfer-management .transfer-table th:nth-child(5) {width:8%;}
 .transfer-management .transfer-table th:nth-child(6) {width:6%;}
 .transfer-management .transfer-table th:nth-child(7) {width:10%;}
 .transfer-management .transfer-table th:nth-child(8) {width:12%;}
 .transfer-management .transfer-table th:nth-child(9) {width:14%;}
 .transfer-management .transfer-table th:nth-child(10) {width:6%;}
 .transfer-management tr { break-inside:avoid; }
 .transfer-management thead { display:table-header-group; }
}

/* Finance list actions and empty states follow the shared list presentation. */
.loan-table button { white-space:nowrap; flex-shrink:0; }
.transfer-table .transfer-action { min-width:90px; width:90px; white-space:nowrap; }
.finance-empty { padding:2.5rem; text-align:center; color:var(--color-stone-400); font-size:var(--text-xs); }
.cashflow-plan .cp-toolbar button.finance-danger { color:var(--color-rose-700); border-color:var(--color-rose-200); background:var(--color-rose-50); margin-right:auto; }
.cashflow-plan .cp-toolbar button.finance-danger:hover { background:var(--color-rose-100); }

/* Export banners size to the available content width, including the sidebar. */
.cashflow-view { container-type:inline-size; min-width:0; }
.cashflow-annual-filters { display:grid; grid-template-columns:minmax(240px,2fr) minmax(160px,1fr) minmax(140px,1fr) minmax(200px,1fr); gap:12px; padding:16px; border:1px solid #e2e8f0; border-radius:16px; background:white; }
@container (min-width:641px) and (max-width:900px) { .cashflow-annual-filters { grid-template-columns:repeat(2,minmax(0,1fr)); } }
.cashflow-annual-summary { display:grid; gap:10px; padding:18px; border:1px solid #c7d2fe; border-radius:16px; background:#eef2ff; color:#1e3a8a; font-size:13px; line-height:1.7; overflow-wrap:anywhere; }
.cashflow-annual-summary small,.cashflow-annual-legend { font-size:11px; color:#64748b; }
.cashflow-annual-panel { min-width:0; }
.billing-items-section { min-width:0; padding:16px; background:white; border:1px solid #e2e8f0; border-radius:12px; }
.billing-items-section h4 { font-size:var(--ui-heading,16px); font-weight:700; }
.billing-items-scroll { overflow-x:auto; margin-top:12px; }
.billing-items-table { width:100%; min-width:1100px; border-collapse:collapse; font-size:var(--ui-body,13.5px); }
.billing-items-table th,.billing-items-table td { padding:12px; border-bottom:1px solid #e2e8f0; text-align:left; vertical-align:top; }
.billing-items-table th { background:#f8fafc; white-space:nowrap; }
.billing-items-table td:first-child { min-width:200px; white-space:pre-wrap; overflow-wrap:anywhere; }
.billing-item-actions { display:flex; flex-wrap:wrap; gap:8px; }
.billing-list-scroll { width:100%; max-width:100%; min-width:0; overflow-x:auto; overscroll-behavior-x:contain; }
.billing-projects-table { min-width:1200px; }
.billing-project-info summary { cursor:pointer; font-size:var(--ui-body,13.5px); font-weight:600; color:#115e59; }
.billing-project-info[open] > div { margin-top:12px; }
.billing-status-field { display:flex; align-items:center; flex-wrap:wrap; gap:8px; font-size:var(--ui-body,13.5px); font-weight:600; }
.billing-status-select { box-sizing:border-box; min-width:110px; height:var(--ui-control-height,40px); min-height:var(--ui-control-height,40px); line-height:var(--ui-control-line,22px); padding:8px 12px; border:1px solid #93c5fd; border-radius:var(--ui-radius,8px); background:#eff6ff; color:#1e40af; }
.billing-status-select.is-on-hold { background:#fffbeb; border-color:#fcd34d; color:#92400e; }
.billing-status-select.is-settled { background:#f1f5f9; border-color:#cbd5e1; color:#475569; }
tr.billing-settled-row { background:#f3f4f6; }
tr.billing-settled-row:hover { background:#e5e7eb; }
.cashflow-annual-panel > .invoice-toolbar { flex-wrap:wrap; }
.cashflow-annual-scroll { max-width:100%; overflow-x:auto; border:1px solid #e2e8f0; border-radius:12px; }
.cashflow-annual-table { width:100%; min-width:1664px; border-collapse:collapse; font-size:12px; text-align:left; }
.cashflow-annual-table th,.cashflow-annual-table td { border-bottom:1px solid #e2e8f0; padding:12px; vertical-align:top; }
.cashflow-annual-table th { background:#f8fafc; color:#475569; font-weight:600; white-space:nowrap; }
.cashflow-annual-table th:nth-child(2),.cashflow-annual-table td:nth-child(2) { min-width:230px; }
.cashflow-annual-table th:nth-child(n+3),.cashflow-annual-table td:nth-child(n+3) { min-width:96px; text-align:center; padding:8px 5px; }
.cashflow-contract-heading { display:flex; align-items:flex-start; justify-content:space-between; gap:12px; }
.cashflow-contract-heading > div > strong { font-size:15px; }
.cashflow-annual-table td.cashflow-target-month { background:#dcfce7; }
.cashflow-annual-table td.cashflow-outside-contract { background:#fafaf9; color:#a8a29e; }
.cashflow-month-button { display:flex; flex-direction:column; gap:5px; width:100%; padding:9px 3px; border:1px solid #e2e8f0; border-radius:9px; background:transparent; color:#92400e; font-size:11px; cursor:pointer; }
.cashflow-month-button.is-settled { color:#1d4ed8; }
.cashflow-month-button:hover { border-color:#4169ff; box-shadow:0 0 0 1px #4169ff; }
.cashflow-annual-table .cashflow-contract-completed td { background:#e5e7eb!important; color:#6b7280; }
.cashflow-annual-empty { padding:32px!important; text-align:center; color:#64748b; }
.cashflow-reconcile-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
.cashflow-reconcile-grid > div { grid-column:auto; min-width:0; }
.cashflow-reconcile-grid > div:last-child { grid-column:1/-1; flex-wrap:wrap; }
.cashflow-reconcile-grid > div:last-child > div { flex:1 1 240px; min-width:0; }
.cashflow-schedules-table .cashflow-schedule-content-cell { min-width:340px; width:340px; white-space:normal; overflow-wrap:anywhere; }
@container (max-width:640px) { .cashflow-annual-filters,.cashflow-reconcile-grid { grid-template-columns:minmax(0,1fr); } }
@container (min-width:1100px) { .cashflow-reconcile-grid { grid-template-columns:minmax(0,1fr) minmax(0,1fr) minmax(320px,1fr); } .cashflow-reconcile-grid > div:last-child { grid-column:auto; } }
.invoice-button { display:inline-flex; flex:0 0 auto; align-self:center; align-items:center; justify-content:center; white-space:nowrap; height:auto; min-height:34px; padding:7px 12px; border:1px solid #c7d2fe; border-radius:9px; background:#eef2ff; color:#3730a3; font-size:12px; font-weight:600; cursor:pointer; text-decoration:none; }
.cashflow-annual-table th:first-child,.cashflow-annual-table td:first-child { width:220px; min-width:220px; }
.cashflow-contract-labels { display:flex; align-items:center; flex-wrap:wrap; gap:4px 8px; margin-top:4px; }
.cashflow-contract-labels .cashflow-direction { margin-bottom:0; white-space:nowrap; }
.cashflow-annual-table .cashflow-contract-labels + .category-master-badge { margin-top:4px; }
.cashflow-annual-table td:first-child > div:first-child { flex-wrap:wrap; row-gap:8px; }
.cashflow-annual-table td:first-child > div:first-child > div:first-child { flex:1 1 200px; min-width:0; }
.cashflow-annual-table td:first-child > div { overflow-wrap:anywhere; line-height:1.7; }
.invoice-button:disabled,.invoice-button[aria-disabled=true] { opacity:.5; cursor:not-allowed; }
.invoice-backdrop { position:fixed; inset:0; z-index:70; background:#0f172a66; display:flex; align-items:center; justify-content:center; padding:20px; }
.invoice-modal { background:white; color:#1e293b; width:min(760px,100%); min-width:0; max-height:90dvh; overflow:auto; overscroll-behavior:contain; border-radius:18px; padding:24px; display:flex; flex-direction:column; gap:16px; box-shadow:0 20px 60px #0003; }
.invoice-toolbar { display:flex; gap:16px; align-items:center; justify-content:space-between; }
.invoice-field { display:flex; flex-direction:column; gap:6px; min-width:0; font-size:12px; font-weight:600; }
.invoice-field input,.invoice-field select,.invoice-field textarea,.invoice-tax-setting input { min-width:0; width:100%; padding:10px; border:1px solid #cbd5e1; border-radius:8px; background:white; color:#1e293b; }
.invoice-field textarea { resize:vertical; }
.invoice-tags { display:flex; flex-wrap:wrap; gap:8px; }
.invoice-tags button { padding:6px 10px; border-radius:8px; border:1px solid #c7d2fe; background:#eef2ff; color:#3730a3; cursor:pointer; font-size:12px; }
.invoice-preview { white-space:pre-wrap; overflow-wrap:anywhere; background:#f8fafc; border:1px solid #e2e8f0; border-radius:10px; padding:16px; font-size:12px; line-height:1.8; }
.invoice-tax-setting { display:flex; flex-wrap:wrap; align-items:end; gap:12px; padding:12px 0; font-size:12px; }
.invoice-tax-setting label { display:grid; gap:6px; }
.invoice-tax-setting input { width:110px; }
.invoice-tax-setting label > span { display:flex; align-items:center; gap:4px; min-height:22px; }
.invoice-tax-setting input,.invoice-tax-setting > .invoice-button { box-sizing:border-box; height:40px; min-height:40px; padding:8px 12px; font-size:var(--ui-body); line-height:22px; }
.invoice-tax-setting > .invoice-button { align-self:flex-end; }
.invoice-tax-setting > p { flex-basis:100%; margin:0; }
.invoice-tax-setting > p:empty { display:none; }
.app-shell { height:100vh; height:100dvh; min-height:0; overflow:hidden; }
.app-shell > header { flex-shrink:0; position:relative; padding-bottom:22px; }
.runtime-version { position:absolute; left:42px; bottom:3px; font-family:ui-monospace,monospace; font-size:10px; font-weight:700; line-height:16px; color:#1e3594; white-space:nowrap; }
.workspace-shell { min-height:0; }
.desktop-sidebar { min-height:0; height:100%; overscroll-behavior:contain; scrollbar-gutter:stable; }
.workspace-shell > main { min-height:0; height:100%; overscroll-behavior:contain; }
.release-version-note { padding:12px 16px; border-radius:12px; background:#f1f5f9; color:#475569; font-size:12px; line-height:1.7; }
.system-version-history { min-width:0; border:1px solid #cbd5e1; border-radius:16px; overflow:hidden; }
.system-version-history > summary { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:14px 16px; background:#f1f5f9; color:#1e3594; font-weight:700; cursor:pointer; list-style:none; }
.system-version-history > summary::-webkit-details-marker { display:none; }
.system-version-history > summary:focus-visible { outline:2px solid #4169ff; outline-offset:-3px; }
.system-version-history .history-chevron { transition:transform .15s; }
.system-version-history[open] .history-chevron { transform:rotate(180deg); }
.system-version-history > div { max-width:100%; border:0; border-radius:0; }
.system-version-panel .system-version-history thead th { color:#fff; background:#1e3594; }
.system-version-panel { min-width:0; max-width:100%; container:system-version / inline-size; overflow-wrap:anywhere; }
.system-version-panel > div { min-width:0; max-width:100%; }
.system-version-panel > div:first-child { flex-direction:column; align-items:stretch; }
.system-version-panel > div:first-child > div { min-width:0; max-width:100%; }
.system-version-panel > div:first-child > div:last-child { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); flex-shrink:1; }
.system-version-panel button { min-width:0; max-width:100%; white-space:normal; overflow-wrap:anywhere; line-height:1.6; }
.system-version-panel > div:first-child span { max-width:100%; }
.system-version-panel > div > .grid { grid-template-columns:repeat(2,minmax(0,1fr)); align-items:end; }
.system-version-panel > div > .grid > div { grid-column:auto; min-width:0; }
.system-version-panel input { min-width:0; max-width:100%; box-sizing:border-box; }
.system-version-panel label { display:block; min-height:1.6em; }
.system-version-panel > .overflow-x-auto { width:100%; }
.system-version-panel table { min-width:720px; table-layout:fixed; }
.system-version-panel th:nth-child(1) { width:160px; }
.system-version-panel th:nth-child(2) { width:155px; }
.system-version-panel th:nth-child(3) { width:185px; }
.system-version-panel td { vertical-align:top; white-space:normal; overflow-wrap:anywhere; }
.system-version-panel td:first-child > span { flex-wrap:wrap; }
@container system-version (min-width:1100px) {
 .system-version-panel > div:first-child { flex-direction:row; align-items:center; }
 .system-version-panel > div:first-child > div:first-child { flex:1 1 0%; }
 .system-version-panel > div:first-child > div:last-child { flex:0 1 420px; }
 .system-version-panel > div > .grid { grid-template-columns:minmax(130px,1fr) minmax(180px,2fr) minmax(180px,2fr) minmax(140px,1fr); }
}
@container system-version (max-width:480px) {
 .system-version-panel > div:first-child { padding:16px; }
 .system-version-panel > div:first-child > div:last-child { grid-template-columns:minmax(0,1fr); }
 .system-version-panel > div > .grid { grid-template-columns:minmax(0,1fr); }
 .system-version-panel h2 { font-size:16px; line-height:1.6; }
}
.system-export-panel { min-width:0; max-width:100%; container-type:inline-size; overflow-wrap:anywhere; }
.system-export-panel::before { content:"ZIPの設置先：mugen-help/ は公開領域の外、public_html/hp/ は公開側へ配置してください。ZIP全体を公開側へ置かないでください。"; display:block; padding:12px 16px; margin-bottom:16px; border:1px solid #fcd34d; border-radius:12px; background:#fffbeb; color:#92400e; font-size:12px; font-weight:600; line-height:1.7; }
dialog { position:fixed; inset:0; margin:auto; width:min(420px,90vw); max-width:90vw; height:fit-content; max-height:90dvh; overflow:auto; padding:24px; border:1px solid #cbd5e1; border-radius:16px; box-shadow:0 20px 60px #0003; }
dialog::backdrop { background:#0f172a66; }
dialog form { display:grid; gap:16px; }
dialog label { display:grid; gap:12px; }
dialog input { width:100%; min-width:0; padding:10px; border:1px solid #cbd5e1; border-radius:8px; }
dialog button { padding:10px 16px; border-radius:8px; background:#1e3594; color:white; cursor:pointer; }
.system-export-panel > div:first-child { display:flex; flex-direction:column; align-items:stretch; }
.system-export-panel > div:first-child > div { min-width:0; max-width:100%; }
.system-export-actions { width:100%; align-items:stretch; min-width:0; }
.system-export-actions button { max-width:100%; white-space:normal; text-align:left; justify-content:center; }
.system-export-actions span,.system-export-panel code { min-width:0; overflow-wrap:anywhere; }
.system-export-panel svg { flex-shrink:0; }
.system-export-panel > .grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
.system-export-panel > .grid > div { min-width:0; }
@container (min-width:1000px) {
 .system-export-panel > div:first-child { flex-direction:row; align-items:center; }
 .system-export-panel > div:first-child > div:first-child { flex:1 1 0%; }
 .system-export-actions { flex:0 1 360px; width:360px; }
}
@container (min-width:800px) { .system-export-panel > .grid { grid-template-columns:repeat(4,minmax(0,1fr)); } }
@container (max-width:420px) { .system-export-panel > .grid { grid-template-columns:minmax(0,1fr); } }
@media(max-width:640px) { .system-export-panel { padding:16px; } .system-export-actions button { padding:12px; } }

/* Preserve readable financial columns on narrow screens with horizontal scrolling. */
.cashflow-contracts-table { min-width:1500px; }
.cashflow-contracts-table th:nth-child(2),.cashflow-contracts-table td:nth-child(2) { min-width:280px; width:280px; overflow-wrap:anywhere; }
.cashflow-contracts-table th:nth-child(5),.cashflow-contracts-table td:nth-child(5) { min-width:250px; width:250px; }
.cashflow-view .cashflow-schedules-table th:nth-child(5),.cashflow-view .cashflow-schedules-table td:nth-child(5) { min-width:190px; white-space:nowrap; }
.cashflow-allocations-table { min-width:1300px; }
.cashflow-allocations-table th:nth-child(4),.cashflow-allocations-table td:nth-child(4) { min-width:160px; white-space:nowrap; }
.cashflow-allocations-table th:nth-child(5),.cashflow-allocations-table td:nth-child(5) { min-width:320px; width:320px; overflow-wrap:anywhere; }
.cashflow-allocations-table th:nth-child(6),.cashflow-allocations-table td:nth-child(6) { min-width:140px; white-space:nowrap; }

.cashflow-view .cashflow-schedules-table th:nth-child(6),.cashflow-view .cashflow-schedules-table td:nth-child(6) { min-width:220px; width:220px; white-space:nowrap; }

.cashflow-annual-table .cashflow-annual-mail-actions { min-width:160px; width:160px; vertical-align:middle; white-space:nowrap; }

.cashflow-annual-table td:first-child .cashflow-contract-heading { flex-wrap:nowrap; align-items:flex-start; }
.cashflow-annual-table td:first-child .cashflow-contract-heading > div:first-child { flex:1 1 0; min-width:0; }
.cashflow-direction { display:inline-block; padding:2px 10px; border-radius:6px; font-weight:700; color:#fff; line-height:1.6; margin-bottom:4px; }
.cashflow-direction.is-inflow { background:#2563eb; }
.cashflow-direction.is-outflow { background:#dc2626; }
.cashflow-row-actions { display:flex; flex-direction:column; align-items:center; gap:6px; }

.cashflow-annual-table .cashflow-annual-detail-actions { width:76px; min-width:76px; padding:8px; text-align:center; vertical-align:middle; }
.cashflow-annual-detail-actions .invoice-button { min-height:30px; padding:5px 10px; font-size:12px; }
.cashflow-details-dialog { position:fixed; inset:0; margin:auto; box-sizing:border-box; width:min(680px,calc(100vw - 32px)); max-height:85vh; overflow:auto; padding:0; border:1px solid #e2e8f0; border-radius:16px; background:#f8fafc; color:#1c1917; font-size:12px; line-height:1.6; box-shadow:0 24px 64px #0f172a30; }
.cashflow-details-dialog::backdrop { background:rgba(15,23,42,.4); }
.cashflow-contract-details[open] { display:flex; flex-direction:column; overflow:hidden; }
.cashflow-contract-details > .cashflow-details-body { flex:1; min-height:0; overflow:auto; }
.cashflow-contract-details > .cashflow-details-body { display:block; }
.cashflow-contract-details .cashflow-details-section { overflow:visible; min-width:0; margin-bottom:14px; }
.cashflow-contract-details .cashflow-details-header > div { min-width:0; }
.cashflow-contract-details .cashflow-details-header h3 { overflow-wrap:anywhere; }
.cashflow-contract-details .cashflow-details-header > button { flex-shrink:0; }
.cashflow-contract-details .cashflow-details-fields dt,.cashflow-contract-details .cashflow-details-fields dd { min-width:0; overflow-wrap:anywhere; }
.cashflow-recalculate .invoice-button.finance-primary { background:#4169ff; border-color:#4169ff; color:#fff; }
.cashflow-monthly-editor .invoice-button.finance-primary { background:#4169ff; border-color:#4169ff; color:#fff; }
.cashflow-contract-amount-options { display:flex; flex-wrap:wrap; align-items:flex-end; gap:12px 20px; }
.cashflow-contract-amount-options .contract-amount-mode-field { width:200px; max-width:100%; flex:0 0 auto; }
.cashflow-contract-tax-option { display:flex; align-items:center; gap:4px; min-height:40px; }
.project-list-row-cancelled { background:#fff1f2; }
.project-list-row-cancelled:hover { background:#ffe4e6; }
.project-list-row-on-hold { background:#fffbeb; }
.project-list-row-on-hold:hover { background:#fef3c7; }
.cashflow-recalculate .invoice-button.finance-cancel { background:#fff; border-color:#cbd5e1; color:#334155; }
.cashflow-contracts-table { min-width:1100px; table-layout:auto; }
.cashflow-contracts-table th { background:#faf9f6; }
.cashflow-contracts-table th:nth-child(2),.cashflow-contracts-table th:nth-child(3) { min-width:200px; }
.cashflow-contracts-table th:nth-child(5),.cashflow-contracts-table th:nth-child(6),.cashflow-contracts-table th:nth-child(8) { min-width:150px; }
.cashflow-contracts-table td { overflow-wrap:anywhere; }
.cashflow-details-footer { flex-shrink:0; display:flex; justify-content:flex-start; padding:16px 20px; border-top:1px solid #e2e8f0; background:white; }
.cashflow-list-filters { padding:16px; border:1px solid #e7e5e4; border-radius:16px; background:white; display:grid; gap:12px; }
.cashflow-filter-fields { display:flex; flex-wrap:wrap; justify-content:flex-start; gap:10px 6px; align-items:flex-end; }
.cashflow-filter-fields > .ui-filter-field { width:140px; max-width:100%; min-width:0; }
.cashflow-filter-fields > .ui-filter-field:has(.customer-select-row) { width:180px; }
.cashflow-filter-fields > .cashflow-filter-source {width:170px;}
.cashflow-filter-fields > .cashflow-filter-keyword {width:160px;}
.cashflow-filter-fields > .cashflow-filter-direction {width:120px;}
.cashflow-filter-fields > .cashflow-filter-paymentStatus {width:220px;}
.cashflow-filter-fields > .cashflow-filter-date {width:145px;}
.cashflow-filter-fields > .cashflow-filter-sortBy {width:185px;}
.cashflow-filter-fields select { width:100%; text-align:left; }
.cashflow-filter-fields .customer-select-row { display:flex; gap:8px; min-width:0; }
.cashflow-filter-fields .customer-select-row select { flex:1; min-width:0; }
.cashflow-filter-fields .customer-select-row button { flex-shrink:0; }
.cashflow-side-panel:has(.cashflow-allocation-panel) { width:min(1100px,100vw); }
.cashflow-details-header { position:sticky; top:0; z-index:1; display:flex; align-items:flex-start; justify-content:space-between; gap:16px; padding:16px 20px; background:white; border-bottom:1px solid #e2e8f0; }
.cashflow-details-header h3 { margin:0; font-size:15px; font-weight:700; }
.cashflow-details-header p { margin:4px 0 0; font-size:12px; color:#64748b; overflow-wrap:anywhere; }
.cashflow-details-header .invoice-button { font-size:12px; min-height:30px; padding:5px 12px; }
.cashflow-details-body { padding:16px 20px 20px; display:grid; gap:14px; }
.cashflow-details-section { background:white; border:1px solid #e2e8f0; border-radius:10px; overflow:hidden; }
.cashflow-details-section h4 { margin:0; padding:8px 12px; font-size:12px; font-weight:700; background:#eef2f7; color:#334155; }
.cashflow-details-fields { display:grid; margin:0; }
.cashflow-details-fields > div { display:grid; grid-template-columns:145px minmax(0,1fr); gap:12px; border-top:1px solid #f1f5f9; padding:7px 12px; }
.cashflow-details-fields dt { color:#64748b; font-weight:500; }
.cashflow-details-fields dd { margin:0; white-space:pre-wrap; overflow-wrap:anywhere; color:#1e293b; }
@media(max-width:480px) { .cashflow-details-header { padding:12px; } .cashflow-details-body { padding:12px; } .cashflow-details-fields > div { grid-template-columns:105px minmax(0,1fr); gap:8px; } }

.cashflow-side-panel { inset:0 0 0 auto; margin:0; width:min(680px,100vw); max-width:100vw; height:100dvh; max-height:100dvh; border-radius:0; border-width:0 0 0 1px; animation:cashflow-panel-enter .18s ease-out; }
.cashflow-delete-error { padding:12px; background:#fff1f2; color:#be123c; border:1px solid #fecdd3; border-radius:8px; }
.invoice-button.cashflow-delete-confirm { background:#dc2626; color:white; border-color:#dc2626; }
@keyframes cashflow-panel-enter { from { transform:translateX(32px); opacity:0; } to { transform:translateX(0); opacity:1; } }
@media(prefers-reduced-motion:reduce) { .cashflow-side-panel { animation:none; } }

/* Shared business UI rules. Print layouts retain their own compact typography. */
:root { --ui-body:13.5px; --ui-note:12px; --ui-heading:16px; --ui-radius:8px; }
.ui-required { display:inline-block; margin-left:6px; padding:1px 5px; border:1px solid #fecdd3; border-radius:4px; color:#be123c; background:#fff1f2; font-size:10px; font-weight:700; line-height:1.5; white-space:nowrap; vertical-align:middle; }
.ui-delete-action { display:inline-flex; align-items:center; justify-content:center; padding:6px 12px; min-height:32px; border:1px solid #fecdd3; border-radius:var(--ui-radius); background:#fff1f2; color:#be123c; font-size:var(--ui-body); font-weight:600; cursor:pointer; }
.ui-delete-action:hover { background:#ffe4e6; }
.ui-confirm-dialog > div:not([popover]):not(.cashflow-details-header):not(.cashflow-details-body):not(.record-drawer-screen-title) { max-width:none; max-height:none; width:100%; min-height:100%; box-sizing:border-box; border:0; border-radius:0; padding:24px; font-size:var(--ui-body); }
.ui-confirm-dialog h3 { font-size:var(--ui-heading); }
.ui-confirm-dialog .cp-toolbar { flex-wrap:wrap; }
.ui-confirm-dialog button { min-height:34px; border-radius:var(--ui-radius); font-size:var(--ui-body); }
@media screen {
 main { font-size:var(--ui-body); }
 :where(main,dialog,[role=dialog],[role=alertdialog]) :is(input,select,textarea) { font-family:inherit; font-size:var(--ui-body); }
 :where(main,dialog,[role=dialog],[role=alertdialog]) button:not([class*="w-4"]):not([class*="w-5"]):not([class*="h-4"]):not([class*="h-5"]):not(.cp-help) { font-family:inherit; }
 .invoice-button,.cashflow-plan button:not(.cp-help),.invoice-field,.loan-field,.cashflow-details-dialog { font-size:var(--ui-body); }
 .cashflow-details-header h3 { font-size:var(--ui-heading); }
 .cashflow-details-header p,.cashflow-details-section h4,.cashflow-details-header .invoice-button { font-size:var(--ui-note); }
 main thead th { white-space:nowrap; }
 main table { font-size:var(--ui-body); }
 .ui-assets-table { min-width:1380px; }
 .ui-assets-table th,.ui-assets-table td { padding:12px; }
 .ui-assets-table th:nth-child(1) { min-width:90px; }
 .ui-assets-table th:nth-child(2),.ui-assets-table th:nth-child(5),.ui-assets-table th:nth-child(6) { min-width:140px; }
 .ui-assets-table th:nth-child(4) { min-width:220px; }
 .ui-assets-table th:nth-child(3),.ui-assets-table th:nth-child(8) { min-width:150px; }
 .ui-assets-table th:nth-child(7),.ui-assets-table th:nth-child(9),.ui-assets-table th:nth-child(10) { min-width:110px; }
 .ui-record-drawer { font-size:var(--ui-body); }
 .ui-record-drawer > div { min-height:0; }
 .ui-record-drawer .ui-drawer-footer { flex-shrink:0; }
}

.ui-confirm-dialog:has(> .cashflow-details-header)[open] { display:flex; flex-direction:column; }
.ui-confirm-dialog > .cashflow-details-header { flex-shrink:0; }
.ui-confirm-dialog > .cashflow-details-body { min-height:0; overflow:auto; }

@media screen {
 :where(main,.ui-record-drawer,.ui-confirm-dialog) button[class*="inline-flex"],.invoice-button { border-radius:var(--ui-radius); font-size:var(--ui-body); }
 main td button:not(.cashflow-month-button):not(.cp-help):not([aria-label*="説明"]) { white-space:nowrap; }
 .ui-assets-table td:last-child { min-width:165px; }
 :where(main,dialog,.ui-record-drawer) button:focus-visible { outline:2px solid #4169ff; outline-offset:2px; }
 .ui-required { font-size:10px; }
}

.ui-detail-backdrop { justify-content:flex-end; align-items:stretch; padding:0; overflow:hidden; }
.ui-detail-backdrop > div { width:min(680px,100vw); max-width:100vw; height:100dvh; max-height:100dvh; margin:0; border-radius:0; border-width:0 0 0 1px; overflow-y:auto; box-sizing:border-box; }

.company-profile-editor { background:white; border:1px solid #e2e8f0; border-radius:16px; padding:20px; font-size:var(--ui-body); }
.company-profile-editor h3 { margin:0 0 16px; font-size:16px; font-weight:700; }
.company-profile-editor fieldset { min-inline-size:0; margin:0; padding:0; border:0; }
.company-profile-fields { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; margin-bottom:12px; }
.company-profile-wide { grid-column:1/-1; min-width:0; }
.company-postal-field { display:flex; align-items:end; gap:8px; grid-column:1/-1; }
.company-postal-field .invoice-field { max-width:200px; }
.company-continuous { display:flex; align-items:center; gap:8px; align-self:end; padding:10px 0; }
.company-continuous input { width:auto; }
.company-contact-row { grid-column:1/-1; display:grid; grid-template-columns:calc(17ch + 24px) 8rem minmax(0,1fr); gap:12px; min-width:0; }
.company-contract-row { grid-column:1/-1; display:grid; grid-template-columns:12rem minmax(0,1fr); gap:12px; align-items:end; }
.company-contract-row .company-continuous { min-height:44px; padding:0; }
.company-postal-field input,.company-postal-field .invoice-button { height:44px; box-sizing:border-box; margin:0; }
.company-postal-field .invoice-button { align-self:flex-end; }
.operation-notices { position:fixed; top:100px; left:50%; transform:translateX(-50%); z-index:120; width:min(380px,calc(100vw - 32px)); display:grid; gap:8px; pointer-events:none; }
.operation-notice { display:flex; align-items:flex-start; gap:10px; padding:14px; border:1px solid #86cba4; border-radius:10px; background:#f0fdf4; color:#14532d; box-shadow:0 8px 24px #0f172a20; pointer-events:auto; font-size:var(--ui-body); line-height:1.65; overflow-wrap:anywhere; }
.operation-notice.is-error { background:#fff1f2; color:#881337; border-color:#fda4af; }
.operation-notice.is-pending { background:#eff6ff; color:#1e3a8a; border-color:#93c5fd; }
.project-template-modal { width:min(960px,calc(100vw - 32px)); max-height:calc(100dvh - 40px); overflow:auto; }
.project-tools-scroll { overflow:auto; margin:12px 0; }
.project-tools-table { width:100%; border-collapse:collapse; font-size:var(--ui-body); }
.project-tools-table th,.project-tools-table td { padding:10px; border-bottom:1px solid #e2e8f0; text-align:left; }
.project-tools-table th { white-space:nowrap; background:#f8fafc; }
.project-tools-table td:last-child { white-space:nowrap; }
.project-tools-table input { width:100%; min-width:6rem; padding:8px; border:1px solid #cbd5e1; border-radius:6px; }
.project-tools-footer { display:flex; gap:8px; justify-content:flex-end; margin-top:16px; }
.project-tools-footer .finance-danger { margin-right:auto; }
.project-template-apply { display:flex; flex-wrap:wrap; gap:8px; align-items:end; margin-top:8px; }
.project-template-apply label { display:grid; gap:5px; font-size:var(--ui-body); }
.project-task-toolbar .project-template-apply { margin-top:0; }
.project-task-toolbar > button,.project-task-toolbar .project-template-apply > .invoice-button { align-self:flex-end; }
.project-task-toolbar button,.project-task-toolbar input,.project-task-toolbar select { box-sizing:border-box; height:var(--ui-control-height,40px); min-height:var(--ui-control-height,40px); }
.project-template-apply select,.project-template-apply input { padding:8px; border:1px solid #cbd5e1; border-radius:6px; background:white; }
.project-task-draft td { padding:10px; background:#eff6ff; vertical-align:top; }
.project-task-table {table-layout:fixed; min-width:1500px;}
.project-task-table .project-task-name-column {width:240px;min-width:0;}
.project-task-draft :is(input,select) {box-sizing:border-box;width:100%;min-width:0;height:var(--ui-control-height,40px);padding:8px;border:1px solid #cbd5e1;border-radius:8px;background:white;font:inherit;}
.project-task-order-controls {display:flex;flex-wrap:wrap;gap:4px;align-items:center;min-width:124px;}
.project-task-order-controls button {padding:4px 8px;}
.project-task-order-controls button[draggable=true] {cursor:grab;}
.project-task-dragging {opacity:0.55;}
.ui-contract-period-row input[type=date] {width:180px;max-width:100%;}
.project-task-fields { display:grid; grid-template-columns:minmax(200px,2fr) minmax(120px,1fr) 10rem 10rem auto; gap:10px; align-items:end; }
.project-task-fields label { display:grid; gap:6px; font-size:var(--ui-body); }
.project-task-fields input,.project-task-fields select { min-width:0; width:100%; padding:8px; border:1px solid #cbd5e1; border-radius:6px; }
.project-info-cell { padding:10px; min-width:90px; vertical-align:top; font-size:var(--ui-body); }
.project-info-cell summary { cursor:pointer; color:#1e40af; white-space:nowrap; }
.project-task-info-content { width:240px; max-height:180px; overflow:auto; white-space:pre-wrap; overflow-wrap:anywhere; line-height:1.6; color:#334155; }
.project-task-info-content p { margin:0 0 8px; }
.project-task-info-content p:last-child { margin-bottom:0; }
.project-info-cell details[open] { width:min(320px,70vw); }
.project-info-cell details>div { padding:10px; margin-top:8px; background:#f8fafc; border:1px solid #e2e8f0; border-radius:6px; max-height:280px; overflow:auto; white-space:pre-wrap; overflow-wrap:anywhere; }
.record-drawer-backdrop { position:fixed; inset:0; z-index:60; display:flex; justify-content:flex-end; background:#0f172a40; }
.record-drawer-panel { width:min(680px,100vw); height:100dvh; background:white; display:flex; flex-direction:column; box-shadow:-8px 0 24px #0f172a20; font-size:var(--ui-body); }
.record-drawer-screen-title { display:flex; flex-shrink:0; align-items:center; justify-content:space-between; gap:12px; padding:12px 24px; background:#4169ff; color:#fff; }
.record-drawer-screen-title h2 { margin:0; font-size:var(--ui-heading); font-weight:700; color:#fff; }
.record-drawer-screen-title .ui-dialog-close { color:#fff; background:transparent; border-color:#ffffff80; }
.record-drawer-screen-title .ui-dialog-close:hover { color:#fff; background:#ffffff26; }
.record-details-heading { flex-shrink:0; background:#fff; }
.record-details-heading > div { min-width:0; width:100%; }
.record-details-heading p { margin:0; overflow-wrap:anywhere; }
.record-details-heading .ui-note { color:#475569; font-size:var(--ui-note); }
.record-details-heading.record-drawer-header h2 { margin:6px 0; font-size:var(--ui-title,18px); font-weight:700; overflow-wrap:anywhere; }
.schedule-details > .record-details-heading { padding:20px 24px; }
.record-drawer-header { display:flex; justify-content:space-between; align-items:flex-start; gap:12px; padding:20px 24px; border-bottom:1px solid #e2e8f0; }
.record-drawer-header h2 { font-size:var(--ui-title,18px); font-weight:700; margin:6px 0; }
.record-drawer-tabs { display:flex; flex-wrap:wrap; gap:6px; padding:12px 24px; border-bottom:1px solid #e2e8f0; }
.record-drawer-tabs .is-active { background:#eff6ff; color:#1e40af; border-color:#93c5fd; }
.record-drawer-content { flex:1; min-height:0; overflow:auto; padding:20px 24px; }
.record-drawer-footer { padding:14px 24px; display:flex; justify-content:space-between; border-top:1px solid #e2e8f0; }
.record-metadata { margin-top:20px; border-top:1px solid #e2e8f0; padding-top:16px; }
.record-metadata dl { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; padding:12px; background:#f8fafc; }
.record-metadata dt,.record-comment-list small { color:#475569; font-size:var(--ui-note); }
.record-metadata { color:#475569; font-size:var(--ui-note); }
.record-metadata h3 { margin:0 0 10px; font-size:var(--ui-body); font-weight:600; }
.record-metadata dl { margin:0; border-radius:12px; }
.record-metadata dd { margin:4px 0 0; overflow-wrap:anywhere; }
@media(max-width:600px){.record-metadata dl{grid-template-columns:minmax(0,1fr);}}
.record-comment-list small { display:block; margin-top:4px; }
.record-comment-list,.attachment-list { list-style:none; padding:0; }
.record-comment-list li,.attachment-list li { border-bottom:1px solid #e2e8f0; padding:12px 0; overflow-wrap:anywhere; white-space:pre-wrap; }
.attachment-list li { display:flex; justify-content:space-between; gap:12px; align-items:flex-start; }
.attachment-list li>div:first-child { min-width:0; flex:1; }
.attachment-list li>div:last-child { display:flex; flex-wrap:wrap; gap:6px; }
.attachment-list p { margin-top:6px; color:#475569; font-size:var(--ui-note); }
.attachment-upload { border:1px solid #e2e8f0; border-radius:8px; padding:14px; margin:14px 0; }
.record-drawer-footer .finance-danger,.attachment-panel .finance-danger,.project-tools-footer .finance-danger { padding:8px 12px; min-height:40px; border:1px solid #fda4af; border-radius:8px; background:#fff1f2; color:#9f1239; font-size:var(--ui-body); cursor:pointer; }
.attachment-auth-backdrop { position:fixed; inset:0; z-index:140; background:#0f172a66; display:flex; align-items:center; justify-content:center; padding:16px; }
.attachment-auth-backdrop .invoice-modal { width:min(480px,100%); max-height:calc(100dvh - 32px); overflow:auto; }
dialog.attachment-auth-backdrop { margin:0; border:0; box-sizing:border-box; width:100vw; height:100dvh; max-width:none; max-height:none; color:inherit; }
dialog.attachment-auth-backdrop:not([open]) { display:none; }
dialog.attachment-auth-backdrop::backdrop { background:transparent; }
dialog.attachment-auth-backdrop .invoice-modal { box-sizing:border-box; min-width:0; margin:0; }
.backup-preparing-backdrop { position:fixed; inset:0; z-index:100; background:#0f172a55; display:flex; justify-content:center; align-items:center; padding:20px; }
.backup-preparing-backdrop section { background:white; border-radius:12px; padding:24px; max-width:460px; font-size:var(--ui-body); }
@media(max-width:700px) { .project-task-fields { grid-template-columns:minmax(0,1fr) minmax(0,1fr); } .project-task-fields label:first-child { grid-column:1/-1; } }
.operation-notice-icon { flex:none; font-weight:700; }
.operation-notice > span:nth-child(2) { flex:1; min-width:0; }
.operation-notice button { flex:none; width:28px; height:28px; border:0; border-radius:6px; background:transparent; color:inherit; cursor:pointer; font-size:18px; }
.operation-notice button:focus-visible { outline:2px solid currentColor; outline-offset:2px; }
.operation-inline-error { padding:10px 12px; border:1px solid #fda4af; border-radius:8px; background:#fff1f2; color:#881337; font-size:var(--ui-body); line-height:1.65; }
.operation-inline-status { color:#475569; font-size:var(--ui-note); line-height:1.65; }
.operation-field-error { margin-top:4px; color:#be123c; font-size:var(--ui-note); font-weight:500; line-height:1.6; }
[aria-invalid=true] { border-color:#e11d48; }
.operation-form-fields { min-width:0; margin:0; padding:0; border:0; }
@media print { .operation-notices { display:none; } }
@media(max-width:600px) {
 .company-contact-row,.company-contract-row { grid-template-columns:minmax(0,1fr); }
 .company-contact-row .invoice-field:nth-child(2) input { width:8rem; max-width:100%; }
 .company-contract-row .company-continuous { min-height:36px; }
}
.company-profile-footer { display:flex; justify-content:flex-end; padding-top:12px; border-top:1px solid #e2e8f0; }
.invoice-button.company-profile-save { background:#4169ff; color:white; }
.system-log-list { max-height:min(60dvh,600px); overflow-y:auto; overscroll-behavior-x:contain; overscroll-behavior-y:auto; scrollbar-gutter:stable; }
.system-log-panel { color:#334155; }
.system-log-panel pre { background-color:#f8fafc; color:#1e293b; border:1px solid #cbd5e1; line-height:1.7; }
.ui-edit-footer { display:flex; align-items:center; justify-content:flex-end; flex-wrap:wrap; gap:8px; }
.ui-edit-footer > .ui-delete-action { margin-right:auto; }
@media(max-width:520px) { .company-profile-fields { grid-template-columns:minmax(0,1fr); } .company-profile-editor { padding:14px; } }

.ui-edit-footer > .finance-danger { margin-right:auto; }

.company-registration-backdrop { overflow:hidden; }
.company-registration-dialog { min-height:0; max-height:calc(100vh - 32px); max-height:calc(100dvh - 32px); overflow-y:auto; overscroll-behavior:contain; margin:0; }

.ui-customer-entry { max-height:calc(100dvh - 32px); min-height:0; overflow-y:auto; overscroll-behavior:contain; margin:0; }

.customer-registration-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.ui-entry-pair { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; align-items:start; }
.ui-entry-pair > * { min-width:0; }
.ui-company-number-row > .customer-registration-company { grid-column:auto; width:100%; }
.ui-title-category-row { grid-template-columns:minmax(0,1.8fr) minmax(0,1fr); }
.ui-entry-date-row { grid-template-columns:repeat(2,minmax(0,12rem)); }
.ui-entry-date-with-option { grid-template-columns:minmax(0,12rem) minmax(0,1fr); }
.ui-entry-method-row { grid-template-columns:minmax(0,12rem) minmax(0,10rem); margin-top:12px; }
.rental-items-scroll { min-width:0; max-width:100%; overflow-x:auto; }
.rental-items-table { width:100%; min-width:620px; table-layout:fixed; }
.rental-items-table :is(th,td) { overflow-wrap:anywhere; }
.rental-items-table :is(th,td):nth-child(1) { width:26%; }
.rental-items-table :is(th,td):nth-child(2) { width:38%; }
.rental-items-table :is(th,td):nth-child(3) { width:16%; white-space:nowrap; }
.rental-items-table :is(th,td):nth-child(4) { width:20%; }
@media(max-width:520px) {
  .ui-entry-pair { grid-template-columns:minmax(0,1fr); }
}
.customer-registration-company { grid-column:1 / -1; width:calc((100% - 12px) / 2); max-width:100%; min-width:0; }
@media(max-width:600px) { .customer-registration-company { width:100%; } }
.customer-postal-controls { display:flex; align-items:center; gap:8px; min-width:0; }
.customer-postal-controls input { flex:1; min-width:0; width:0; }
.customer-postal-controls button { flex:none; white-space:nowrap; }

.customer-address-fields { display:grid; grid-template-columns:minmax(0,1fr); gap:12px; }

.ui-customer-entry select[aria-label="金融機関"] { display:block; width:15rem; max-width:100%; }
.ui-customer-entry .customer-account-type { width:8rem; max-width:100%; }
.customer-bank-identity { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; margin-bottom:12px; }
.customer-account-row { display:grid; grid-template-columns:8rem 9rem minmax(0,1fr); gap:12px; }
.ui-account-row { display:grid; grid-template-columns:8rem 9rem minmax(0,1fr); gap:12px; }
.customer-bank-field { min-width:0; color:#57534e; }
.customer-bank-field-label { display:flex; align-items:center; gap:2px; margin-bottom:4px; font-weight:600; }
.ui-customer-entry .customer-account-digits { width:100%; font-variant-numeric:tabular-nums; }
@media(max-width:600px) {
 .customer-bank-identity,.customer-account-row { grid-template-columns:minmax(0,1fr); }
 .ui-account-row { grid-template-columns:minmax(0,1fr); }
 .ui-customer-entry .customer-account-digits { width:9rem; max-width:100%; }
}

/* Fixed-length customer fields keep enough space for digits and separators. */
.ui-customer-entry .customer-postal-controls input { flex:0 1 auto; width:calc(10ch + 24px); max-width:100%; font-variant-numeric:tabular-nums; }
.ui-customer-entry .customer-phone-input { width:calc(17ch + 24px); max-width:100%; }
.customer-registration-fields { display:grid; gap:12px; }
.customer-contact-row { display:flex; flex-wrap:wrap; align-items:start; gap:12px; }
.customer-contact-row > label { display:grid; justify-items:start; gap:4px; min-width:0; max-width:100%; }
.customer-contact-row > label > input { margin-top:0; }
.ui-customer-entry .customer-corporate-number { width:calc(13ch + 24px); max-width:100%; }
.ui-customer-entry .customer-invoice-number { width:calc(14ch + 24px); max-width:100%; }
.ui-customer-entry .customer-notes-input { min-height:140px; resize:vertical; }
.ui-customer-entry input[aria-label="口座番号（7桁）"],
.ui-customer-entry input[aria-label="番号（8桁以内）"] { width:calc(10ch + 24px); max-width:100%; font-variant-numeric:tabular-nums; }
.ui-customer-entry input[aria-label="記号（5桁）"] { width:calc(7ch + 24px); max-width:100%; font-variant-numeric:tabular-nums; }

/* Opt-in business forms; print and dense annual/calendar tables retain their layouts. */
@media screen {
  .ui-edit-dialog {
    width:min(100%,720px);
    max-width:720px;
    max-height:calc(100dvh - 32px);
    min-height:0;
    margin-block:0;
    overflow-y:auto;
    overscroll-behavior:contain;
    font-size:var(--ui-body);
    line-height:1.65;
    padding:20px;
  }
  .ui-edit-dialog :is(.text-xs,.text-sm) { font-size:var(--ui-body); }
  /* Opt-in: side panels own scrolling; their content must not add a second scroll area. */
  .ui-edit-dialog.ui-panel-content { max-height:none; overflow:visible; }
  .ui-edit-dialog :is(h3,h2) { font-size:var(--ui-heading); line-height:1.5; }
  .ui-edit-dialog :is(input,select,textarea) {
    box-sizing:border-box;
    min-height:36px;
    border-radius:var(--ui-radius);
    font-size:var(--ui-body);
  }
  .ui-edit-dialog input:is([type=checkbox],[type=radio]) { min-height:0; }
  .ui-edit-dialog input[type=date],.company-profile-editor input[type=date],
  .loan-field input[type=date],.loan-field input[type=month] {
    width:12rem; max-width:100%;
  }
  .ui-edit-dialog input[type=tel],.company-profile-editor input[type=tel] {
    width:calc(17ch + 24px); max-width:100%;
  }
  .ui-edit-dialog :is(label,.invoice-field) { line-height:1.6; }
  .ui-edit-dialog .text-stone-400,.ui-record-drawer .text-stone-400 { color:#64748b; }
  .ui-edit-dialog button:not([aria-label]):not(.cp-help) {
    min-height:34px; border-radius:var(--ui-radius); font-size:var(--ui-body);
  }
  .ui-edit-footer {
    gap:8px; padding-top:12px; border-top:1px solid #e2e8f0;
  }
  .ui-edit-footer button { min-height:34px; border-radius:var(--ui-radius); }
  .ui-form-section-title {
    grid-column:1/-1; margin:12px 0 8px; padding-bottom:6px;
    border-bottom:1px solid #e2e8f0; color:#334155;
    font-size:var(--ui-body); font-weight:700;
  }
  .company-profile-editor,.company-registration-dialog { line-height:1.65; }
  .company-postal-field .invoice-field { width:calc(10ch + 24px); max-width:100%; }
  .company-profile-fields :is(input,select,textarea) { min-height:36px; border-radius:var(--ui-radius); }
  .company-profile-fields input[type=checkbox] { min-height:0; }
  .company-profile-fields input[aria-label="郵便番号"] { width:100%; }
  .ui-edit-dialog .customer-postal-controls input { flex:0 1 auto; width:calc(10ch + 24px); }
}
@media screen and (max-width:600px) {
  .ui-edit-dialog { padding:16px; }
  .ui-edit-dialog :is(.grid-cols-2,.grid-cols-3,.grid-cols-4,.customer-registration-grid) {
    grid-template-columns:minmax(0,1fr);
  }
  .ui-edit-dialog [class*="col-span-"] { grid-column:auto; }
  .ui-edit-footer button { flex-shrink:0; }
}

/* Preserve compact printed notes while keeping screen notes legible. */
.ui-note { font-size:11px; }
@media screen { .ui-note { font-size:var(--ui-note); } }

@media screen {
 .ui-edit-dialog.max-w-sm { max-width:420px; }
 .ui-edit-dialog.ui-split-dialog { padding:0; overflow:hidden; }
 .ui-split-dialog > :first-child,.ui-split-dialog > :last-child { flex-shrink:0; }
 .ui-split-dialog > .overflow-y-auto { min-height:0; }
 .ui-edit-dialog .ui-company-select { width:21rem; max-width:100%; }
 .ui-finance-section { min-width:0; border:0; border-top:1px solid #e2e8f0; padding:10px 0 0; margin:14px 0 0; }
 .ui-finance-section legend { padding-right:8px; font-weight:700; color:#334155; font-size:var(--ui-body); }
 .ui-finance-section .ui-entry-date-row + .ui-account-row,
 .ui-finance-section .ui-entry-date-row + .loan-form-grid,
 .ui-finance-section .loan-form-grid + .ui-account-row,
 .ui-finance-section .ui-account-row + .loan-form-grid { margin-top:12px; }
 .ui-finance-section .loan-field { min-width:0; }
 .transfer-management .ui-finance-section [data-field=accountType] select { width:8rem; max-width:100%; }
 .transfer-management .ui-finance-section [data-field=accountNumber] input { width:9rem; max-width:100%; font-variant-numeric:tabular-nums; }
 .ui-finance-section [data-field=status] select { width:12rem; max-width:100%; }
 .ui-finance-section [data-field=notes] { margin-top:12px; }
 .loan-management .ui-finance-section :is([data-field=count],[data-field=annualRate]) input { width:100%; }
 .loan-management .ui-finance-section [data-field=rateType] select { width:12rem; max-width:100%; }
 .loan-management .ui-finance-section [data-field=method] select { width:14rem; max-width:100%; }
 .ui-finance-section input { margin-bottom:0; }
}
@media screen and (max-width:600px) {
 .ui-edit-dialog .ui-company-select { width:100%; }
 .ui-finance-section :is([data-field=count],[data-field=annualRate]) input { max-width:9rem; }
}

/* Restore status backgrounds inside month buttons; target-month cell stays green. */
.cashflow-month-button.is-settled { background:#ecfdf5; border-color:#a7f3d0; color:#065f46; }
.cashflow-month-button.is-unpaid { background:#fffbeb; border-color:#fcd34d; color:#78350f; }
.cashflow-month-button.is-partial { background:#f0f9ff; border:1px solid #7dd3fc; color:#0c4a6e; }
.cashflow-month-button.is-confirmed-unpaid { background:#fff1f2; border:1px solid #fda4af; color:#881337; }
.cashflow-month-button.is-partial:hover,.cashflow-month-button.is-confirmed-unpaid:hover { background:#0d9488; border-color:#0d9488; color:#fff; box-shadow:none; }
.cashflow-month-button .cashflow-confirmed-date { font-size:var(--ui-note); overflow-wrap:anywhere; }
.record-drawer-footer { flex-wrap:wrap; }
.record-drawer-permission { flex:1 1 100%; font-size:var(--ui-note); color:#57534e; }

.transfer-customer-select-row { display:flex; align-items:center; gap:8px; }
.transfer-management .transfer-customer-select-row select { width:16rem; max-width:calc(100% - 5rem); min-width:0; flex:0 1 16rem; }
.transfer-customer-select-row button { flex-shrink:0; white-space:nowrap; }
.transfer-selected-customer { font-size:var(--ui-note); overflow-wrap:anywhere; margin-top:4px; }
.transfer-customer-search { width:min(760px,calc(100vw - 32px)); max-height:85dvh; margin:auto; padding:20px; }
.transfer-customer-search[open] { display:flex; flex-direction:column; gap:12px; }
.transfer-customer-search::backdrop { background:rgb(15 23 42 / .35); }
.transfer-search-header { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.transfer-search-header h3 { font-size:var(--ui-heading); margin:0; }
.transfer-search-filters { display:grid; grid-template-columns:minmax(0,12rem) minmax(0,1fr); gap:12px; }
.transfer-search-results { min-height:0; overflow:auto; }
.transfer-search-results table { width:100%; border-collapse:collapse; font-size:var(--ui-body); }
.transfer-search-results th,.transfer-search-results td { padding:10px; text-align:left; border-bottom:1px solid #e2e8f0; overflow-wrap:anywhere; }
.transfer-search-results th { white-space:nowrap; }
.transfer-search-results td:last-child { white-space:nowrap; }
@media(max-width:600px) { .transfer-search-filters { grid-template-columns:1fr; } .transfer-search-results table { min-width:480px; } }

/* Shared customer selection: preserve each form's label and keep short controls compact. */
.customer-select-control { min-width:0; }
.customer-select-row { display:flex; align-items:center; gap:8px; }
.customer-select-row select { width:16rem; flex:0 1 16rem; max-width:calc(100% - 5rem); min-width:0; }
.customer-select-row button { flex-shrink:0; white-space:nowrap; }
.customer-select-name { margin-top:4px; font-size:var(--ui-note); color:#57534e; overflow-wrap:anywhere; }

.asset-product-editor { border:1px solid #e2e8f0; border-radius:12px; padding:10px; min-width:0; }
.asset-product-toolbar { display:flex; flex-wrap:wrap; gap:6px; margin-bottom:8px; }
.asset-product-toolbar .invoice-button { min-height:32px; padding:4px 9px; }
.asset-product-input { min-height:140px; max-height:360px; overflow:auto; border:1px solid #e2e8f0; border-radius:8px; padding:10px; background:white; }
.asset-product-input:focus { outline:2px solid #4169ff; outline-offset:1px; }
.asset-rich-content { font-size:var(--ui-body); line-height:1.65; overflow-wrap:anywhere; overflow-x:auto; max-width:100%; }
.asset-plain-content { white-space:pre-wrap; overflow-wrap:anywhere; }
.asset-rich-content p,.asset-rich-content blockquote { margin:0 0 .65em; }
.asset-rich-content :is(h1,h2,h3,h4,h5,h6) { font-size:var(--ui-heading); font-weight:700; margin:.65em 0 .35em; }
.asset-rich-content ul { list-style:disc; padding-left:1.5em; margin:.5em 0; }
.asset-rich-content ol { list-style:decimal; padding-left:1.5em; margin:.5em 0; }
.asset-rich-content :is(strong,b) { font-weight:700; }
.asset-rich-content :is(em,i) { font-style:italic; }
.asset-rich-content table { border-collapse:collapse; margin:.5em 0; }
.asset-rich-content td,.asset-rich-content th { border:1px solid #cbd5e1; padding:6px 9px; vertical-align:top; }
.asset-rich-content a[href] { color:#1d4ed8; text-decoration:underline; }
.asset-rich-content blockquote { border-left:3px solid #cbd5e1; padding-left:12px; }

/* Asset lists remain horizontally scrollable at desktop widths as well. */
.ui-assets-scroll { width:100%; max-width:100%; min-width:0; overflow-x:auto; overscroll-behavior-x:contain; }
.ui-assets-scroll:focus-visible { outline:2px solid #4169ff; outline-offset:-2px; }

/* Asset-only detail layout; shared drawer controls and permissions are unchanged. */
.asset-full-details { min-width:0; display:grid; gap:16px; }
.asset-detail-photo { width:120px; height:100px; border:1px solid #e2e8f0; border-radius:10px; background:#f8fafc; display:flex; align-items:center; justify-content:center; overflow:hidden; color:#78716c; }
.asset-detail-photo img { width:100%; height:100%; object-fit:contain; }
.asset-detail-section { min-width:0; }
.asset-detail-section h3 { font-size:var(--ui-body); font-weight:700; color:#44403c; margin:0 0 8px; }
.asset-detail-fields { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px 16px; margin:0; }
.asset-detail-fields > div { min-width:0; }
.asset-detail-fields dt { font-size:var(--ui-note); color:#78716c; margin-bottom:2px; }
.asset-detail-fields dd { font-size:var(--ui-body); margin:0; color:#334155; overflow-wrap:anywhere; white-space:pre-wrap; }
.asset-detail-fields a { color:#1d4ed8; text-decoration:underline; }
.asset-detail-product-scroll { max-height:300px; overflow:auto; border:1px solid #e2e8f0; border-radius:10px; padding:10px; overscroll-behavior-x:contain; overscroll-behavior-y:auto; min-width:0; }
.asset-detail-product-scroll:focus-visible { outline:2px solid #4169ff; outline-offset:1px; }
@media(max-width:480px) { .asset-detail-fields { grid-template-columns:minmax(0,1fr); } }
.asset-detail-section:last-child .asset-detail-fields { grid-template-columns:minmax(0,1fr); }
.asset-detail-product-scroll .asset-rich-content { overflow:visible; }

/* Keep each parcel's own row/actions while showing its representative relationship. */
.realestate-land-table .land-branch-label { position:relative; padding-inline-start:24px; }
.realestate-land-table .land-branch-marker { position:absolute; inset-inline-start:2px; top:0; color:#64748b; font-size:16px; line-height:1.4; }

.loan-summary { border:1px solid #e2e8f0; border-radius:12px; padding:16px; background:white; margin:16px 0; }
.loan-summary-heading { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:10px; }
.loan-summary-heading h3 { font-size:var(--ui-heading); font-weight:700; margin:0; }
.loan-summary-heading input { width:6rem; max-width:100%; }
.loan-summary-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px; margin:12px 0; }
.loan-summary-card { min-width:0; padding:12px; border:1px solid #dbeafe; border-radius:10px; background:#f5f8ff; }
.loan-summary-card span { display:block; font-size:var(--ui-note); color:#57534e; }
.loan-summary-card strong { display:block; margin-top:6px; font-size:var(--ui-heading); color:#1e3594; font-variant-numeric:tabular-nums; overflow-wrap:anywhere; }
@media(max-width:900px) { .loan-summary-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:380px) { .loan-summary-grid { grid-template-columns:minmax(0,1fr); } }

/* Project filters reuse field/control metrics; keep wrapped rows aligned at the bottom. */
.project-filter-panel .invoice-field { gap:var(--ui-label-gap,4px); }
.project-filter-panel .invoice-field > span { min-height:var(--ui-control-line,22px); }
.project-filter-fields > * { max-width:100%; }
.project-filter-panel .project-filter-completed { box-sizing:border-box; height:var(--ui-control-height,40px); min-height:var(--ui-control-height,40px); line-height:var(--ui-control-line,22px); }
.project-filter-panel .invoice-field input { padding-left:2.25rem; }

/* Shared form metrics. Keep table cells, icons, rich text and print independent. */
:root {
  --ui-control-height:40px;
  --ui-control-line:22px;
  --ui-control-pad-y:8px;
  --ui-label-gap:4px;
  --ui-row-gap:12px;
  --ui-section-gap:16px;
}
@media screen {
  button[data-ui-action] { --action-bg:#f0fdfa; --action-border:#5eead4; --action-text:#115e59; --action-hover:#ccfbf1; box-sizing:border-box; display:inline-flex; align-items:center; justify-content:center; vertical-align:middle; height:var(--ui-control-height,40px); min-height:var(--ui-control-height,40px); padding:var(--ui-control-pad-y,8px) 12px; line-height:var(--ui-control-line,22px); font-size:var(--ui-body,14px); border:1px solid var(--action-border) !important; border-radius:var(--ui-radius,9px); background:var(--action-bg) !important; color:var(--action-text) !important; white-space:nowrap; }
  button[data-ui-action="search"] { --action-bg:#eff6ff; --action-border:#93c5fd; --action-text:#1e40af; --action-hover:#dbeafe; }
  button[data-ui-action]:hover:not(:disabled):not([aria-disabled="true"]) { background:var(--action-hover) !important; }
  button[data-ui-action]:focus-visible { outline:2px solid var(--action-text); outline-offset:2px; }
  button[data-ui-action][data-ui-action] { height:var(--ui-control-height,40px); min-height:var(--ui-control-height,40px); padding:var(--ui-control-pad-y,8px) 12px; font-size:var(--ui-body,14px); line-height:var(--ui-control-line,22px); }
  button.ui-control-button { box-sizing:border-box; display:inline-flex; align-items:center; justify-content:center; vertical-align:middle; height:var(--ui-control-height,40px); min-height:var(--ui-control-height,40px); padding-block:var(--ui-control-pad-y,8px); line-height:var(--ui-control-line,22px); }
  main button:not(.cp-help,.company-icon,[class*="w-4"],[class*="w-5"],[class*="h-4"],[class*="h-5"]):not(table *):not(.asset-product-toolbar *):not(.invoice-tags *),
  .record-drawer-footer button,.ui-confirm-dialog .cp-toolbar button,
  :is(.ui-edit-dialog,.company-profile-editor,.invoice-modal,.transfer-customer-search,.cp-modal) button:not(.cp-help,.company-icon,[class*="w-4"],[class*="w-5"],[class*="h-4"],[class*="h-5"]):not(table *):not(.asset-product-toolbar *):not(.invoice-tags *) {
    box-sizing:border-box;
    height:auto;
    min-height:var(--ui-control-height);
    padding-block:var(--ui-control-pad-y);
    line-height:var(--ui-control-line);
  }
  :is(.ui-edit-dialog,.company-profile-editor,.invoice-modal,.transfer-customer-search,.cp-modal) :is(input,select):not([type=checkbox],[type=radio],[type=file],[type=hidden],[type=color],[type=range]):not(table *),
  main :is(input,select):not([type=checkbox],[type=radio],[type=file],[type=hidden],[type=color],[type=range]):not(table *):not(.asset-rich-content *) {
    box-sizing:border-box;
    height:var(--ui-control-height);
    min-height:var(--ui-control-height);
    padding-block:var(--ui-control-pad-y);
    line-height:var(--ui-control-line);
  }
  :is(.customer-select-row,.customer-postal-controls,.company-postal-field,.transfer-customer-select-row) :is(input,select,button) {
    box-sizing:border-box;
    height:var(--ui-control-height);
    min-height:var(--ui-control-height);
    padding-block:var(--ui-control-pad-y);
    line-height:var(--ui-control-line);
  }
  :is(.ui-edit-dialog,.company-profile-editor,.invoice-modal) :is(.invoice-field,.loan-field) { gap:var(--ui-label-gap); }
  :is(.ui-edit-dialog,.company-profile-editor,.invoice-modal) :is(.grid,.loan-form-grid,.ui-entry-pair,.ui-account-row,.company-profile-fields,.company-contact-row,.company-contract-row,.customer-bank-identity,.customer-account-row) {
    row-gap:var(--ui-row-gap);
  }
  .ui-form-stack { display:grid; gap:var(--ui-row-gap); min-width:0; }
  .ui-form-stack > * { margin-block:0; }
  .ui-form-stack > label { display:grid; gap:var(--ui-label-gap); }
  .ui-form-stack .customer-bank-field-label { margin-bottom:var(--ui-label-gap); line-height:1.6; }
  .ui-form-stack :is(input,select) { margin-block:0; }
  .ui-form-stack .customer-bank-identity { margin-bottom:0; }
  .ui-edit-dialog :is(.space-y-3,.space-y-3\.5,.space-y-4) > :not(:last-child) {
    margin-block-start:0;
    margin-block-end:var(--ui-row-gap);
  }
  .ui-finance-section { margin-top:var(--ui-section-gap); }
  .ui-finance-section > :is(.ui-entry-pair,.loan-form-grid,.ui-account-row) + :is(.ui-entry-pair,.loan-form-grid,.ui-account-row) { margin-top:var(--ui-row-gap); }
  .ui-edit-dialog :is(.ui-edit-footer,.ui-form-section-title) { margin-top:var(--ui-section-gap); }
  .ui-edit-dialog h3 { margin-bottom:var(--ui-section-gap); }
}

/* List typography roles. Screen only: forms, calendars and print keep their own rules. */
.company-icon-wrap { position:relative; display:inline-flex; vertical-align:middle; }
.company-icon { display:inline-flex; align-items:center; justify-content:center; width:32px; height:32px; min-width:32px; padding:0; border:0; border-radius:8px; color:#fff; font-size:15px; font-weight:700; line-height:1; cursor:pointer; }
.company-icon:focus-visible { outline:2px solid #0f172a; outline-offset:3px; }
.company-icon-name { position:fixed; inset:auto; margin:0; z-index:20; width:max-content; max-width:min(260px,calc(100vw - 16px)); padding:6px 10px; border:1px solid #cbd5e1; border-radius:6px; background:#fff; color:#1e293b; font-size:13.5px; font-weight:500; white-space:normal; box-shadow:0 3px 10px #0f172a20; }
.company-icon-settings { grid-column:1/-1; display:flex; flex-wrap:wrap; align-items:flex-start; gap:16px; margin:12px 0; }
.company-icon-settings input.company-icon-input { width:80px; }
.company-icon-colors { display:flex; flex-wrap:wrap; gap:8px; border:0; padding:0; }
.company-icon-colors legend { margin-bottom:6px; font-size:13.5px; font-weight:600; }
.company-icon-colors label { display:inline-flex; align-items:center; gap:4px; cursor:pointer; }
.company-icon-colors input { width:auto; min-height:0; }
.company-icon-colors label > span { color:white; padding:6px 10px; border-radius:6px; font-size:12px; }
.company-icon-preview { display:grid; gap:6px; }
.company-record-heading { display:flex; align-items:center; gap:8px; }
.company-record-heading strong { min-width:0; overflow-wrap:anywhere; }
@media print { .company-icon-wrap::after { content:attr(data-company-name); } .company-icon-wrap > * { display:none; } }
@media screen {
  :root { --ui-list-name:15px; }
  main .ui-data-list .project-list-name { min-width:220px; width:24%; }
  main table.ui-data-list,
  main .ui-data-list :is(th,td),
  main .ui-data-list .ui-list-text { font-size:var(--ui-body); line-height:1.6; }
  main .ui-data-list thead th { font-weight:600; }
  main .ui-data-list :is(.ui-note,.ui-list-note,.finance-status) { font-size:var(--ui-note); line-height:1.6; }
  main .ui-data-list .cashflow-month-button { font-size:var(--ui-body); }
  main .ui-data-list .cashflow-contract-labels,
  main .ui-data-list .cashflow-month-button > :is(span,small) { font-size:var(--ui-note); }
  main .ui-data-list .ui-list-primary { font-size:var(--ui-list-name); font-weight:700; line-height:1.6; }
}

/* Shared bounded business lists; no fixed height for short or empty tables. */
@media screen {
 .ui-list-scroll { min-width:0; max-width:100%; max-height:var(--list-scroll-height,65dvh); overflow:auto; overscroll-behavior-x:contain; scrollbar-gutter:stable; }
 .ui-list-scroll:focus-visible { outline:2px solid #4169ff; outline-offset:2px; }
 .ui-list-scroll > table > thead { position:sticky; top:0; z-index:3; background:#f8fafc; }
}
@media print {
 .ui-list-scroll { max-height:none!important; overflow:visible!important; scrollbar-gutter:auto; }
 .ui-list-scroll > table > thead { position:static; }
}

.sales-workflow .cp-toolbar { margin-bottom:12px; gap:8px; flex-wrap:wrap; }
.sales-workflow-table { width:100%; min-width:880px; text-align:left; border-collapse:collapse; }
.sales-workflow-table th,.sales-workflow-table td { padding:10px 12px; border-bottom:1px solid #e2e8f0; vertical-align:top; }
.sales-workflow-table thead { background:#f8fafc; }
.sales-expanded { padding:16px; background:#f8fafc; }
.sales-history-entry { padding:12px; margin:8px 0; background:white; border:1px solid #e2e8f0; border-radius:10px; font-size:13.5px; white-space:pre-wrap; }
.sales-history-snippet { max-width:280px; white-space:pre-wrap; overflow-wrap:anywhere; }
.sales-form-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; border:0; padding:0; }
.sales-form-grid p { grid-column:1/-1; }
.sales-transition-preview { padding:10px; background:#eff6ff; border:1px solid #bfdbfe; border-radius:8px; }
@media(max-width:600px){.sales-form-grid{grid-template-columns:1fr;}}

.sales-form-grid > .sales-form-wide { grid-column:1 / -1; }

.sales-workflow .invoice-button.finance-primary { background:#4169ff; border-color:#4169ff; color:white; }

.ui-edit-dialog .ui-checkbox-row { display:flex; flex-direction:row; align-items:center; justify-content:flex-start; gap:8px; min-width:0; }
.ui-edit-dialog .ui-checkbox-row > input[type=checkbox] { flex:0 0 16px; width:16px; height:16px; min-height:0; margin:0; padding:0; }
.ui-edit-dialog .ui-checkbox-row > span { min-width:0; }

/* Compact only dedicated company-icon columns; keep the heading for print/readers. */
@media screen {
 .ui-compact-company-table .company-icon-column { box-sizing:border-box; width:56px; min-width:56px; max-width:56px; padding-left:12px; padding-right:12px; }
 .ui-compact-company-table .company-column-label { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; border:0; }
 .billing-projects-table.ui-compact-company-table { min-width:1168px; }
 .sales-opportunities-table.ui-compact-company-table { min-width:848px; }
 .sales-products-table.ui-compact-company-table { min-width:560px; }
}

.cp-toolbar-trailing-action { margin-left:auto; display:inline-flex; flex:0 0 auto; }

.property-event-editor { width:min(720px,calc(100vw - 32px)); max-height:calc(100dvh - 32px); overflow-y:auto; }
.property-event-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:var(--ui-row-gap,12px); padding:0; border:0; min-width:0; }
.property-event-grid .invoice-field { min-width:0; margin:0; }
.property-event-grid .property-event-type { width:260px; max-width:100%; }
.property-event-grid .property-event-status { width:160px; max-width:100%; }
.property-event-grid :is(input,select,textarea) { margin:0; }
.property-event-grid input[type=date] { width:192px; max-width:100%; }
.property-event-grid input[type=number] { width:180px; max-width:100%; }
.property-event-wide { grid-column:1/-1; min-width:0; }
.property-event-grid textarea { width:100%; min-height:96px; resize:vertical; }
.land-lease-editor { max-height:calc(100dvh - 32px); overflow-y:auto; }
.land-lease-notes textarea { min-height:96px; resize:vertical; white-space:pre-wrap; }
.property-event-attachments { margin-top:var(--ui-section-gap,16px); border-top:1px solid #e2e8f0; padding-top:12px; }
.property-event-info { display:flex; flex-wrap:wrap; align-items:center; gap:8px; margin-top:6px; font-size:var(--ui-note,12px); }
.property-event-info details,.property-event-notes { flex-basis:100%; min-width:0; }
.property-event-notes p { white-space:pre-wrap; overflow-wrap:anywhere; margin-top:4px; }
.property-event-info summary { cursor:pointer; color:#115e59; }
@media(max-width:600px) { .property-event-grid { grid-template-columns:minmax(0,1fr); } }

/* Registration identity is redundant only when exactly one company is viewable.
   Keep form previews, company selection, mixed-cell content and printed identity. */
@media screen {
 main[data-company-registration="hidden"] :is(.ui-data-list,.project-tools-table) .company-icon-wrap,
 main[data-company-registration="hidden"] :is(.ui-data-list,.project-tools-table) .company-icon-column,
 main[data-company-registration="hidden"] :is(.rental-registration-company,.rental-company-separator) { display:none; }
 main[data-company-registration="hidden"] .billing-projects-table.ui-compact-company-table { min-width:1112px; }
 main[data-company-registration="hidden"] .sales-opportunities-table.ui-compact-company-table { min-width:792px; }
 main[data-company-registration="hidden"] .sales-products-table.ui-compact-company-table { min-width:504px; }
}

/* Shared list surface, matching the standard project/customer cards. */
.ui-list-panel { min-width:0; background:#fff; border:1px solid #e2e8f0; border-radius:16px; box-shadow:0 1px 2px #0f172a0a; }
.sales-workflow { display:flex; flex-direction:column; gap:16px; min-width:0; font-size:var(--ui-body); }
.sales-controls-panel,.sales-analysis-controls { padding:16px; }
.sales-workflow .sales-controls-panel .cp-toolbar:last-child { margin-bottom:0; }
.sales-workflow .sales-primary-actions { margin-bottom:12px; }
.sales-tabs-scroll {max-width:100%;min-width:0;overflow-x:auto;overscroll-behavior-x:contain;margin-bottom:12px;}
.sales-view-tabs {display:inline-flex;align-items:center;gap:4px;padding:4px;background:#f5f5f4;border-radius:12px;min-width:max-content;}
.sales-workflow .sales-view-tabs .sales-view-tab {flex:none;min-height:40px;padding:8px 14px;border:0;border-radius:8px;background:transparent;color:#78716c;font-size:var(--ui-body,14px);font-weight:500;white-space:nowrap;cursor:pointer;}
.sales-workflow .sales-view-tabs .sales-view-tab[aria-selected=true] {background:#4169ff;color:#fff;box-shadow:0 1px 2px #0000000d;}
.sales-workflow .sales-view-tabs .sales-view-tab:not([aria-selected=true]):hover:not(:disabled) {background:#e7e5e4;color:#292524;}
.sales-view-tab:focus-visible {outline:2px solid #4169ff;outline-offset:2px;}
.sales-view-tab:disabled {opacity:.5;cursor:not-allowed;}
.sales-controls-panel input[aria-label='営業キーワード'] { width:280px; max-width:100%; min-width:180px; }
.sales-controls-panel select { width:200px; max-width:100%; min-width:0; }
.sales-controls-panel select[aria-label='業種で絞込'] { width:260px; }
.sales-section-heading,.sales-list-heading { display:flex; flex-wrap:wrap; align-items:center; justify-content:flex-start; gap:12px; }
.sales-section-heading { padding:16px; }
.sales-workflow h3 { margin:0; font-size:16px; font-weight:700; color:#1e293b; }
.sales-list-heading p { margin:0; }
.sales-analysis-controls h3 { margin-bottom:12px; }
.sales-analysis-controls > p { margin:8px 0 0; }
.sales-list-panel { overflow:hidden; }
.sales-list-panel .sales-workflow-table thead { color:#57534e; background:#faf9f6; }
.sales-expanded { padding:16px; background:#f8fafc; display:flex; flex-direction:column; align-items:stretch; gap:12px; }
.sales-expanded > p { margin:0; white-space:pre-wrap; overflow-wrap:anywhere; }
.sales-expanded h4 { margin:4px 0 0; font-size:var(--ui-body); font-weight:700; color:#1e293b; }
.sales-expanded > button { align-self:flex-start; }
.sales-expanded > table { background:#fff; border:1px solid #e2e8f0; }
.sales-history-entry { margin:0; padding:12px 16px; font-size:var(--ui-body); line-height:1.6; }
.sales-history-entry > strong { display:block; font-size:var(--ui-note); color:#475569; }
.sales-history-entry > div { font-size:var(--ui-note); color:#475569; }
.sales-history-entry p { margin:8px 0; }
.sales-workflow .sales-form-grid .ui-form-section-title { grid-column:1/-1; margin:4px 0 0; }
.sales-delete-confirm { padding:12px 16px; background:#fff7ed; border:1px solid #fed7aa; border-radius:12px; color:#7c2d12; }
.sales-delete-confirm p { margin:0 0 8px; }
.sales-delete-confirm .cp-toolbar { margin-bottom:0; }
.sales-workflow .finance-status.is-lost { background:#fff1f2; color:#be123c; border-color:#fecdd3; }
@media(max-width:600px){ .sales-controls-panel .cp-toolbar > input,.sales-controls-panel .cp-toolbar > select { width:100%; min-width:0; } .sales-controls-panel,.sales-analysis-controls,.sales-section-heading { padding:12px; } }

.sales-workflow .sales-form-grid :is(input,select,textarea) { margin-bottom:0; }

/* Shared operating controls: labels remain compact; selectable statuses match buttons. */
@media screen {
 main select:not([multiple]):not([size]),
 main button[data-ui-control="status-action"] {
  box-sizing:border-box; height:var(--ui-control-height,40px); min-height:var(--ui-control-height,40px);
  padding-block:var(--ui-control-pad-y,8px); line-height:var(--ui-control-line,22px); vertical-align:middle;
 }
 main button[data-ui-control="status-action"] { display:inline-flex;align-items:center;justify-content:center;white-space:nowrap;font-size:var(--ui-body,14px);padding-inline:12px; }
 main .company-filter-toggle { position:relative;display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;width:52px;min-width:52px;height:40px!important;min-height:40px;padding:3px 13px 3px 3px!important;border:1px solid #cbd5e1;border-radius:10px;background:#f8fafc;cursor:pointer; }
 .company-filter-toggle.is-selected { border-color:#4169ff;background:#eef3ff; }
 .company-filter-toggle:focus-visible { outline:2px solid #4169ff;outline-offset:3px; }
 .company-filter-icon { display:inline-flex;align-items:center;justify-content:center;width:30px;height:30px;border-radius:7px;color:white;font-size:15px;font-weight:700;flex-shrink:0; }
 .company-filter-toggle:not(.is-selected) .company-filter-icon { opacity:.55; }
 .company-filter-check { position:absolute;right:2px;bottom:4px;font-size:12px;font-weight:700;color:#1e40af; }
}

/* Keep the complete billing list inside its own horizontal scroll viewport. */
.billing-view { width:100%; min-width:0; max-width:100%; }
.billing-view > * { min-width:0; max-width:100%; }
.billing-view .billing-list-scroll,.billing-view .billing-items-scroll { box-sizing:border-box; width:100%; min-width:0; max-width:100%; overflow-x:auto; }
.project-task-bulk-editor { min-width:0; display:flex; flex-direction:column; gap:12px; }
.project-task-bulk-editor fieldset { min-width:0; margin:0; padding:0; border:0; }
.project-task-bulk-table { width:100%; min-width:1500px; border-collapse:collapse; }
.project-task-bulk-table th,.project-task-bulk-table td { padding:10px; border-bottom:1px solid #e2e8f0; text-align:left; vertical-align:top; }
.project-task-bulk-table th { background:#f8fafc; white-space:nowrap; }
.project-task-bulk-table input,.project-task-bulk-table select,.project-task-bulk-table textarea,.project-task-draft textarea { box-sizing:border-box; width:100%; font:inherit; color:#1e293b; background:#fff; border:1px solid #cbd5e1; border-radius:8px; padding:8px 10px; }
.project-task-bulk-table input,.project-task-bulk-table select { height:var(--ui-control-height,40px); }
.project-task-bulk-table td:nth-child(2) { min-width:220px; }
.project-task-bulk-table td:nth-child(3) { min-width:160px; }
.project-task-bulk-table td:nth-child(4),.project-task-bulk-table td:nth-child(5) { min-width:154px; }
.project-task-bulk-table td:nth-child(6) { min-width:112px; }
.project-task-bulk-table td:nth-child(7) { min-width:108px; }
.project-task-bulk-table td:nth-child(8) { min-width:280px; }
.project-task-bulk-table td:nth-child(9) { min-width:220px; max-width:320px; }
.project-task-bulk-table textarea,.project-task-draft textarea { min-height:96px; resize:vertical; }

.project-task-bulk-editor .project-bulk-save { background:#4169ff; border-color:#4169ff; color:#fff; }
.project-task-bulk-editor .project-bulk-save:hover { background:#3158ee; }
.project-task-bulk-editor .project-bulk-cancel { background:#f5f5f4; border-color:#d6d3d1; color:#44403c; }
.project-task-bulk-editor .project-bulk-cancel:hover { background:#e7e5e4; }

/* Shared category palette: master and every business label use the same 24 colors. */
.category-bg-blue{background:#eef3ff}.category-text-blue{color:#254ccd}.category-border-blue{border-color:#c4d4ff}.category-dot-blue{background:#4169ff}
.category-bg-emerald{background:#ecfdf5}.category-text-emerald{color:#047857}.category-border-emerald{border-color:#a7f3d0}.category-dot-emerald{background:#10b981}
.category-bg-amber{background:#fffbeb}.category-text-amber{color:#92400e}.category-border-amber{border-color:#fde68a}.category-dot-amber{background:#f59e0b}
.category-bg-rose{background:#fff1f2}.category-text-rose{color:#be123c}.category-border-rose{border-color:#fecdd3}.category-dot-rose{background:#f43f5e}
.category-bg-purple{background:#faf5ff}.category-text-purple{color:#7e22ce}.category-border-purple{border-color:#e9d5ff}.category-dot-purple{background:#a855f7}
.category-bg-stone{background:#f5f5f4}.category-text-stone{color:#57534e}.category-border-stone{border-color:#d6d3d1}.category-dot-stone{background:#78716c}
.category-bg-red{background:#fef2f2}.category-text-red{color:#b91c1c}.category-border-red{border-color:#fecaca}.category-dot-red{background:#ef4444}
.category-bg-orange{background:#fff7ed}.category-text-orange{color:#c2410c}.category-border-orange{border-color:#fed7aa}.category-dot-orange{background:#f97316}
.category-bg-yellow{background:#fefce8}.category-text-yellow{color:#854d0e}.category-border-yellow{border-color:#fef08a}.category-dot-yellow{background:#eab308}
.category-bg-lime{background:#f7fee7}.category-text-lime{color:#4d7c0f}.category-border-lime{border-color:#d9f99d}.category-dot-lime{background:#84cc16}
.category-bg-green{background:#f0fdf4}.category-text-green{color:#15803d}.category-border-green{border-color:#bbf7d0}.category-dot-green{background:#22c55e}
.category-bg-teal{background:#f0fdfa}.category-text-teal{color:#0f766e}.category-border-teal{border-color:#99f6e4}.category-dot-teal{background:#14b8a6}
.category-bg-cyan{background:#ecfeff}.category-text-cyan{color:#0e7490}.category-border-cyan{border-color:#a5f3fc}.category-dot-cyan{background:#06b6d4}
.category-bg-sky{background:#f0f9ff}.category-text-sky{color:#0369a1}.category-border-sky{border-color:#bae6fd}.category-dot-sky{background:#0ea5e9}
.category-bg-indigo{background:#eef2ff}.category-text-indigo{color:#4338ca}.category-border-indigo{border-color:#c7d2fe}.category-dot-indigo{background:#6366f1}
.category-bg-violet{background:#f5f3ff}.category-text-violet{color:#6d28d9}.category-border-violet{border-color:#ddd6fe}.category-dot-violet{background:#8b5cf6}
.category-bg-fuchsia{background:#fdf4ff}.category-text-fuchsia{color:#a21caf}.category-border-fuchsia{border-color:#f5d0fe}.category-dot-fuchsia{background:#d946ef}
.category-bg-pink{background:#fdf2f8}.category-text-pink{color:#be185d}.category-border-pink{border-color:#fbcfe8}.category-dot-pink{background:#ec4899}
.category-bg-slate{background:#f1f5f9}.category-text-slate{color:#334155}.category-border-slate{border-color:#cbd5e1}.category-dot-slate{background:#64748b}
.category-bg-gray{background:#f3f4f6}.category-text-gray{color:#374151}.category-border-gray{border-color:#d1d5db}.category-dot-gray{background:#6b7280}
.category-bg-zinc{background:#f4f4f5}.category-text-zinc{color:#3f3f46}.category-border-zinc{border-color:#d4d4d8}.category-dot-zinc{background:#71717a}
.category-bg-neutral{background:#f5f5f5}.category-text-neutral{color:#404040}.category-border-neutral{border-color:#d4d4d4}.category-dot-neutral{background:#737373}
.category-bg-brown{background:#f9f1e9}.category-text-brown{color:#7c4323}.category-border-brown{border-color:#dfc6af}.category-dot-brown{background:#a36b44}
.category-bg-navy{background:#edf0f8}.category-text-navy{color:#24345c}.category-border-navy{border-color:#bec9e2}.category-dot-navy{background:#344c85}

.category-master-badge { display:inline-block; max-width:100%; padding:3px 8px; border:1px solid; border-radius:8px; font-size:var(--ui-note,12px); font-weight:600; line-height:1.5; overflow-wrap:anywhere; }
.project-description-scroll { white-space:pre-wrap; overflow-wrap:anywhere; max-height:12rem; overflow-y:auto; overscroll-behavior-x:contain; overscroll-behavior-y:auto; line-height:1.65; }
.project-description-input { height:168px; min-height:168px; }


.project-list-category { min-width:128px; max-width:200px; }

/* Recalculation sits beside the tax option and wraps on small editors. */
.cashflow-contract-tax-option {flex-wrap:wrap;}
.cashflow-recalculate-inline {margin-left:8px;max-width:100%;}

/* Monthly settlement fields follow the shared label/badge and control sizing. */
.cashflow-monthly-amount-row { display:flex; flex-wrap:wrap; align-items:flex-start; gap:12px 16px; }
.cashflow-monthly-amount-field { width:210px; max-width:100%; }
.cashflow-partial-payment-field input[type=number] { display:block; width:210px; max-width:100%; }
.cashflow-monthly-status-field { width:150px; max-width:100%; }
.cashflow-monthly-field-label { display:flex; flex-wrap:wrap; align-items:center; min-height:22px; }
.cashflow-monthly-field-label .ui-required { flex:none; }

/* Keep annual contract identity visible while scrolling across months. */
.cashflow-annual-title { position:sticky; top:0; z-index:5; background:white; padding-block:8px; }
.cashflow-annual-table th:first-child,.cashflow-annual-table td:first-child { position:sticky; left:0; background:white; box-shadow:1px 0 0 #e2e8f0; }
.cashflow-annual-table td:first-child { z-index:2; }
.cashflow-annual-table th:first-child { z-index:4; background:#f8fafc; }
@media print { .cashflow-annual-title,.cashflow-annual-table th:first-child,.cashflow-annual-table td:first-child { position:static; box-shadow:none; } }

/* Contract editor: compact status and right-aligned recalculation beside tax. */
.cashflow-contract-status-field { width:150px; max-width:100%; }
.cashflow-contract-tax-option { flex:1 1 360px; }
.cashflow-contract-tax-option .cashflow-recalculate-inline { margin-left:auto; }

/* Mail dialogs may be opened from centered annual-table operation cells. */
.invoice-modal { text-align:left; }
.invoice-modal .invoice-preview { text-align:left; }
.invoice-mail-month { width:180px; max-width:100%; }
.invoice-mail-compact-field { width:22rem; max-width:100%; }

/* Keep the template add action aligned with the select, below its label. */
.invoice-template-row { display:flex; flex-wrap:wrap; align-items:flex-end; gap:12px; }
.invoice-template-row > .invoice-button { align-self:flex-end; box-sizing:border-box; height:var(--ui-control-height,40px); min-height:var(--ui-control-height,40px); line-height:var(--ui-control-line,22px); padding-block:var(--ui-control-pad-y,8px); }

.ui-field-help-label { display:inline-flex; align-items:center; gap:4px; }

/* Schedule presentation only: original tone stays in the border, readable text on white. */
.schedule-month-event { background:#fff; border:1px solid; border-left-width:3px; border-radius:8px; padding:6px 8px; cursor:pointer; line-height:1.45; }
.schedule-month-event:hover { box-shadow:0 1px 5px #0f172a1a; }
.schedule-month-meta { display:flex; justify-content:space-between; align-items:center; gap:4px; font-size:12px; color:#475569; }
.schedule-month-meta > span { white-space:normal; overflow-wrap:anywhere; }
.schedule-month-title { font-size:12px; font-weight:600; color:#1e293b; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; overflow-wrap:anywhere; }
.schedule-agenda { background:#fff; border:1px solid #e2e8f0; border-radius:16px; overflow:hidden; color:#1e293b; font-size:13.5px; }
.schedule-agenda-toolbar { display:flex; align-items:center; flex-wrap:wrap; gap:12px; padding:14px 16px; border-bottom:1px solid #e2e8f0; }
.schedule-agenda-toolbar h3 { font-size:16px; font-weight:600; }
.schedule-period-controls { display:flex; gap:8px; flex-wrap:wrap; }
.schedule-date-picker { display:flex; gap:8px; align-items:center; }
.schedule-date-picker input { border:1px solid #cbd5e1; padding:8px; border-radius:8px; background:#fff; color:#1e293b; }
.schedule-count { font-size:12px; color:#475569; margin-left:auto; }
.schedule-day-group { padding:12px 16px; }
.schedule-day-group + .schedule-day-group { border-top:1px solid #e2e8f0; }
.schedule-day-group h4 { font-size:13.5px; font-weight:600; margin-bottom:8px; padding:6px 8px; border-radius:6px; background:#f8fafc; }
.schedule-day-group h4.schedule-today { background:#eef2ff; color:#3730a3; border-left:3px solid #4169ff; }
.schedule-agenda-card { display:flex; align-items:flex-start; gap:12px; border:1px solid; border-left-width:3px; border-radius:8px; padding:10px 12px; margin-top:8px; }
.schedule-event-time { font-size:13.5px; font-weight:600; color:#334155; white-space:nowrap; min-width:96px; }
.schedule-event-main { flex:1; min-width:0; }
.schedule-event-title { display:block; font-size:13px; font-weight:600; color:#1e293b; overflow-wrap:anywhere; }
.schedule-event-meta { display:flex; gap:8px; flex-wrap:wrap; font-size:12px; color:#475569; margin-top:4px; }
.schedule-private-label { color:#000; }
.schedule-repeat-label { border:1px solid #cbd5e1; border-radius:4px; padding:0 5px; }
.schedule-event-summary { font-size:13.5px; color:#475569; line-height:1.6; margin-top:4px; white-space:pre-wrap; overflow-wrap:anywhere; display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:2; overflow:hidden; }
.schedule-event-actions { flex-shrink:0; }
.schedule-empty { padding:12px; color:#475569; font-size:13.5px; }
.schedule-list-table { width:100%; min-width:780px; border-collapse:collapse; background:#fff; }
.schedule-list-table th { white-space:nowrap; text-align:left; background:#f8fafc; font-weight:600; }
.schedule-list-table td,.schedule-list-table th { padding:10px 12px; border-bottom:1px solid #e2e8f0; vertical-align:top; }
.schedule-list-table td:first-child { width:112px; white-space:nowrap; }
.schedule-list-table .schedule-list-subject { min-width:240px; border-left:3px solid; }
.schedule-list-table td:last-child { width:140px; white-space:nowrap; }
@media(max-width:640px) { .schedule-agenda-card { flex-wrap:wrap; gap:8px; } .schedule-event-time { min-width:0; } .schedule-event-main { flex-basis:calc(100% - 110px); } .schedule-event-actions { margin-left:auto; } .schedule-agenda-toolbar { padding:12px; } }

.schedule-week-days .schedule-day-group:has(> .schedule-empty) { display:flex; align-items:center; flex-wrap:wrap; gap:12px; padding:6px 16px; }
.schedule-week-days .schedule-day-group:has(> .schedule-empty) h4 { margin:0; background:transparent; min-width:168px; }
.schedule-week-days .schedule-day-group > .schedule-empty { padding:2px 8px; font-size:12px; }

.schedule-linked-text { white-space:pre-wrap; overflow-wrap:anywhere; }
.schedule-linked-text a { color:#1d4ed8; text-decoration:underline; text-underline-offset:2px; }
.schedule-content-fields { min-width:0; }
.schedule-content-fields section + section { margin-top:14px; }
.schedule-content-fields h4 { font-size:13.5px; font-weight:600; margin-bottom:6px; }
.schedule-content-disclosure { margin-top:6px; font-size:13.5px; }
.schedule-content-disclosure summary { cursor:pointer; color:#334155; font-weight:500; padding:4px 0; }
.schedule-content-disclosure > div { padding:8px 10px; background:#f8fafc; border:1px solid #e2e8f0; border-radius:6px; margin-top:4px; }
.schedule-hover-preview { position:fixed; z-index:9999; width:min(340px,calc(100vw - 16px)); max-height:min(400px,calc(100dvh - 16px)); overflow:auto; padding:14px; background:#fff; color:#1e293b; border:1px solid #cbd5e1; border-radius:10px; box-shadow:0 6px 24px #0f172a26; font-size:13.5px; }
.schedule-hover-preview > p { color:#475569; margin:4px 0 8px; font-size:12px; }
.schedule-hover-preview .schedule-content-fields { margin-top:10px; }
.schedule-month-event:focus-visible { outline:2px solid #4169ff; outline-offset:2px; }
.schedule-details { display:flex; flex-direction:column; max-height:calc(100dvh - 24px); min-height:300px; font-size:13.5px; color:#1e293b; }
.schedule-details > header { padding:18px 20px; border-bottom:1px solid #e2e8f0; }
.schedule-details > header h3 { font-size:16px; font-weight:600; }
.schedule-details-body { padding:20px; overflow:auto; }
.schedule-details-body > .schedule-event-title { font-size:16px; font-weight:600; line-height:1.5; }
.schedule-details-body > p { margin-top:6px; }
.schedule-details-body .schedule-content-fields { margin-top:18px; }
.schedule-details-footer { display:flex; justify-content:space-between; gap:12px; margin-top:auto; padding:16px 20px; border-top:1px solid #e2e8f0; }
.schedule-details-footer > div { display:flex; gap:8px; margin-left:auto; }
.schedule-details-footer > .schedule-details-left-actions { margin-left:0; margin-right:auto; flex-wrap:wrap; }
@media screen {
  button.schedule-delete-confirm[data-ui-action="delete"] { --action-bg:#b91c1c; --action-border:#991b1b; --action-text:#fff; --action-hover:#991b1b; font-weight:700; }
  button.schedule-delete-confirm:focus-visible { outline:3px solid #fca5a5; outline-offset:3px; }
}

/* Contract footer actions share the standard button height. */
.cashflow-contract-footer-actions { display:flex; align-items:center; flex-wrap:wrap; gap:8px; margin-right:auto; }
.cashflow-contract-details .cashflow-details-footer { gap:8px; flex-wrap:wrap; }

/* Keep the document at the layout viewport width. Wide lists retain their own
   overflow:auto; clipping the document does not disable browser pinch zoom. */
@media screen {
  html,body { width:100%; max-width:100%; overflow-x:hidden; }
  @supports (overflow:clip) {
    html,body { overflow-x:clip; }
  }
  #root,.app-shell,.workspace-shell { min-width:0; max-width:100%; }
  .app-shell { width:100%; }
}
/* Mobile form focus must not enlarge the visual viewport. Keep desktop and
   printed typography unchanged, including checkbox/radio and icon controls. */
@media screen and (max-width:1024px), screen and (any-pointer:coarse) {
  :is(input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]):not([type=file]):not([type=hidden]):not([type=button]):not([type=submit]):not([type=reset]),select,textarea,[contenteditable=true]) {
    font-size:16px !important;
  }
}

/* Today stays distinct from individual schedule colours. */
.schedule-month-today { background:#eff6ff; box-shadow:inset 0 0 0 2px #2563eb; }
.schedule-today-date { display:inline-flex; align-items:center; justify-content:center; min-width:28px; height:28px; border-radius:50%; background:#1d4ed8; color:#fff; font-weight:700; }
.schedule-today-badge { display:inline-flex; align-items:center; padding:2px 7px; border-radius:5px; background:#1d4ed8; color:#fff; font-size:11px; font-weight:700; line-height:1.5; white-space:nowrap; }
.schedule-day-group h4.schedule-today { background:#eff6ff; color:#1e40af; border-left:4px solid #2563eb; }
.schedule-day-group h4 .schedule-today-badge { margin-left:8px; }
.schedule-list-today { background:#eff6ff; box-shadow:inset 3px 0 #2563eb; color:#1e40af; font-weight:700; }
.schedule-list-today .schedule-today-badge { display:table; margin-top:4px; }

/* The mobile navigation is an active scroll surface, not a locked background. */
.mobile-sidebar { min-height:0; max-height:100dvh; overflow-y:auto; overscroll-behavior:contain; -webkit-overflow-scrolling:touch; }
.mobile-sidebar > div { flex-shrink:0; }
.project-billing-registration { margin-left:auto; }
/* Use the established danger / cancel / primary colours for billing removal. */
.invoice-button.billing-removal-trigger.finance-danger { background:#fef2f2; border-color:#fca5a5; color:#991b1b; }
.invoice-button.billing-removal-trigger.finance-danger:hover:not(:disabled) { background:#fee2e2; }
:is(.billing-removal-panel,.billing-registration-panel) .invoice-button.finance-cancel { background:#fff; border-color:#cbd5e1; color:#334155; }
:is(.billing-removal-panel,.billing-registration-panel) .invoice-button.finance-cancel:hover:not(:disabled) { background:#f1f5f9; }
:is(.billing-removal-panel,.billing-registration-panel) .invoice-button.finance-primary { background:#4169ff; border-color:#4169ff; color:#fff; }
:is(.billing-removal-panel,.billing-registration-panel) .invoice-button.finance-primary:hover:not(:disabled) { background:#3154e0; }
:is(.billing-removal-panel,.billing-registration-panel) .ui-control-button:focus-visible,.billing-removal-trigger:focus-visible { outline:2px solid #4169ff; outline-offset:2px; }
.cashflow-mobile-context,.cashflow-mobile-identity-label { display:none; }
@media screen and (max-width:1024px), screen and (any-pointer:coarse) {
  .cp-grid .cp-row-label { position:static; left:auto; z-index:auto; }
  .cp-grid thead .cp-row-label { position:sticky; top:0; z-index:3; }
  .cp-grid .cp-mobile-context-cell { display:table-cell; position:sticky; left:0; z-index:2; width:48px; min-width:48px; max-width:48px; box-sizing:border-box; padding:6px; text-align:center; }
  .cp-grid thead .cp-mobile-context-cell { top:0; z-index:4; }
  .cp-grid .cp-mobile-context { display:inline-flex; width:36px; height:36px; margin:0; border-radius:8px; font-size:16px; color:#1d4ed8; background:#eff6ff; border-color:#93c5fd; cursor:pointer; }
  .cashflow-annual-table th:first-child,.cashflow-annual-table td:first-child { width:48px; min-width:48px; max-width:48px; padding:6px; text-align:center; }
  .cashflow-annual-table tbody > tr > td:first-child { vertical-align:middle; }
  .cashflow-annual-table .cashflow-contract-heading,.cashflow-annual-identity-label { display:none; }
  .cashflow-mobile-identity-label { display:inline; }
  .cashflow-annual-table .cashflow-mobile-context { display:inline-flex; width:36px; height:36px; margin:0; border-radius:8px; font-size:16px; color:#1d4ed8; background:#eff6ff; border-color:#93c5fd; cursor:pointer; }
}

/* Keyword inputs share the annual-table control appearance; filtering remains screen-owned. */
input.ui-keyword-search {
  box-sizing:border-box; height:var(--ui-control-height,40px); min-height:var(--ui-control-height,40px);
  max-width:100%; padding:8px 12px 8px 36px !important;
  border:1px solid #cbd5e1; border-radius:8px; background-color:white; color:#1e293b;
  font-size:var(--ui-body,13px); line-height:1.5; font-weight:400;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5'/%3E%3Cpath d='m16 16 4 4'/%3E%3C/svg%3E");
  background-repeat:no-repeat; background-position:12px center; background-size:16px;
}
input.ui-keyword-search::placeholder {color:#64748b;opacity:1;}
input.ui-keyword-search:focus {outline:2px solid #4169ff;outline-offset:1px;border-color:#4169ff;}
/* Existing wrappers retain their responsive widths, with one shared search icon. */
div:has(> input.ui-keyword-search) > svg.lucide-search {display:none;}
.cashflow-monthly-editor .cashflow-monthly-status-field {width:144px;flex:0 1 144px;}
.account-profile-row {display:grid;grid-template-columns:minmax(0,240px) minmax(0,240px) auto;align-items:end;gap:12px;}
.account-profile-row > div:has(input) {min-width:0;}
.account-profile-row input {height:40px;box-sizing:border-box;}
.account-profile-row > div:has(> button) {justify-content:flex-start;}
.account-profile-row > div:not(:has(input,button)) {grid-column:1/-1;}
.account-password-form .grid > div > label {min-height:24px;display:flex;align-items:center;flex-wrap:wrap;gap:2px;}
.account-password-form input {height:40px;box-sizing:border-box;}
.account-password-form button[title] {width:32px;min-width:32px;height:32px;min-height:32px;padding:0;display:inline-flex;align-items:center;justify-content:center;right:4px;}
@media(max-width:640px) {.account-profile-row {grid-template-columns:repeat(2,minmax(0,1fr));}.account-profile-row > div:has(> button) {grid-column:1/-1;}}
@media(max-width:400px) {.account-profile-row {grid-template-columns:minmax(0,1fr);}}
@media(max-width:1024px),(pointer:coarse) {input.ui-keyword-search {font-size:16px;}}
/* Password labels reserve the same two-line space on desktop. */
@media(min-width:768px) {.account-password-form .grid > div > label {min-height:40px;align-content:center;}}
input.ui-keyword-search {width:320px;}

/* Compact payment status in both settlement entry paths. */
select.cashflow-payment-status-select {width:144px;max-width:100%;box-sizing:border-box;padding-left:8px;padding-right:22px;}
@media(max-width:1024px),(pointer:coarse) {select.cashflow-payment-status-select {width:160px;}.cashflow-monthly-editor .cashflow-monthly-status-field {width:160px;flex-basis:160px;}}

/* Opt-in for the reported touch lists: keep viewport chrome and outer scrolling
   from changing list geometry, and contain boundary gestures in both axes. */
@media screen and (max-width:1024px), screen and (any-pointer:coarse) {
 .ui-list-scroll.ui-list-touch-stable {width:100%;box-sizing:border-box;min-width:0;max-width:100%;max-height:65vh;max-height:var(--list-touch-height,65svh);overscroll-behavior:contain;overflow-anchor:none;}
 /* Enabled only while the shared touch handler is installed. Keep pinch zoom. */
 .ui-list-scroll.ui-list-touch-stable[data-touch-scroll-contained] {touch-action:pinch-zoom;overscroll-behavior:none;}
 .ui-list-scroll.ui-list-touch-stable[data-touch-scroll-contained] :is(input,select,[contenteditable="true"]) {touch-action:manipulation;}
}
.announcement-publication-dates {min-width:0;max-width:100%;grid-template-columns:minmax(0,1fr);}
.announcement-publication-dates > div {min-width:0;max-width:100%;}
.announcement-publication-dates input[type=date] {display:block;box-sizing:border-box;width:100%;min-width:0;max-width:100%;}
@media(min-width:640px) {.announcement-publication-dates {grid-template-columns:repeat(2,minmax(0,1fr));}}

.scroll-to-top {position:fixed;right:max(16px,env(safe-area-inset-right));bottom:max(16px,env(safe-area-inset-bottom));z-index:30;display:inline-flex;align-items:center;justify-content:center;width:40px;min-width:40px;height:40px;min-height:40px;padding:0;border:1px solid #cbd5e1;border-radius:50%;background:#fff;color:#334155;box-shadow:0 2px 8px #0f172a26;cursor:pointer;}
.scroll-to-top:hover {background:#eff6ff;border-color:#93c5fd;color:#1d4ed8;}
.scroll-to-top:focus-visible {outline:3px solid #93c5fd;outline-offset:3px;}
@media print {.scroll-to-top {display:none!important;}}
.announcement-publication-dates {display:grid;gap:12px;align-items:end;}
.announcement-end-row {display:flex;align-items:flex-end;flex-wrap:wrap;gap:12px;}
.announcement-end-row > .invoice-field {flex:0 1 200px;min-width:0;max-width:100%;}
.announcement-no-end {display:inline-flex;align-items:center;gap:6px;min-height:40px;font-size:var(--ui-body);white-space:nowrap;}
.announcement-no-end input {width:16px;height:16px;flex:none;accent-color:#4169ff;}
.announcement-end-row input:disabled {background:#f1f5f9;color:#64748b;}
@media(min-width:640px) {.announcement-publication-dates {grid-template-columns:minmax(0,200px) minmax(0,1fr);}}

.billing-delete-dependencies {margin:12px 0;display:grid;gap:6px;}
.billing-delete-dependencies > div {display:flex;justify-content:space-between;gap:16px;padding:6px 0;border-bottom:1px solid #e2e8f0;}
.billing-delete-dependencies dd {margin:0;font-variant-numeric:tabular-nums;white-space:nowrap;}
.ui-delete-confirm h3 {font-size:var(--ui-heading);font-weight:700;margin-bottom:12px;}
.ui-delete-confirm > p {margin-block:8px;line-height:1.65;}
.ui-delete-confirm .ui-edit-footer {justify-content:flex-end;gap:8px;}
.ui-delete-confirm .invoice-button.finance-cancel {background:#fff;border-color:#cbd5e1;color:#334155;}
.ui-delete-confirm .invoice-button.finance-cancel:hover:not(:disabled) {background:#f1f5f9;}
.ui-delete-confirm .invoice-button.finance-danger {background:#b91c1c;border-color:#991b1b;color:#fff;}
.ui-delete-confirm .invoice-button.finance-danger:hover:not(:disabled) {background:#991b1b;}
.ui-delete-confirm button[data-ui-action="delete"] {--action-bg:#b91c1c;--action-border:#991b1b;--action-text:#fff;--action-hover:#991b1b;margin-right:0;font-weight:700;}
.billing-case-editor .invoice-button.finance-cancel {background:#fff;border-color:#cbd5e1;color:#334155;}
.billing-case-editor .invoice-button.finance-cancel:hover:not(:disabled) {background:#f1f5f9;}

/* Identify the exact row opened from a home alert without changing its status. */
@media screen { [data-home-alert-target="true"] > td { background:#eff6ff!important; border-top:2px solid #93c5fd; border-bottom:2px solid #93c5fd; } }

/* Task names are intentionally 2px smaller than other primary list names. */
main .ui-data-list .ui-list-primary.project-task-name {font-size:calc(var(--ui-list-name,15px) - 2px);}
/* Shared foreground status for user-triggered long operations. */
/* One mobile disclosure; mounted filters keep their state and desktop layout. */
.ui-filter-toggle {display:inline-flex;align-items:center;justify-content:flex-start;gap:8px;box-sizing:border-box;min-height:40px;padding:8px 14px;border:1px solid #e7e5e4;border-radius:12px;background:#fafaf9;color:#44403c;font-size:14px;font-weight:600;line-height:22px;text-align:left;cursor:pointer;user-select:none;max-width:100%;}
.ui-filter-toggle:hover {background:#f5f5f4;}
.ui-filter-toggle:focus-within {outline:2px solid #4169ff;outline-offset:2px;}
.ui-filter-toggle input[type="checkbox"] {width:16px;height:16px;flex-shrink:0;margin:0;accent-color:#4169ff;}
.group-task-category-field {display:inline-flex;align-items:center;gap:8px;min-width:0;max-width:100%;font-size:12px;font-weight:600;color:#57534e;}
select.group-task-category-filter {width:170px;max-width:100%;min-width:0;height:40px;padding:8px 24px 8px 10px;border:1px solid #e7e5e4;border-radius:12px;background:#fff;}
.group-task-category-field .company-option-button {width:170px;}
input.ui-keyword-search.group-task-keyword {width:180px;max-width:100%;}
.sales-controls-panel input[aria-label='営業キーワード'] {width:190px;max-width:100%;min-width:140px;}
.sales-controls-panel .company-option-select {width:200px;}
.invoice-field > select[aria-label='顧客の業種で絞込'] { width:140px; max-width:100%; min-width:0; }
.customer-list-filter-fields { display:contents; }
.customer-list-filter-fields .customer-filter-keyword { width:180px; max-width:100%; }
.customer-list-filter-fields .invoice-field:has([aria-label='顧客のカテゴリで絞込']) { width:150px; max-width:100%; min-width:0; }
.billing-projects-table th { padding:10px; }
.billing-projects-table td { padding:12px 10px; vertical-align:middle; }

/* 一覧条件と操作の共通配置。登録操作は検索の開閉対象に含めない。 */
.ui-filter-panel { padding:16px; }
.ui-filter-action-row { display:flex; flex-wrap:wrap; align-items:center; gap:12px 16px; }
.ui-filter-action-row .billing-list-filter-fields { min-width:0; flex:1 1 auto; }
.ui-filter-primary-action { margin-left:auto; flex:0 0 auto; }
.ui-filter-fields.cp-toolbar { margin-bottom:0; }
.ui-filter-panel + .cp-toolbar { margin-top:16px; }
.sales-controls-panel .responsive-filters-content select { background:#fff; }
.cp-plan-selectors > label { display:flex; flex-wrap:wrap; align-items:center; gap:8px; min-width:0; max-width:100%; }
.cp-plan-selectors .ui-field-help-label { flex:0 0 auto; white-space:nowrap; }
.cp-plan-selectors input,.cp-plan-selectors select { min-width:0; max-width:100%; }
@media(max-width:600px){ .ui-filter-panel { padding:12px; } }
.billing-list-filter-fields > input.ui-keyword-search {width:270px;max-width:100%;}
.ui-filter-toggle {white-space:nowrap;}
.company-option-select {display:inline-flex;position:relative;vertical-align:middle;max-width:100%;min-width:0;flex-wrap:wrap;}
.company-option-native {position:absolute!important;width:1px!important;height:1px!important;opacity:0;clip-path:inset(50%);overflow:hidden;pointer-events:none;}
.company-option-button {display:inline-flex;align-items:center;gap:8px;min-height:40px;max-width:100%;min-width:0;padding:8px 10px;border:1px solid #cbd5e1;border-radius:10px;background:white;color:#1e293b;font:inherit;text-align:left;cursor:pointer;box-sizing:border-box;}
.company-option-button:focus-visible {outline:2px solid #4169ff;outline-offset:2px;}
.company-option-button:disabled {opacity:.5;cursor:not-allowed;}
.company-option-select:has(> .w-full),.invoice-field > .company-option-select,.loan-field > .company-option-select {width:100%;}
.invoice-field > .company-option-select > .company-option-button,.loan-field > .company-option-select > .company-option-button {width:100%;}
.company-option-text {overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0;}
.company-option-arrow {margin-left:auto;flex-shrink:0;}
.company-option-icon {display:inline-flex;align-items:center;justify-content:center;width:24px;height:24px;flex:0 0 24px;border-radius:6px;color:white;font-size:13px;font-weight:700;line-height:1;}
.company-option-popup {position:fixed;inset:auto;margin:0;padding:4px;box-sizing:border-box;max-width:calc(100vw - 24px);max-height:min(340px,55dvh);overflow:auto;overscroll-behavior:contain;border:1px solid #cbd5e1;border-radius:12px;background:white;color:#1e293b;box-shadow:0 12px 36px #0f172a33;z-index:2147483600;font-size:14px;}
.company-option-item {display:flex;align-items:center;gap:8px;min-height:40px;padding:7px 10px;box-sizing:border-box;border-radius:8px;cursor:pointer;overflow-wrap:anywhere;}
.company-option-item.is-active {background:#eef3ff;}
.company-option-item[aria-selected='true'] {font-weight:700;}
.company-option-item[aria-disabled='true'] {opacity:.45;cursor:not-allowed;}
.company-option-error {flex-basis:100%;color:#b91c1c;font-size:12px;margin-top:4px;}
.invoice-toolbar.billing-list-filter-fields {justify-content:flex-start;flex-wrap:wrap;}
.responsive-filters-content:has(.group-task-category-field) .inline-flex:has(> select) {flex-wrap:wrap;max-width:100%;}
.responsive-filters-content:has(.group-task-category-field) .inline-flex:has(> select) > span {white-space:nowrap;}
.responsive-filters,.responsive-filters-content {display:contents;}
.ui-filter-field.invoice-field {display:flex;flex-direction:column;align-items:stretch;gap:4px;min-width:0;max-width:100%;margin:0;flex:0 1 auto;}
.ui-filter-field.invoice-field > span:first-child {display:inline-flex;align-items:center;gap:4px;min-height:22px;line-height:22px;font-size:12px;font-weight:600;color:#57534e;}
.ui-filter-field :is(input:not([type=checkbox]),select,.company-option-button) {box-sizing:border-box;min-height:40px;height:40px;}
.ui-filter-field select {background:#fff;}
.ui-filter-field > .relative {min-width:0;max-width:100%;}
.ui-filter-field.group-task-category-field {width:170px;}
.ui-filter-context-row {align-items:flex-end;}
.ui-filter-context-row > .ui-filter-field > .flex {align-items:flex-end;}
.ui-filter-tab-group {box-sizing:border-box;min-height:40px;padding:0;align-items:center;}
/* The global button rule uses height:auto; these compact display tabs stay 40px including their count badges. */
.ui-filter-tab-group > button,.ui-filter-context-row > div.ui-filter-field > .flex > button {height:40px!important;min-height:40px;padding-top:6px!important;padding-bottom:6px!important;}
.ui-filter-context-row .company-option-button {height:40px!important;min-height:40px;padding-top:7px!important;padding-bottom:7px!important;}
.responsive-filters-content :is(.flex,.cp-toolbar,.invoice-toolbar):has(> .ui-filter-field),.flex:has(> .responsive-filters),.ui-filter-action-row {align-items:flex-end;}
.responsive-filters .responsive-filters-toggle {display:none;}
@media screen and (max-width:1024px),screen and (any-pointer:coarse) {
 .responsive-filters .responsive-filters-toggle {display:inline-flex;align-items:center;justify-content:flex-start;gap:8px;flex:0 0 100%;width:100%;max-width:100%;min-height:40px;padding:9px 12px;border:1px solid #dbe3ed;border-radius:12px;background:#f8fafc;color:#334155;font-size:13px;font-weight:600;box-sizing:border-box;white-space:normal;text-align:left;}
 .responsive-filters-toggle > span:last-child {margin-left:auto;}
 .responsive-filters-content[data-open="false"] {display:none;}
 .responsive-filters-content > :is(div,section,label) {min-width:0;max-width:100%;box-sizing:border-box;}
 .responsive-filters-content :is(input,select) {max-width:100%;box-sizing:border-box;}
 .flex:has(> .responsive-filters) {flex-wrap:wrap;min-width:0;max-width:100%;flex-basis:100%;}
 .responsive-filters-content .flex {flex-wrap:wrap;min-width:0;max-width:100%;}
 .responsive-filters-content span.whitespace-nowrap {white-space:normal;}
 .responsive-filters-content .cashflow-annual-filters {grid-template-columns:repeat(auto-fit,minmax(min(100%,220px),1fr));}
 .responsive-filters-badge {padding:2px 6px;border-radius:6px;background:#4169ff;color:white;font-size:11px;white-space:nowrap;}
}
@media print {
 .responsive-filters .responsive-filters-toggle {display:none!important;}
 .responsive-filters-content[data-open] {display:contents!important;}
}
.foreground-progress {position:fixed;inset:0;margin:auto;width:min(420px,calc(100vw - 32px));max-height:calc(100dvh - 32px);padding:28px;border:1px solid #dce3ef;border-radius:20px;background:#fff;color:#1e293b;box-shadow:0 24px 70px #0f172a33;text-align:center;overflow:auto;}
.foreground-progress::backdrop {background:#0f172a55;backdrop-filter:blur(2px);}
.foreground-progress h2 {margin:16px 0 8px;font-size:16px;font-weight:700;line-height:1.6;}
.foreground-progress p {margin:0;font-size:13px;line-height:1.7;color:#64748b;}
.foreground-progress-spinner {display:inline-block;width:32px;height:32px;border:3px solid #e2e8f0;border-top-color:#4169ff;border-radius:50%;animation:foreground-progress-spin .8s linear infinite;}
.asset-photo-controls {display:flex;gap:10px;align-items:center;flex-wrap:wrap;min-width:0;}
.asset-photo-controls>input {flex:1;min-width:120px;width:0;}
.asset-photo-select {position:relative;display:inline-flex;align-items:center;justify-content:center;min-height:40px;padding:8px 14px;border:1px solid #dce3ef;border-radius:12px;background:#f8fafc;font-weight:600;cursor:pointer;overflow:hidden;}
.asset-photo-select:focus-within {outline:2px solid #4169ff;outline-offset:2px;}
.asset-photo-select>input {position:absolute;inset:0;opacity:0;cursor:pointer;width:100%;height:100%;}
@keyframes foreground-progress-spin {to {transform:rotate(360deg);}}
@media(prefers-reduced-motion:reduce){.foreground-progress-spinner{animation:none;}}

/* Shared list registration actions: keep visible when mobile filters are collapsed. */
.ui-filter-action-row .ui-filter-inline-fields {display:contents;}
.ui-filter-left-action {display:flex;justify-content:flex-start;flex:0 0 auto;margin-left:0;}
.ui-register-button {display:inline-flex;align-self:flex-end;align-items:center;justify-content:center;gap:6px;min-height:40px;padding:8px 16px;border:1px solid #4169ff;border-radius:12px;background:#4169ff;color:#fff;font-size:14px;font-weight:600;line-height:22px;white-space:nowrap;cursor:pointer;}
.ui-register-button:hover:not(:disabled) {background:#3158ee;border-color:#3158ee;}
.mail-view .invoice-button.finance-cancel {background:#fff;border-color:#cbd5e1;color:#334155;}
.mail-view .invoice-button.finance-cancel:hover:not(:disabled) {background:#f1f5f9;}
.mail-view .invoice-button:focus-visible {outline:2px solid #4169ff;outline-offset:2px;}
.mail-thread-body {max-height:55vh;overflow-wrap:anywhere;}
.mail-history-tabs {display:flex;gap:8px;border-bottom:1px solid #e2e8f0;padding-bottom:12px;}
.mail-view .mail-history-tabs .invoice-button.finance-cancel[aria-selected=true] {background:#4169ff;color:#fff;border-color:#4169ff;}
.mail-view .mail-history-tabs .invoice-button.finance-cancel[aria-selected=true]:hover {background:#3158ee;color:#fff;}
.mail-history-table {min-width:600px;table-layout:auto;}
.mail-history-table td:first-child {min-width:150px;max-width:240px;}
.mail-selected-message {border-color:#93c5fd;background:#eff6ff;scroll-margin-block:12px;}
.header-inquiry-action {display:none;min-height:40px;cursor:pointer;}
@media (min-width:1024px) {.header-inquiry-action {display:inline-flex;}}
.ui-register-button:disabled {opacity:.5;cursor:not-allowed;}

/* Compact annual filters keep their labels and wrap within narrow screens. */
.cashflow-annual-filters {display:flex;flex-wrap:wrap;align-items:flex-end;justify-content:flex-start;}
.cashflow-annual-filters > .ui-filter-field {width:170px;max-width:100%;min-width:0;}
.cashflow-annual-filters > .ui-filter-field:first-child {width:240px;}
.cashflow-annual-filters > .ui-filter-field:last-child {width:200px;}
.cashflow-annual-filters :is(input,select) {width:100%;}
.ui-dialog-header {display:flex;align-items:flex-start;justify-content:space-between;gap:12px;min-width:0;}
.ui-dialog-heading {min-width:0;flex:1;overflow-wrap:anywhere;}
.ui-dialog-heading>h2,.ui-dialog-heading>h3,.ui-dialog-heading>h4 {margin:0;}
.ui-dialog-close {flex:0 0 40px;min-width:40px;width:40px;min-height:40px;padding:0!important;display:inline-flex;align-items:center;justify-content:center;font-size:20px!important;line-height:1;}
.ui-status-badge {align-items:center;justify-content:center;min-height:32px;box-sizing:border-box;padding:5px 10px;line-height:1.5;white-space:nowrap;}
.ui-status-badge.is-lost {background:#fff1f2;color:#be123c;border-color:#fecdd3;}
.ui-data-list .ui-status-badge.project-status-badge,.ui-data-list .project-progress-value {font-size:calc(var(--ui-note,12px) + 2px);}
.ui-action-row {display:flex;align-items:center;gap:8px;flex-wrap:nowrap;white-space:nowrap;}
.sales-opportunities-table th:last-child,.sales-opportunities-table td:last-child {width:1%;min-width:0;white-space:nowrap;}
.ui-editor-delete-start {margin-right:auto;}
.transfer-management .loan-field :is(input,select,textarea),.transfer-view .loan-field :is(input,select,textarea) {background:#fff;}
.ui-status-badge {border-radius:999px;}
.ui-edit-footer.ui-delete-confirm-actions>.finance-danger {margin-right:0;}
.cashflow-details-header>.ui-dialog-header {width:100%;}
.project-list-table .project-status-badge {min-width:78px;}
.ui-data-list td:has(>.project-progress-value),.ui-data-list .project-progress-value {min-width:74px;}
.transfer-management .ui-edit-dialog :is(input:not([type=checkbox]):not([type=radio]),select,textarea) {background:#fff;}
.ui-status-badge.project-status-badge {min-width:78px;}
.ui-edit-dialog .invoice-button.finance-primary {background:#4169ff;border-color:#4169ff;color:#fff;}
.ui-edit-dialog .invoice-button.finance-primary:hover:not(:disabled) {background:#3158ee;border-color:#3158ee;}
.ui-confirm-summary {display:grid;gap:8px;padding:12px;border:1px solid #e2e8f0;border-radius:12px;background:#fff;}
.ui-confirm-summary>div {display:grid;grid-template-columns:minmax(90px,120px) minmax(0,1fr);gap:12px;}
.ui-confirm-summary dt {color:#64748b;font-weight:600;}
.ui-confirm-summary dd {margin:0;overflow-wrap:anywhere;}
.ui-centered-dialog { width:min(800px,calc(100vw - 32px)); max-width:calc(100vw - 32px); max-height:calc(100dvh - 32px); margin:auto; background:#fff; overscroll-behavior:contain; }
.ui-centered-dialog > .billing-case-editor { width:100%; max-width:none; box-sizing:border-box; padding:24px; }
.billing-editor-fields { min-width:0; margin:0; padding:0; border:0; }
.billing-item-measure-row,.billing-item-tax-row {grid-column:1 / -1;display:flex;flex-wrap:wrap;align-items:flex-end;gap:12px;min-width:0;}
.billing-item-measure-row > .invoice-field {flex:0 1 7rem;width:7rem;max-width:100%;}
.billing-item-tax-row > .invoice-field {max-width:100%;}
.billing-item-tax-row > .invoice-field:first-child {flex:0 1 12rem;width:12rem;}
.billing-item-tax-row > .invoice-field:nth-child(2) {flex:0 1 10rem;width:10rem;}
.billing-item-tax-row > .invoice-field > span:first-child {display:inline-flex;align-items:center;gap:4px;white-space:nowrap;}
.billing-item-tax-toggle {display:inline-flex;align-items:center;gap:8px;min-height:40px;max-width:100%;margin:0;line-height:1.4;white-space:nowrap;}
.billing-item-tax-toggle input[type="checkbox"] {width:16px;min-width:16px;height:16px;min-height:16px;flex:0 0 16px;margin:0;accent-color:#4169ff;}
.billing-item-dates {grid-column:1 / -1;}
@media(max-width:640px) { .ui-centered-dialog > .billing-case-editor { padding:20px; } }

.cashflow-contract-detail-cell { cursor:pointer; }
.cashflow-contract-detail-cell:focus-visible { outline:2px solid #4169ff; outline-offset:-2px; }
.ui-detail-row { cursor:pointer; }
.ui-detail-row:hover { background:#f0f4ff; }
.ui-detail-row:focus-visible { outline:2px solid #4169ff; outline-offset:-2px; }
.ui-edit-dialog.schedule-editor-layout { display:flex; flex-direction:column; padding:0; overflow:hidden; min-width:0; max-width:min(720px,100%); max-height:calc(100dvh - 32px); }
.schedule-editor-header,.schedule-editor-footer { flex-shrink:0; min-width:0; padding:16px 20px; background:#fff; }
.schedule-editor-header { border-bottom:1px solid #e2e8f0; }
.schedule-editor-header h3 { min-width:0; overflow-wrap:anywhere; }
.schedule-editor-form { display:flex; flex-direction:column; flex:1; min-height:0; min-width:0; overflow:hidden; }
.schedule-editor-body { min-height:0; min-width:0; overflow:auto; overscroll-behavior:contain; padding:20px; }
.schedule-editor-body :is(.grid,.grid > div,input,select,textarea) { min-width:0; max-width:100%; }
.schedule-editor-body input[type=datetime-local] { width:100%; min-inline-size:0; max-inline-size:100%; box-sizing:border-box; }
.schedule-editor-footer { border-top:1px solid #e2e8f0; }
/* Explicit header/body/footer slots. Forms and disabled fieldsets keep their
   original semantics; only the body owns the outer vertical scroll. */
.ui-fixed-dialog.ui-fixed-dialog { display:flex; flex-direction:column; min-height:0; min-width:0; padding:0; margin-block:0; gap:0; overflow:hidden; max-height:calc(100dvh - 32px); overscroll-behavior:contain; }
.ui-fixed-dialog-chain { display:flex; flex-direction:column; flex:1 1 auto; min-height:0; min-width:0; margin:0; padding:0; border:0; gap:0; overflow:hidden; }
fieldset.ui-fixed-dialog-chain { display:block; position:relative; }
.ui-fixed-dialog:has(.ui-fixed-dialog-fieldset-content) { height:calc(100dvh - 32px); }
.ui-fixed-dialog-fieldset-content { position:absolute; inset:0; display:flex; flex-direction:column; min-height:0; min-width:0; }
.ui-fixed-dialog > :is(.ui-dialog-header,h2,h3,.ui-fixed-dialog-header),.ui-fixed-dialog-chain > .ui-fixed-dialog-header { flex-shrink:0; margin:0; padding:16px 20px; border-bottom:1px solid #e2e8f0; background:#fff; min-width:0; }
.ui-fixed-dialog .ui-dialog-heading { min-width:0; }
.ui-fixed-dialog-body { flex:1 1 auto; min-height:0; min-width:0; padding:20px; overflow:auto; overscroll-behavior:contain; }
.ui-fixed-dialog-body .ui-customer-entry { max-height:none; overflow:visible; }
.ui-fixed-dialog-footer { flex-shrink:0; display:flex; flex-wrap:wrap; align-items:center; justify-content:flex-end; gap:8px; margin:0; padding:16px 20px; border-top:1px solid #e2e8f0; background:#fff; }
.ui-fixed-dialog-footer > :is(.ui-edit-footer,.cp-toolbar,.project-tools-footer) { width:100%; margin:0; padding:0; border:0; }
.ui-fixed-dialog :is(.grid,.grid > div,.loan-form-grid,input,select,textarea) { min-width:0; max-width:100%; }
.ui-fixed-dialog input:is([type=date],[type=month],[type=datetime-local]) { min-inline-size:0; max-inline-size:100%; box-sizing:border-box; }
.ui-fixed-dialog-content { max-height:none; overflow:visible; }
.ui-dialog-touch-scroll { overflow-anchor:none; }
.ui-unified-heading .ui-dialog-touch-scroll > fieldset { min-inline-size:0; margin:0; padding:0; border:0; }
@media screen and (max-width:1024px), screen and (any-pointer:coarse) {
 .ui-dialog-touch-scroll[data-touch-scroll-contained] { touch-action:pinch-zoom; overscroll-behavior:none; }
 .ui-dialog-touch-scroll[data-touch-scroll-contained] :is(input,select,[contenteditable="true"]) { touch-action:manipulation; }
}
.cashflow-side-panel > [role=dialog].ui-fixed-dialog.ui-panel-content { width:100%; height:100%; min-height:0; max-height:100%; padding:0; border-radius:0; }
.ui-centered-dialog > [role=dialog].ui-fixed-dialog.ui-panel-content { width:100%; min-height:0; max-height:calc(100dvh - 32px); padding:0; }
/* Opt in only the billing editors: include the native dialog border in the
   available flex height, leaving one scroll surface in the form body. */
.ui-fixed-dialog-host[open] { display:flex; flex-direction:column; overflow:hidden; }
.ui-fixed-dialog-host > .ui-fixed-dialog { flex:1 1 auto; min-height:0; }
/* Legacy finance h3 underlines must not duplicate the shared header divider. */
:is(.loan-management .ui-fixed-dialog,.property-event-editor.ui-fixed-dialog,.ui-unified-heading.ui-fixed-dialog) > .ui-dialog-header .ui-dialog-heading > h3 { margin:0; padding:0; border:0; }
.loan-management:not(.transfer-management) .ui-fixed-dialog :is(input:not([type=checkbox]):not([type=radio]),select,textarea) { background:#fff; }
@media(max-width:600px) { .ui-fixed-dialog-body { padding:16px; } .ui-fixed-dialog-footer,.ui-fixed-dialog > :is(.ui-dialog-header,h2,h3,.ui-fixed-dialog-header),.ui-fixed-dialog-chain > .ui-fixed-dialog-header { padding:12px 16px; } }

/* Auto-number readonly fields use the project number background. */
input[data-automatic-number][readonly] { background-color: #fafaf9 !important; color: #292524; cursor: default; }

/* Shared register/edit/delete appearance. Explicit semantic attributes, never caption inference. */
@media screen {
 button:is([data-ui-action="register"],[data-ui-action="edit"],[data-ui-action="delete"])[data-ui-action] {display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;vertical-align:middle;gap:6px;height:40px;min-height:40px;padding:8px 12px;font-size:var(--ui-body,13.5px);font-weight:600;line-height:22px;border:1px solid var(--action-border) !important;border-radius:12px;background:var(--action-bg) !important;color:var(--action-text) !important;white-space:nowrap;box-shadow:none;cursor:pointer;transition:background-color .15s,border-color .15s;}
 button[data-ui-action="register"][data-ui-action] {--action-bg:#4169ff;--action-border:#4169ff;--action-text:#ffffff;--action-hover:#3158ee;--ui-action-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M5%2012h14%22%2F%3E%3Cpath%20d%3D%22M12%205v14%22%2F%3E%3C%2Fsvg%3E");}
 button[data-ui-action="edit"][data-ui-action] {--action-bg:#f5f3ff;--action-border:#c4b5fd;--action-text:#5b21b6;--action-hover:#ede9fe;--ui-action-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M21.174%206.812a1%201%200%200%200-3.986-3.987L3.842%2016.174a2%202%200%200%200-.5.83l-1.321%204.352a.5.5%200%200%200%20.623.622l4.353-1.32a2%202%200%200%200%20.83-.497z%22%2F%3E%3Cpath%20d%3D%22m15%205%204%204%22%2F%3E%3C%2Fsvg%3E");}
 button[data-ui-action="delete"][data-ui-action] {--action-bg:#fff1f2;--action-border:#fecdd3;--action-text:#e11d48;--action-hover:#ffe4e6;--ui-action-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M10%2011v6%22%2F%3E%3Cpath%20d%3D%22M14%2011v6%22%2F%3E%3Cpath%20d%3D%22M19%206v14a2%202%200%200%201-2%202H7a2%202%200%200%201-2-2V6%22%2F%3E%3Cpath%20d%3D%22M3%206h18%22%2F%3E%3Cpath%20d%3D%22M8%206V4a2%202%200%200%201%202-2h4a2%202%200%200%201%202%202v2%22%2F%3E%3C%2Fsvg%3E");}
 button[data-ui-action="register"][data-ui-action] {padding-inline:16px;box-shadow:0 1px 2px rgb(0 0 0 / .05);}
 button:is([data-ui-action="register"],[data-ui-action="edit"],[data-ui-action="delete"])[data-ui-action]::before {content:"";display:inline-block;flex:0 0 14px;width:14px;height:14px;background:currentColor;-webkit-mask:var(--ui-action-icon) center/contain no-repeat;mask:var(--ui-action-icon) center/contain no-repeat;}
 button:is([data-ui-action="register"],[data-ui-action="edit"],[data-ui-action="delete"])[data-ui-action] > svg, button:is([data-ui-action="register"],[data-ui-action="edit"],[data-ui-action="delete"])[data-ui-action] > span > svg {display:none;}
 button:is([data-ui-action="register"],[data-ui-action="edit"],[data-ui-action="delete"]):disabled {opacity:.5;cursor:not-allowed;}
 :is(.ui-delete-confirm button,button.schedule-delete-confirm,button[data-ui-confirm="true"])[data-ui-action="delete"][data-ui-action] {--action-bg:#b91c1c;--action-border:#991b1b;--action-text:#fff;--action-hover:#991b1b;}
}

/* Shared sort caption: decorative icon only; keep filter control dimensions unchanged. */
.ui-filter-caption{display:inline-flex;align-items:center;gap:4px;vertical-align:middle;white-space:nowrap}
.ui-filter-caption>svg{width:14px;height:14px;flex:none}

/* Compact company selector in mail/inquiry compose dialogs. */
.ui-filter-field.mail-sender-company-field{width:320px;max-width:100%;}

/* Compact internal-ID actions in cashflow lists. */
.record-id-copy-cell{width:48px;min-width:48px;padding:6px!important;text-align:center;vertical-align:middle;}
.record-id-copy{display:inline-flex;align-items:center;justify-content:center;width:32px;min-width:32px;min-height:32px;padding:6px;border:1px solid #e2e8f0;border-radius:8px;background:#fff;color:#64748b;cursor:pointer;}
.record-id-copy:hover:not(:disabled){background:#eef3ff;color:#4169ff;}
.record-id-copy:focus-visible{outline:2px solid #4169ff;outline-offset:2px;}
.record-id-copy-value{width:100%;min-width:0;font-family:monospace;}
@media(pointer:coarse){.record-id-copy{width:40px;min-height:40px;}}

/* Shared desktop input-dialog gutter. Only editable body slots opt in:
   confirmation, authentication and read-only detail dialogs retain their layout.
   Existing form width gains 60px to offset the padding increase from 20 to 50. */
@media screen and (min-width:1025px) and (hover:hover) and (pointer:fine) and (any-pointer:fine) {
  :is(.ui-edit-dialog.ui-fixed-dialog,.mail-compose-dialog):has(.ui-fixed-dialog-body :is(input,select,textarea)) { --ui-editor-width:780px; width:min(100%,var(--ui-editor-width)); max-width:var(--ui-editor-width); }
  :is(.ui-edit-dialog.ui-fixed-dialog,.mail-compose-dialog):has(.ui-fixed-dialog-body :is(input,select,textarea)) .ui-fixed-dialog-body { padding-inline:50px; }
  .ui-edit-dialog.schedule-editor-layout { width:min(100%,780px); max-width:780px; }
  .schedule-editor-layout .schedule-editor-body { padding-inline:50px; }
  .ui-centered-dialog:has(> :is(.billing-case-editor,.mail-compose-dialog) .ui-fixed-dialog-body :is(input,select,textarea)) { width:min(860px,calc(100vw - 32px)); }
  .ui-centered-dialog > :is(.billing-case-editor,.mail-compose-dialog).ui-fixed-dialog:has(.ui-fixed-dialog-body :is(input,select,textarea)) { --ui-editor-width:100%; width:100%; max-width:100%; }
  .ui-edit-dialog.ui-fixed-dialog.ui-project-edit-scroll-gutter { --ui-editor-width:732px; }
  .ui-project-edit-scroll-gutter .ui-fixed-dialog-content { padding-right:0; }
}

/* Help reuses the fixed header/body slots without editor-only input gutters. */
.ui-help-dialog.ui-fixed-dialog { max-height:min(90dvh,calc(100dvh - 32px)); }
.ui-help-dialog > .ui-help-header { align-items:flex-start; }
.ui-help-header > div { min-width:0; }
.ui-help-header h3 { overflow-wrap:anywhere; }
.ui-help-body { overflow-x:hidden; }
.ui-table-header-inverse > th { color:#fff; }
@media(max-width:1024px) {
 .ui-help-permissions-table { min-width:640px; table-layout:fixed; }
 .ui-help-permissions-table :is(th,td):last-child { white-space:normal; overflow-wrap:anywhere; }
}

/* Shared list paging; filters apply to all rows before selecting a page. */
.ui-list-pagination{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px 16px;margin:12px 0;font-size:var(--ui-body);color:#475569;}
.ui-list-pagination-actions{display:flex;align-items:center;gap:12px;}
@media print{.ui-list-pagination{display:none;}}

.cashflow-schedule-company-field,.cashflow-transaction-company-field{width:300px;max-width:100%;}
.cashflow-transaction-contract-field{width:360px;max-width:100%;}

/* Mobile cashflow filters need a real block below the expand/collapse controls. */
@media screen and (max-width:1024px),screen and (any-pointer:coarse) {
 .cashflow-view .responsive-filters {display:block;min-width:0;width:100%;flex-basis:100%;margin-bottom:20px;}
}

/* Native mobile date controls must fit their grid cell, including WebKit's value.
   Opt in only schedule datetime and cashflow schedule month/due-date fields. */
@media screen and (max-width:1366px),screen and (any-pointer:coarse) {
 :is(.schedule-editor-layout,.cashflow-schedule-editor) input.ui-temporal-input {
  -webkit-appearance:none;appearance:none;display:block;box-sizing:border-box;
  width:100%;min-width:0;max-width:100%;min-inline-size:0;max-inline-size:100%;
  height:40px;min-height:40px;max-height:40px;line-height:normal;
  padding:8px 10px;font-family:system-ui,sans-serif;font-size:16px !important;overflow:hidden;
 }
 :is(.schedule-editor-layout,.cashflow-schedule-editor) input.ui-temporal-input::-webkit-date-and-time-value {min-width:0;text-align:left;}
 :is(.schedule-editor-layout,.cashflow-schedule-editor) input.ui-temporal-input::-webkit-datetime-edit {min-width:0;padding:0;}
 .cashflow-schedule-editor .ui-fixed-dialog-body > .space-y-3 > .grid {grid-template-columns:repeat(2,minmax(0,1fr));}
 .cashflow-schedule-editor .ui-fixed-dialog-body > .space-y-3 > .grid > div {min-width:0;}
}

/* Keep long real-estate identities readable inside the existing list scroller. */
.realestate-land-table {min-width:1240px;}
.realestate-land-table .realestate-land-property-cell {min-width:240px;overflow-wrap:anywhere;}
.realestate-property-table {min-width:1640px;}
:is(.realestate-land-table,.realestate-property-table) :is(th,td):nth-child(2) {min-width:320px;overflow-wrap:anywhere;}
.realestate-property-table :is(.realestate-property-land-cell,.realestate-property-kind-cell) {min-width:240px;overflow-wrap:anywhere;}

/* Approved desktop list titles only: keep notes, headers, inputs and schedules unchanged. */
@media screen and (min-width:1025px) and (hover:hover) and (pointer:fine) {
 main .ui-list-title,main .ui-data-list .ui-list-primary.ui-list-title {font-size:14px;}
}

/* Rental list total uses the same body size as its item amounts. */
@media screen { .rental-list-total {font-size:var(--ui-body,13.5px);} }

/* Requested list column balance; title text stays readable and wraps naturally. */
@media screen {
 .sales-opportunities-table :is(th,td):nth-child(2),.sales-opportunities-table :is(th,td):nth-child(3) {min-width:250px;overflow-wrap:anywhere;}
 .cashflow-annual-table :is(th,td):nth-child(2) {min-width:258px;}
 .billing-projects-table :is(th,td):nth-child(2) {width:220px;min-width:220px;max-width:220px;overflow-wrap:anywhere;}
 .billing-projects-table td:nth-child(2) > :is(div,strong) {max-width:220px;white-space:normal;overflow-wrap:anywhere;}
 .rental-slip-list-table :is(th,td):first-child {width:calc(40% + 42px);min-width:242px;overflow-wrap:anywhere;}
 .rental-return-plan {margin-top:2px;}
}

/* Screen list headings share one alignment. Body cells/buttons and print keep their layout. */
@media screen {
 table:is(.ui-data-list,.ui-list-column-headings):is(.ui-data-list,.ui-list-column-headings) > thead > tr > th,
 main .system-version-history table > thead > tr > th,
 main .system-log-panel table > thead > tr > th {text-align:center;}
}

/* Shared print action, based on the cashflow plan toolbar button. */
@media screen {
 button.ui-print-button { box-sizing:border-box;display:inline-flex;flex:0 0 auto;align-items:center;justify-content:center;white-space:nowrap;height:auto;min-height:0;border:1px solid var(--color-stone-200);border-radius:12px;background:#fff;padding:9px 14px;color:var(--color-stone-600);font-family:inherit;font-size:var(--ui-body);line-height:var(--text-xs--line-height,1.3333);font-weight:600;cursor:pointer;transition:background .15s,border-color .15s; }
 button.ui-print-button:hover { background:#eef3ff;border-color:#b8ccff;color:#4169ff; }
 button.ui-print-button:focus-visible { outline:2px solid #4169ff;outline-offset:3px; }
 button.ui-print-button:disabled { opacity:.4;cursor:default; }
}

.realestate-property-table .realestate-property-acquisition-cell{min-width:160px;white-space:nowrap;text-align:right;}

/* Date entry errors are local to the offending control. */
input[data-date-input-error="true"] {border-color:#f43f5e !important;}
[data-date-error-message="true"] {display:block;box-sizing:border-box;min-width:0;flex-basis:100%;}

/* Shared inline validation: no change to normal control dimensions. */
[data-field-input-error="true"] { border-color:#e11d48 !important; }
[data-field-error-message="true"] { display:block; box-sizing:border-box; min-width:0; max-width:100%; flex-basis:100%; white-space:normal; overflow-wrap:anywhere; }



/* Shared editable-control focus: native, React-owned and guard errors use one palette. */
:where(input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="file"]):not([type="button"]):not([type="submit"]):not([type="reset"]):not([type="image"]):not([type="range"]):not([type="color"]),select,textarea,[role="combobox"],[contenteditable="true"]) {
  --ui-control-focus-color:#4169ff;
  --ui-control-focus-outline:none;
  --ui-control-focus-offset:0px;
}
:is(input,select,textarea,[role="combobox"],[contenteditable="true"]):is([aria-invalid="true"],[data-field-input-error="true"],[data-date-input-error="true"],[data-text-limit-error="true"]) {
  --ui-control-focus-color:#e11d48;
  --ui-control-focus-outline:2px solid #e11d48;
  --ui-control-focus-offset:1px;
  border-color:#e11d48 !important;
}
:is(input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="file"]):not([type="button"]):not([type="submit"]):not([type="reset"]):not([type="image"]):not([type="range"]):not([type="color"]),select,textarea,[role="combobox"],[contenteditable="true"]):focus {
  border-color:var(--ui-control-focus-color) !important;
  outline:var(--ui-control-focus-outline) !important;
  outline-offset:var(--ui-control-focus-offset) !important;
  box-shadow:none !important;
}

/* Bound desktop account switching by the selected account, not the longest option. */
.ui-header-user-switcher { width:18rem; max-width:30vw; min-width:0; }
.ui-header-user-switcher > select { width:100%; min-width:0; flex:1 1 0%; text-overflow:ellipsis; }

/* Shared contract end-date and continuation option alignment. */
.company-contract-row{grid-template-columns:12rem minmax(0,1fr)}
.company-contract-end{display:flex;align-items:flex-start;gap:12px;flex-wrap:wrap;min-width:0}
.company-contract-end>.invoice-field{width:12rem;max-width:100%;flex:none}
.company-contract-end>.company-continuous{align-self:flex-end;min-height:40px}
@media(max-width:640px){.company-contract-row{grid-template-columns:minmax(0,1fr)}}
.company-contract-end{grid-column:1/-1}
.company-contract-option{flex:1;min-width:10rem}.company-contract-option .company-continuous{align-self:flex-start;min-height:40px;margin:0;padding:0}

/* List metadata beneath/above company icons shares one vertical spacing rule. */
.ui-list-item-gap { margin-block-start:6px; }

/* A multi-select group uses the same inline error treatment as individual fields. */
.ui-validation-group[data-field-input-error="true"]{border-color:#e11d48!important;outline:2px solid #e11d48;outline-offset:1px}
/* Shared stacked confirmation content and choice alignment. */
.ui-dialog-stack { display:block; }
.ui-dialog-stack > * + * { margin-top:16px; }
.ui-choice-row { display:flex; flex-direction:row; align-items:flex-start; gap:8px; min-width:0; line-height:1.6; }
.ui-choice-row > input[type=checkbox],.ui-choice-row > input[type=radio] { flex:0 0 16px; width:16px; height:16px; min-height:0; margin:3px 0 0; padding:0; accent-color:#4169ff; }
.ui-choice-row > span { min-width:0; overflow-wrap:anywhere; }
.ui-restore-summary { min-width:0; }
.ui-restore-summary table { width:100%; table-layout:fixed; }
.ui-restore-summary th:first-child { width:36%; }
.ui-restore-summary td,.ui-restore-summary th { overflow-wrap:anywhere; }
