/* stylelint-disable */
html,
body {
  width: 100%;
  height: 100%;
}
input::-ms-clear,
input::-ms-reveal {
  display: none;
}
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  font-family: sans-serif;
  line-height: 1.15;
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
  -ms-overflow-style: scrollbar;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

body {
  margin: 0;
}
[tabindex='-1']:focus {
  outline: none;
}
hr {
  box-sizing: content-box;
  height: 0;
  overflow: visible;
}
h1,
h2,
h3,
h4,
h5,
h6 {
  margin-top: 0;
  margin-bottom: 0.5em;
  font-weight: 500;
}
p {
  margin-top: 0;
  margin-bottom: 1em;
}
abbr[title],
abbr[data-original-title] {
  -webkit-text-decoration: underline dotted;
  text-decoration: underline dotted;
  border-bottom: 0;
  cursor: help;
}
address {
  margin-bottom: 1em;
  font-style: normal;
  line-height: inherit;
}
input[type='text'],
input[type='password'],
input[type='number'],
textarea {
  -webkit-appearance: none;
}
ol,
ul,
dl {
  margin-top: 0;
  margin-bottom: 1em;
}
ol ol,
ul ul,
ol ul,
ul ol {
  margin-bottom: 0;
}
dt {
  font-weight: 500;
}
dd {
  margin-bottom: 0.5em;
  margin-left: 0;
}
blockquote {
  margin: 0 0 1em;
}
dfn {
  font-style: italic;
}
b,
strong {
  font-weight: bolder;
}
small {
  font-size: 80%;
}
sub,
sup {
  position: relative;
  font-size: 75%;
  line-height: 0;
  vertical-align: baseline;
}
sub {
  bottom: -0.25em;
}
sup {
  top: -0.5em;
}
pre,
code,
kbd,
samp {
  font-size: 1em;
  font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace;
}
pre {
  margin-top: 0;
  margin-bottom: 1em;
  overflow: auto;
}
figure {
  margin: 0 0 1em;
}
img {
  vertical-align: middle;
  border-style: none;
}
a,
area,
button,
[role='button'],
input:not([type='range']),
label,
select,
summary,
textarea {
  touch-action: manipulation;
}
table {
  border-collapse: collapse;
}
caption {
  padding-top: 0.75em;
  padding-bottom: 0.3em;
  text-align: left;
  caption-side: bottom;
}
input,
button,
select,
optgroup,
textarea {
  margin: 0;
  color: inherit;
  font-size: inherit;
  font-family: inherit;
  line-height: inherit;
}
button,
input {
  overflow: visible;
}
button,
select {
  text-transform: none;
}
button,
html [type='button'],
[type='reset'],
[type='submit'] {
  -webkit-appearance: button;
}
button::-moz-focus-inner,
[type='button']::-moz-focus-inner,
[type='reset']::-moz-focus-inner,
[type='submit']::-moz-focus-inner {
  padding: 0;
  border-style: none;
}
input[type='radio'],
input[type='checkbox'] {
  box-sizing: border-box;
  padding: 0;
}
input[type='date'],
input[type='time'],
input[type='datetime-local'],
input[type='month'] {
  -webkit-appearance: listbox;
}
textarea {
  overflow: auto;
  resize: vertical;
}
fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}
legend {
  display: block;
  width: 100%;
  max-width: 100%;
  margin-bottom: 0.5em;
  padding: 0;
  color: inherit;
  font-size: 1.5em;
  line-height: inherit;
  white-space: normal;
}
progress {
  vertical-align: baseline;
}
[type='number']::-webkit-inner-spin-button,
[type='number']::-webkit-outer-spin-button {
  height: auto;
}
[type='search'] {
  outline-offset: -2px;
  -webkit-appearance: none;
}
[type='search']::-webkit-search-cancel-button,
[type='search']::-webkit-search-decoration {
  -webkit-appearance: none;
}
::-webkit-file-upload-button {
  font: inherit;
  -webkit-appearance: button;
}
output {
  display: inline-block;
}
summary {
  display: list-item;
}
template {
  display: none;
}
[hidden] {
  display: none !important;
}
/* ibm-plex-sans-cyrillic-ext-400-normal */
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(/assets/ibm-plex-sans-cyrillic-ext-400-normal-g30qAdWV.woff2) format('woff2'), url(/assets/ibm-plex-sans-cyrillic-ext-400-normal-Dsrv2Tcn.woff) format('woff');
  unicode-range: U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;
}

/* ibm-plex-sans-cyrillic-400-normal */
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(/assets/ibm-plex-sans-cyrillic-400-normal-DZqxrq2p.woff2) format('woff2'), url(/assets/ibm-plex-sans-cyrillic-400-normal-BTotfTJu.woff) format('woff');
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}

/* ibm-plex-sans-greek-400-normal */
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(/assets/ibm-plex-sans-greek-400-normal-_efipK4i.woff2) format('woff2'), url(/assets/ibm-plex-sans-greek-400-normal-D9ESIMu3.woff) format('woff');
  unicode-range: U+0370-0377,U+037A-037F,U+0384-038A,U+038C,U+038E-03A1,U+03A3-03FF;
}

/* ibm-plex-sans-vietnamese-400-normal */
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(/assets/ibm-plex-sans-vietnamese-400-normal-DG4YqDda.woff2) format('woff2'), url(/assets/ibm-plex-sans-vietnamese-400-normal-fK1oJ5dG.woff) format('woff');
  unicode-range: U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB;
}

/* ibm-plex-sans-latin-ext-400-normal */
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(/assets/ibm-plex-sans-latin-ext-400-normal-C5H60-Va.woff2) format('woff2'), url(/assets/ibm-plex-sans-latin-ext-400-normal-RBey6euL.woff) format('woff');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

/* ibm-plex-sans-latin-400-normal */
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(/assets/ibm-plex-sans-latin-400-normal-CDDApCn2.woff2) format('woff2'), url(/assets/ibm-plex-sans-latin-400-normal-CYLoc0-x.woff) format('woff');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}/* ibm-plex-sans-cyrillic-ext-500-normal */
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url(/assets/ibm-plex-sans-cyrillic-ext-500-normal-Cs5J6C77.woff2) format('woff2'), url(/assets/ibm-plex-sans-cyrillic-ext-500-normal-DB5PtV2g.woff) format('woff');
  unicode-range: U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;
}

/* ibm-plex-sans-cyrillic-500-normal */
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url(/assets/ibm-plex-sans-cyrillic-500-normal-CocWQlwt.woff2) format('woff2'), url(/assets/ibm-plex-sans-cyrillic-500-normal-ByOcLdNv.woff) format('woff');
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}

/* ibm-plex-sans-greek-500-normal */
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url(/assets/ibm-plex-sans-greek-500-normal-JMMifIXV.woff2) format('woff2'), url(/assets/ibm-plex-sans-greek-500-normal-CuWXN6rf.woff) format('woff');
  unicode-range: U+0370-0377,U+037A-037F,U+0384-038A,U+038C,U+038E-03A1,U+03A3-03FF;
}

/* ibm-plex-sans-vietnamese-500-normal */
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url(/assets/ibm-plex-sans-vietnamese-500-normal-e4dixQRQ.woff2) format('woff2'), url(/assets/ibm-plex-sans-vietnamese-500-normal-BEb3_waV.woff) format('woff');
  unicode-range: U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB;
}

/* ibm-plex-sans-latin-ext-500-normal */
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url(/assets/ibm-plex-sans-latin-ext-500-normal-DakdToA3.woff2) format('woff2'), url(/assets/ibm-plex-sans-latin-ext-500-normal-D0aIdm-b.woff) format('woff');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

/* ibm-plex-sans-latin-500-normal */
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url(/assets/ibm-plex-sans-latin-500-normal-6ng42L7E.woff2) format('woff2'), url(/assets/ibm-plex-sans-latin-500-normal-BgVn5rGT.woff) format('woff');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}/* ibm-plex-sans-cyrillic-ext-600-normal */
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src: url(/assets/ibm-plex-sans-cyrillic-ext-600-normal-DUMzJB7m.woff2) format('woff2'), url(/assets/ibm-plex-sans-cyrillic-ext-600-normal-Bz0x94Yp.woff) format('woff');
  unicode-range: U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;
}

/* ibm-plex-sans-cyrillic-600-normal */
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src: url(/assets/ibm-plex-sans-cyrillic-600-normal-71GNu3SW.woff2) format('woff2'), url(/assets/ibm-plex-sans-cyrillic-600-normal-BGq0mW3O.woff) format('woff');
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}

/* ibm-plex-sans-greek-600-normal */
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src: url(/assets/ibm-plex-sans-greek-600-normal-DzTrcv_p.woff2) format('woff2'), url(/assets/ibm-plex-sans-greek-600-normal-D-CqTdkO.woff) format('woff');
  unicode-range: U+0370-0377,U+037A-037F,U+0384-038A,U+038C,U+038E-03A1,U+03A3-03FF;
}

/* ibm-plex-sans-vietnamese-600-normal */
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src: url(/assets/ibm-plex-sans-vietnamese-600-normal-DpPYBSTl.woff2) format('woff2'), url(/assets/ibm-plex-sans-vietnamese-600-normal-DgdngZtN.woff) format('woff');
  unicode-range: U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB;
}

/* ibm-plex-sans-latin-ext-600-normal */
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src: url(/assets/ibm-plex-sans-latin-ext-600-normal-DOrvGEcy.woff2) format('woff2'), url(/assets/ibm-plex-sans-latin-ext-600-normal-DIrixKbi.woff) format('woff');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

/* ibm-plex-sans-latin-600-normal */
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src: url(/assets/ibm-plex-sans-latin-600-normal-CuJfVYMP.woff2) format('woff2'), url(/assets/ibm-plex-sans-latin-600-normal-Cu4Hd6ag.woff) format('woff');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}/* ibm-plex-sans-cyrillic-ext-700-normal */
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-display: swap;
  font-weight: 700;
  src: url(/assets/ibm-plex-sans-cyrillic-ext-700-normal-BmRLXWpJ.woff2) format('woff2'), url(/assets/ibm-plex-sans-cyrillic-ext-700-normal-DCQwxkRk.woff) format('woff');
  unicode-range: U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;
}

/* ibm-plex-sans-cyrillic-700-normal */
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-display: swap;
  font-weight: 700;
  src: url(/assets/ibm-plex-sans-cyrillic-700-normal-D_uavGvn.woff2) format('woff2'), url(/assets/ibm-plex-sans-cyrillic-700-normal-RFb1v-CK.woff) format('woff');
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}

/* ibm-plex-sans-greek-700-normal */
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-display: swap;
  font-weight: 700;
  src: url(/assets/ibm-plex-sans-greek-700-normal-wyJ6jzdA.woff2) format('woff2'), url(/assets/ibm-plex-sans-greek-700-normal-CkZN0sRy.woff) format('woff');
  unicode-range: U+0370-0377,U+037A-037F,U+0384-038A,U+038C,U+038E-03A1,U+03A3-03FF;
}

/* ibm-plex-sans-vietnamese-700-normal */
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-display: swap;
  font-weight: 700;
  src: url(/assets/ibm-plex-sans-vietnamese-700-normal-CkEo6LDy.woff2) format('woff2'), url(/assets/ibm-plex-sans-vietnamese-700-normal-BV5B8Are.woff) format('woff');
  unicode-range: U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB;
}

/* ibm-plex-sans-latin-ext-700-normal */
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-display: swap;
  font-weight: 700;
  src: url(/assets/ibm-plex-sans-latin-ext-700-normal-aMgXseD4.woff2) format('woff2'), url(/assets/ibm-plex-sans-latin-ext-700-normal-DZH6Xh-4.woff) format('woff');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

/* ibm-plex-sans-latin-700-normal */
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-display: swap;
  font-weight: 700;
  src: url(/assets/ibm-plex-sans-latin-700-normal-Bxkt5Cjx.woff2) format('woff2'), url(/assets/ibm-plex-sans-latin-700-normal-Bth3BMcD.woff) format('woff');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}/* ibm-plex-mono-cyrillic-ext-400-normal */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(/assets/ibm-plex-mono-cyrillic-ext-400-normal-xuaO2J-f.woff2) format('woff2'), url(/assets/ibm-plex-mono-cyrillic-ext-400-normal-DMdlQ8Kv.woff) format('woff');
  unicode-range: U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;
}

/* ibm-plex-mono-cyrillic-400-normal */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(/assets/ibm-plex-mono-cyrillic-400-normal-BSMlKf0J.woff2) format('woff2'), url(/assets/ibm-plex-mono-cyrillic-400-normal-CEL4l2ZJ.woff) format('woff');
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}

/* ibm-plex-mono-vietnamese-400-normal */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(/assets/ibm-plex-mono-vietnamese-400-normal-BulugwFq.woff2) format('woff2'), url(/assets/ibm-plex-mono-vietnamese-400-normal-DDuiU_S-.woff) format('woff');
  unicode-range: U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB;
}

/* ibm-plex-mono-latin-ext-400-normal */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(/assets/ibm-plex-mono-latin-ext-400-normal-BmRBH3aV.woff2) format('woff2'), url(/assets/ibm-plex-mono-latin-ext-400-normal-D3D2R8hC.woff) format('woff');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

/* ibm-plex-mono-latin-400-normal */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(/assets/ibm-plex-mono-latin-400-normal-DMJ8VG8y.woff2) format('woff2'), url(/assets/ibm-plex-mono-latin-400-normal-CvHOgSBP.woff) format('woff');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}/* ibm-plex-mono-cyrillic-ext-500-normal */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url(/assets/ibm-plex-mono-cyrillic-ext-500-normal-BqneJy0T.woff2) format('woff2'), url(/assets/ibm-plex-mono-cyrillic-ext-500-normal-BIfNGwUT.woff) format('woff');
  unicode-range: U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;
}

/* ibm-plex-mono-cyrillic-500-normal */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url(/assets/ibm-plex-mono-cyrillic-500-normal-Bq9vWWag.woff2) format('woff2'), url(/assets/ibm-plex-mono-cyrillic-500-normal-Ael50iVv.woff) format('woff');
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}

/* ibm-plex-mono-vietnamese-500-normal */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url(/assets/ibm-plex-mono-vietnamese-500-normal-DZ4AoWbu.woff2) format('woff2'), url(/assets/ibm-plex-mono-vietnamese-500-normal-C8zxqsMH.woff) format('woff');
  unicode-range: U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB;
}

/* ibm-plex-mono-latin-ext-500-normal */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url(/assets/ibm-plex-mono-latin-ext-500-normal-CAhNIIs5.woff2) format('woff2'), url(/assets/ibm-plex-mono-latin-ext-500-normal-CZ70TYgx.woff) format('woff');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

/* ibm-plex-mono-latin-500-normal */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url(/assets/ibm-plex-mono-latin-500-normal-DSY6xOcd.woff2) format('woff2'), url(/assets/ibm-plex-mono-latin-500-normal-CB9ihrfo.woff) format('woff');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}/* ==========================================================================
   FLOCKBASE GLOBAL STYLES
   ========================================================================== */

/* ==========================================================================
   BASE STYLES & RESET
   ========================================================================== */
:root {
  --font-sans: "IBM Plex Sans", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  --font-mono: "IBM Plex Mono", "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-family: var(--font-sans);
  line-height: 1.5;
  font-weight: 400;

  color-scheme: light dark;
  color: rgba(255, 255, 255, 0.87);
  background-color: #242424;

  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;

  /* Brand colors - single source of truth */
  --brand-turquoise: #00bcd4; /* Keep gradient start color */
  --brand-turquoise-hover: #00acc1; /* Keep gradient middle color */
  --brand-turquoise-active: #0097a7; /* Keep gradient end color */
  --brand-text: #0097a7; /* Use darkest gradient color for text */
  --oc-primary: #00796b; /* Online Contributions portal primary teal */
}

html,
body,
#root {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  overscroll-behavior: none;
  /* Firefox - Apply to both html and body for better compatibility */
  scrollbar-width: thin;
  scrollbar-color: #888888 transparent;
}

body {
  margin: 0;
  padding: 0;
  min-width: 320px;
  min-height: 100vh;
  font-family: var(--font-sans);
  overflow: hidden;
  overscroll-behavior: none;
  /* Firefox - Additional body-specific rules */
  scrollbar-width: thin;
  scrollbar-color: #888888 transparent;
}

@media print {
  html,
  body,
  #root {
    height: auto !important;
    min-height: 0 !important;
    overflow: visible !important;
  }
}

code,
pre,
kbd,
samp {
  font-family: var(--font-mono);
}

/* WebKit styles for body */
html::-webkit-scrollbar,
body::-webkit-scrollbar {
  width: 8px !important;
  height: 8px !important;
}

html::-webkit-scrollbar-track,
body::-webkit-scrollbar-track {
  background: transparent !important;
}

html::-webkit-scrollbar-thumb,
body::-webkit-scrollbar-thumb {
  background-color: #888888 !important;
  border-radius: 8px !important;
  transition: background-color 250ms ease !important;
  border: none !important;
}

html::-webkit-scrollbar-thumb:hover,
body::-webkit-scrollbar-thumb:hover {
  background-color: #00acfc !important;
}

/* ==========================================================================
   GLOBAL TYPOGRAPHY
   ========================================================================== */
h1 {
  font-size: 3.2em;
  line-height: 1.1;
}

a {
  font-weight: 500;
  color: var(--brand-text);
  text-decoration: inherit;
}

a:hover {
  color: var(--brand-text);
  opacity: 0.8;
}

/* ==========================================================================
   CUSTOM SCROLLBAR STYLES - Based on PRD Specifications
   ========================================================================== */

/* Global Utility Class */
.custom-scrollbar {
  /* Firefox */
  scrollbar-width: thin;
  scrollbar-color: #888888 transparent;
}

.custom-scrollbar::-webkit-scrollbar {
  width: 8px !important;
  height: 8px !important;
}

.custom-scrollbar::-webkit-scrollbar-track {
  background: transparent !important;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
  background-color: #888888 !important;
  border-radius: 8px !important;
  transition: background-color 250ms ease !important;
  border: none !important;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
  background-color: #00acfc !important;
}

/* Payroll calculator table cell utilities */
.payroll-cell {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  padding: 0 8px;
  height: 32px;
  display: flex;
  align-items: center;
}

/* Page Description Utility Class */
.page-description {
  color: rgba(0, 0, 0, 0.45) !important; /* Ant Design secondary text color */
  margin-bottom: 0 !important;
}

/* Groups List Card */
.groups-list-card {
  border-radius: 8px;
  border: 1px solid #91d1c4;
  overflow: hidden;
}

.groups-list-card-selected {
  border-color: #00796b;
  box-shadow: 0 0 0 2px rgba(0, 121, 107, 0.18);
}

.groups-list-card .ant-card-body {
  padding: 0;
}

.groups-list-card .ant-card-body > .ant-flex:first-child {
  background: linear-gradient(to right, #caebeb, #f0fafa);
  padding: 5px 16px;
}

.groups-list-card .ant-card-body > .ant-flex:first-child .ant-typography {
  color: #262626;
  font-size: 15px;
}

.groups-list-card .ant-card-body > .ant-flex:first-child .ant-btn-link {
  padding: 0;
}

.groups-list-card .ant-card-body > .ant-flex:last-child {
  padding: 16px 20px;
  background: #f0fafa;
}

.groups-list-card .ant-card-body > .ant-flex:last-child > .ant-flex:first-child > .ant-flex:first-child > .ant-typography:nth-child(1) {
  font-size: 28px;
  font-weight: 700;
  color: #00796b;
  line-height: 1;
}

.groups-list-card .ant-card-body > .ant-flex:last-child > .ant-flex:first-child > .ant-flex:first-child > .ant-typography:nth-child(2) {
  font-size: 28px;
  font-weight: 600;
  color: #00796b;
  line-height: 1;
}

.groups-list-card .ant-card-body > .ant-flex:last-child > .ant-flex:first-child > .ant-typography:last-child {
  color: #8c8c8c;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.groups-list-card .ant-card-body > .ant-flex:last-child > .anticon {
  font-size: 28px;
  color: #91d1c4;
}

.groups-list-details {
  animation: groups-list-details-enter 0.24s ease-out both;
}

.groups-list-details-sticky {
  position: sticky;
  top: 24px;
}

@keyframes groups-list-details-enter {
  from {
    opacity: 0;
    transform: translateX(16px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .groups-list-details {
    animation: none;
    transition: none;
  }
}

@media (max-width: 1199px) {
  .groups-list-details-sticky {
    position: static;
  }
}

/* ==========================================================================
   LAYOUT COMPONENTS - AuthLayout.jsx
   ========================================================================== */

/* Main Layout Container */
.auth-layout {
  height: 100vh;
  min-height: 100vh;
  max-height: 100vh;
  overflow: hidden;
  --sidebar-header-height: 64px;
  --sidebar-profile-height: 132px;
  --sidebar-footer-height: 32px;
  --sidebar-menu-height: calc(100vh - var(--sidebar-header-height) - var(--sidebar-profile-height) - var(--sidebar-footer-height));
}

/* Sidebar Container */
.auth-layout__sidebar {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  max-height: 100vh;
  width: 240px;
  min-width: 240px;
  max-width: 240px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafb 100%);
  border-right: 1px solid #e8f4f8;
  overflow: hidden; /* keep scrolling inside the nav region, not the whole sidebar */
  display: flex;
  flex-direction: column;
  align-items: stretch;
  z-index: 100;
  box-shadow: 2px 0 8px rgba(0, 188, 212, 0.08);
  padding-bottom: 0;
}

.auth-layout__sidebar .ant-layout-sider-children {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
}

/* Sidebar Header */
.auth-layout__sidebar-header {
  height: 64px;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  border-bottom: 1px solid #e8f4f8;
  background: linear-gradient(135deg, #00bcd4 0%, #00acc1 100%);
}

.auth-layout__sidebar-header .auth-layout__org-name {
  color: white;
  font-weight: 600;
  font-size: 18px;
  display: block;
}

/* Organization Profile Section */
.auth-layout__org-profile {
  padding: 16px 16px;
  border-bottom: 1px solid #e8f4f8;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(0, 188, 212, 0.05) 0%, rgba(0, 172, 193, 0.08) 100%);
}

.auth-layout__org-avatar {
  background: linear-gradient(135deg, #00bcd4 0%, #00acc1 100%);
  margin-bottom: 12px;
  flex-shrink: 0;
  border: 3px solid rgba(0, 188, 212, 0.2);
}

.auth-layout__org-info {
  width: 100%;
  text-align: center;
}

.auth-layout__org-name {
  color: #2c3e50;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: bold;
  margin: 0 0 4px 0;
  line-height: 1.2;
  text-align: center;
}

.auth-layout__org-role {
  color: #00acc1;
  font-family: var(--font-sans);
  font-size: 14px;
  margin: 0;
  line-height: 1.2;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Sidebar Menu Container - Handles scrolling */
.auth-layout__menu-container {
  flex: 1 1 auto;
  width: 100%;
  height: var(--sidebar-menu-height);
  max-height: var(--sidebar-menu-height);
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafb 100%);
  scrollbar-gutter: auto;
  /* Firefox */
  scrollbar-width: thin;
  scrollbar-color: #888888 transparent;
}

/* Sidebar Footer - shows the deployed build/commit */
.auth-layout__sidebar-footer {
  position: static;
  left: auto;
  right: auto;
  bottom: auto;
  width: 100%;
  flex-shrink: 0;
  padding: 6px 16px;
  border-top: 1px solid #e8f4f8;
  text-align: center;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafb 100%);
  box-sizing: border-box;
}

.auth-layout__build-info {
  font-size: 11px;
  color: #99a7ae;
}

.auth-layout__menu-container::-webkit-scrollbar {
  width: 8px !important;
  height: 8px !important;
}

.auth-layout__menu-container::-webkit-scrollbar-track {
  background: transparent !important;
}

.auth-layout__menu-container::-webkit-scrollbar-thumb {
  background-color: #888888 !important;
  border-radius: 8px !important;
  transition: background-color 250ms ease !important;
  border: none !important;
}

.auth-layout__menu-container::-webkit-scrollbar-thumb:hover {
  background-color: #00acfc !important;
}

/* Sidebar Menu */
.auth-layout__menu {
  border: none;
  height: auto;
  min-height: 0;
  overflow-y: visible;
  background: #ffffff;
}

/* Custom Menu Styles */
.custom-menu .ant-menu-item-selected {
  background-color: transparent !important;
  color: var(--brand-text) !important;
}

.custom-menu .ant-menu-item-selected svg {
  color: var(--brand-text) !important;
}

.custom-menu .ant-menu-item:hover {
  background-color: #f5f5f5 !important;
}

/* Menu item hover - text and icon color change */
.custom-menu .ant-menu-item:hover .ant-menu-title-content {
  color: var(--brand-text) !important;
}

.custom-menu .ant-menu-item:hover svg {
  color: var(--brand-text) !important;
}

.custom-menu .ant-menu-item {
  border-radius: 0 !important;
  margin: 2px 0 !important;
  padding: 8px 16px !important;
  height: auto !important;
}

/* Icon sizing controls - unified for all react-icons */
.custom-menu .ant-menu-item svg {
  font-size: 18px !important;
  width: 18px !important;
  height: 18px !important;
  margin-right: 8px !important;
  color: rgba(49, 58, 70, 0.7) !important;
  transition: color 0.2s ease !important;
  vertical-align: middle !important;
}

/* React-icons hover states */
.custom-menu .ant-menu-item:hover svg {
  color: var(--brand-text) !important;
}

.custom-menu .ant-menu-item-selected svg {
  color: var(--brand-text) !important;
}

/* Dashboard icon (top-level items) specific sizing */
.custom-menu > .ant-menu-item svg {
  font-size: 18px !important;
}

/* Custom styling for menu text content */
.custom-menu .ant-menu-title-content {
  font-size: 14px !important;
  font-weight: 500 !important;
  line-height: 1.4 !important;
}

/* Styling for group titles (CHURCH MANAGEMENT, ACCOUNTING, etc.) */
.custom-menu .ant-menu-item-group-title {
  font-size: 12px !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  color: #8c8c8c !important;
  padding: 16px 16px 8px 16px !important;
  line-height: 1.2 !important;
  margin-top: 8px !important;
  margin-bottom: 4px !important;
  cursor: default !important;
}

/* Main menu items (Dashboard, Membership, etc.) */
.custom-menu .ant-menu-item .ant-menu-title-content {
  font-size: 15px !important;
  font-weight: 400 !important;
  color: rgba(49, 58, 70, 0.8) !important;
  font-family: var(--font-sans) !important;
}

/* Additional menu item spacing */
.custom-menu .ant-menu-item {
  padding: 12px 20px !important;
  margin: 2px 0 !important;
}

/* Group children container spacing */
.custom-menu .ant-menu-item-group-list {
  margin-bottom: 8px !important;
}

/* Selected item text styling */
.custom-menu .ant-menu-item-selected .ant-menu-title-content {
  color: var(--brand-text) !important;
  font-weight: 500 !important;
}

/* Selected item icon styling */
.custom-menu .ant-menu-item-selected svg {
  color: var(--brand-text) !important;
}

/* Submenu styling */
.custom-menu .ant-menu-submenu {
  margin: 2px 0 !important;
}

.custom-menu .ant-menu-submenu-title {
  border-radius: 0 !important;
  padding: 12px 20px !important;
  height: auto !important;
  margin: 2px 0 !important;
}

/* Make submenu title styling match regular menu items */
.custom-menu .ant-menu-submenu-title .ant-menu-title-content {
  font-size: 15px !important;
  font-weight: 400 !important;
  color: rgba(49, 58, 70, 0.8) !important;
  font-family: var(--font-sans) !important;
}

/* Make submenu title icon match regular menu items */
.custom-menu .ant-menu-submenu-title svg {
  font-size: 18px !important;
  width: 18px !important;
  height: 18px !important;
  margin-right: 8px !important;
  color: rgba(49, 58, 70, 0.7) !important;
  transition: color 0.2s ease !important;
  vertical-align: middle !important;
}

.custom-menu .ant-menu-submenu-title:hover {
  background-color: #f5f5f5 !important;
}

.custom-menu .ant-menu-submenu-title:hover .ant-menu-title-content {
  color: var(--brand-text) !important;
}

.custom-menu .ant-menu-submenu-title:hover svg {
  color: var(--brand-text) !important;
}

.custom-menu .ant-menu-submenu-selected .ant-menu-submenu-title {
  background-color: transparent !important;
  color: var(--brand-text) !important;
}

.custom-menu .ant-menu-submenu-selected .ant-menu-submenu-title svg {
  color: var(--brand-text) !important;
}

.custom-menu .ant-menu-submenu-selected .ant-menu-submenu-title .ant-menu-title-content {
  color: var(--brand-text) !important;
  font-weight: 500 !important;
}

/* Submenu items (Households, Members, etc.) */
.custom-menu .ant-menu-submenu .ant-menu-item {
  padding: 8px 16px 8px 48px !important;
  margin: 1px 0 !important;
}

.custom-menu .ant-menu-submenu .ant-menu-item .ant-menu-title-content {
  font-size: 14px !important;
  font-weight: 400 !important;
  color: rgba(49, 58, 70, 0.7) !important;
}

.custom-menu .ant-menu-submenu .ant-menu-item:hover {
  background-color: #f5f5f5 !important;
}

.custom-menu .ant-menu-submenu .ant-menu-item:hover .ant-menu-title-content {
  color: var(--brand-text) !important;
}

.custom-menu .ant-menu-submenu .ant-menu-item-selected {
  background-color: transparent !important;
}

.custom-menu .ant-menu-submenu .ant-menu-item-selected .ant-menu-title-content {
  color: var(--brand-text) !important;
  font-weight: 500 !important;
}

/* Main Content Area */
.auth-layout__main {
  margin-left: 240px;
  height: 100dvh;
  max-height: 100dvh;
  overflow-y: auto;
  overflow-x: hidden;
  /* Firefox */
  scrollbar-width: thin;
  scrollbar-color: #888888 transparent;
}

.auth-layout__main::-webkit-scrollbar {
  width: 8px !important;
  height: 8px !important;
}

.auth-layout__main::-webkit-scrollbar-track {
  background: transparent !important;
}

.auth-layout__main::-webkit-scrollbar-thumb {
  background-color: #888888 !important;
  border-radius: 8px !important;
  transition: background-color 250ms ease !important;
  border: none !important;
}

.auth-layout__main::-webkit-scrollbar-thumb:hover {
  background-color: #00acfc !important;
}

/* Header */
.auth-layout__header {
  background: linear-gradient(135deg, #00bcd4 0%, #00acc1 50%, #0097a7 100%);
  padding: 0 24px;
  height: 63px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  line-height: 1;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Header Left Side */
.auth-layout__header-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.auth-layout__header-left > div {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.auth-layout__header-title {
  font-size: 24px;
  font-weight: bold;
  color: #262626;
  line-height: 1.1;
  margin: 0;
}

.auth-layout__header-subtitle {
  font-size: 14px;
  color: #8c8c8c;
  line-height: 1.1;
  margin: 4px 0 0 0;
}

/* Header Right Side */
.auth-layout__header-actions {
  display: flex;
  align-items: center;
  gap: 24px;
}

/* User Profile Section */
.auth-layout__user-profile {
  cursor: pointer;
}

.auth-layout__user-avatar {
  background-color: rgba(255, 255, 255, 0.2);
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.auth-layout__user-name {
  color: white;
  font-weight: 500;
}

.auth-layout__user-dropdown-icon {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.8);
}

/* Content Area */
.auth-layout__content {
  min-height: calc(100vh - 64px);
  background-color: #f5f5f5;
  /* Firefox */
  scrollbar-width: thin;
  scrollbar-color: #888888 transparent;
}

.auth-layout__content::-webkit-scrollbar {
  width: 8px !important;
  height: 8px !important;
}

.auth-layout__content::-webkit-scrollbar-track {
  background: transparent !important;
}

.auth-layout__content::-webkit-scrollbar-thumb {
  background-color: #888888 !important;
  border-radius: 8px !important;
  transition: background-color 250ms ease !important;
  border: none !important;
}

.auth-layout__content::-webkit-scrollbar-thumb:hover {
  background-color: #00acfc !important;
}

/* Hide floating menu button on desktop */
.auth-layout__floating-menu-btn {
  display: none;
}

/* ==========================================================================
   PAGE CONTAINER - Global Page Wrapper
   ========================================================================== */

/* 
 * Universal page container for consistent padding across all main pages.
 * Replaces individual page container styles (like .dashboard, .households, etc.)
 * to centralize layout consistency.
 */
.page-container {
  padding: 24px; /* 24px on all sides for consistent spacing */
  background-color: #f5f5f5;
  min-height: calc(100vh - 64px);
}

/* ==========================================================================
   STAT CARDS - Gradient stat/metric card components
   Usage: add ONE class to the Card, zero inner classes needed.
     <Card className="fb-stat-card fb-stat-card--primary" size="small" styles={{ body: { padding: 0 } }}>
       <Flex>Title</Flex>
       <Flex justify="space-between" align="center" style={{ padding: 16 }}>
         <Text style={{ fontSize: 36, fontWeight: 600 }}>{value}</Text>
         <SomeIcon style={{ fontSize: 32 }} />
       </Flex>
     </Card>
   Variants: primary | secondary | success | warning | error
   ========================================================================== */

.oc-section-title {
  color: var(--oc-primary) !important;
  font-size: 14px !important;
  letter-spacing: 0.5px !important;
}

/* Card outer — keep default ant-card border, just ensure overflow hidden */
.fb-stat-card.ant-card {
  overflow: hidden !important;
}

/* First direct child of card body => header strip with gradient + dividing border */
.fb-stat-card .ant-card-body > *:first-child {
  background: var(--fb-stat-gradient) !important;
  padding: 8px 16px !important;
  border-bottom: 1px solid var(--fb-stat-border-alpha) !important;
}

/* Remaining direct children => solid background */
.fb-stat-card .ant-card-body > *:not(:first-child) {
  background: var(--fb-stat-bg) !important;
}

/* Count text — first .ant-typography in the body section */
/* No !important — allows dynamic inline color overrides (e.g. conditional progress colors) */
.fb-stat-card .ant-card-body > *:not(:first-child) > .ant-typography {
  color: var(--fb-stat-count);
}

/* Icons */
.fb-stat-card .ant-card-body .anticon {
  color: var(--fb-stat-border) !important;
}

/* Primary — teal (brand) */
.fb-stat-card-primary {
  --fb-stat-border: #91d1c4;
  --fb-stat-border-alpha: rgba(145, 209, 196, 0.25);
  --fb-stat-gradient: linear-gradient(to right, #caebeb, #f0fafa);
  --fb-stat-bg: #f0fafa;
  --fb-stat-count: #00796b;
}

/* Secondary — slate blue (neutral) */
.fb-stat-card-secondary {
  --fb-stat-border: #a8bdc4;
  --fb-stat-border-alpha: rgba(168, 189, 196, 0.25);
  --fb-stat-gradient: linear-gradient(to right, #d4e2eb, #f0f6fa);
  --fb-stat-bg: #f0f6fa;
  --fb-stat-count: #5a7a8f;
}

/* Success — green */
.fb-stat-card-success {
  --fb-stat-border: #95de64;
  --fb-stat-border-alpha: rgba(149, 222, 100, 0.25);
  --fb-stat-gradient: linear-gradient(to right, #d9f7be, #f6ffed);
  --fb-stat-bg: #f6ffed;
  --fb-stat-count: #237804;
}

/* Warning — amber */
.fb-stat-card-warning {
  --fb-stat-border: #ffd666;
  --fb-stat-border-alpha: rgba(255, 214, 102, 0.25);
  --fb-stat-gradient: linear-gradient(to right, #ffe58f, #fffbe6);
  --fb-stat-bg: #fffbe6;
  --fb-stat-count: #ad6800;
}

/* Error — red */
.fb-stat-card-error {
  --fb-stat-border: #ffa39e;
  --fb-stat-border-alpha: rgba(255, 163, 158, 0.25);
  --fb-stat-gradient: linear-gradient(to right, #ffccc7, #fff1f0);
  --fb-stat-bg: #fff1f0;
  --fb-stat-count: #a8071a;
}

/* Tertiary — purple */
.fb-stat-card-tertiary {
  --fb-stat-border: #b37feb;
  --fb-stat-border-alpha: rgba(179, 127, 235, 0.25);
  --fb-stat-gradient: linear-gradient(to right, #efdbff, #f9f0ff);
  --fb-stat-bg: #f9f0ff;
  --fb-stat-count: #531dab;
}

/* Quaternary — cyan */
.fb-stat-card-quaternary {
  --fb-stat-border: #5cdbd3;
  --fb-stat-border-alpha: rgba(92, 219, 211, 0.25);
  --fb-stat-gradient: linear-gradient(to right, #b5f5ec, #e6fffb);
  --fb-stat-bg: #e6fffb;
  --fb-stat-count: #006d75;
}

/* Member Filter Collapse */
.filter-card-member .ant-collapse {
  border: none !important;
}
.filter-card-member .ant-collapse-body {
  background-color: #f9fcfc !important;
}
.filter-card-member .ant-collapse-header {
  background: linear-gradient(to right, #caebeb, #f0fafa) !important;
  border-bottom: 1px solid rgba(145, 209, 196, 0.15) !important;
  border-radius: 8px 8px 0 0 !important;
}
.filter-card-member .ant-collapse-item {
  border: none !important;
  border-radius: 8px !important;
  overflow: hidden !important;
  margin-bottom: 0 !important;
}

/* Household Filter Collapse */
.filter-card-household .ant-collapse {
  border: none !important;
}
.filter-card-household .ant-collapse-body {
  background-color: #f9fdff !important;
}
.filter-card-household .ant-collapse-header {
  background: linear-gradient(to right, #dae7f1, #f5f8fb) !important;
  border-bottom: 1px solid rgba(168, 189, 196, 0.15) !important;
  border-radius: 8px 8px 0 0 !important;
}
.filter-card-household .ant-collapse-item {
  border: none !important;
  border-radius: 8px !important;
  overflow: hidden !important;
  margin-bottom: 0 !important;
}

/* Contribution Filter Collapse */
.filter-card-contribution .ant-collapse {
  border: none !important;
}
.filter-card-contribution .ant-collapse-body {
  background-color: #f9fffb !important;
}
.filter-card-contribution .ant-collapse-header {
  background: linear-gradient(to right, #bef7c9, #edfff1) !important;
  border-bottom: 1px solid rgba(149, 222, 100, 0.15) !important;
  border-radius: 8px 8px 0 0 !important;
}
.filter-card-contribution .ant-collapse-item {
  border: none !important;
  border-radius: 8px !important;
  overflow: hidden !important;
  margin-bottom: 0 !important;
}

/* Collapse header title styling */
.filter-card-member .ant-collapse-header-text,
.filter-card-household .ant-collapse-header-text,
.filter-card-contribution .ant-collapse-header-text {
  color: #2c3e50 !important;
  font-weight: 600 !important;
}

/* ==========================================================================
   THEME SYSTEM - Contextual Color Schemes
   Apply ONE theme class to parent container, all children inherit styling
   
   Available themes: theme-teal, theme-blue, theme-green, theme-tan
   ========================================================================== */

/* ==========================================================================
   TEAL THEME (Default Brand Colors)
   ========================================================================== */
.theme-teal .settings-card-nav {
  background-color: #f8fafa !important;
  border-left: 3px solid #91d1c4 !important;
}

.theme-teal .settings-card-content {
  background-color: #ffffff !important;
  border-left: 3px solid #91d1c4 !important;
}

.theme-teal .settings-card-content .ant-card-head {
  background: linear-gradient(to right, #caebeb, transparent) !important;
  border-bottom: 2px solid #91d1c4 !important;
}

.theme-teal .settings-card-content .ant-card-body {
  background-color: #f8fcfc !important;
  padding-top: 12px !important;
}

.theme-teal .settings-card-content .ant-table-tbody > tr:hover > td {
  background: rgba(0, 188, 212, 0.06) !important;
}

/* .theme-teal .modal-card-preview,
.theme-teal .modal-card-tab {
  border: 1px solid #91d1c4 !important;
} */

.theme-teal .modal-card-preview .ant-card-head {
  background: linear-gradient(to right, #caebeb, #f5fdfd) !important;
  border-bottom: 2px solid #91d1c4 !important;
}

.theme-teal .modal-card-preview .ant-card-head-title {
  color: #1a8a8a !important;
}

.theme-teal .modal-card-preview .ant-card-body {
  background: #f5fdfdff !important;
}

.theme-teal .modal-card-tab .ant-card-head {
  background: linear-gradient(to right, rgb(221, 241, 245), #f5fcfdff) !important;
  border-bottom: 2px solid rgba(145, 205, 209, 0.4) !important;
}

.theme-teal .modal-card-tab .ant-card-head-title {
  color: #0f4c5c !important;
}

.theme-teal .modal-card-tab .ant-card-body {
  background: #f5fcfdff !important;
}

/* ==========================================================================
   BLUE THEME
   ========================================================================== */
.theme-blue .settings-card-nav {
  background-color: #f0f4f8 !important;
  border-left: 3px solid #7ba7d4 !important;
}

.theme-blue .settings-card-content {
  background-color: #ffffff !important;
  border-left: 3px solid #7ba7d4 !important;
}

.theme-blue .settings-card-content .ant-card-head {
  background: linear-gradient(to right, #c1d9f0, transparent) !important;
  border-bottom: 2px solid #7ba7d4 !important;
}

.theme-blue .settings-card-content .ant-card-body {
  background-color: #f7f9fc !important;
  padding-top: 12px !important;
}

.theme-blue .settings-card-content .ant-table-tbody > tr:hover > td {
  background: rgba(66, 133, 244, 0.06) !important;
}

.theme-blue .modal-card-preview,
.theme-blue .modal-card-tab {
  border: 1px solid #7ba7d4 !important;
}

.theme-blue .modal-card-preview .ant-card-head {
  background: linear-gradient(to right, #c1d9f0, #eef4fb) !important;
  border-bottom: 2px solid #7ba7d4 !important;
}

.theme-blue .modal-card-preview .ant-card-head-title {
  color: #1a5a8a !important;
}

.theme-blue .modal-card-preview .ant-card-body {
  background: #f7f9fcff !important;
}

.theme-blue .modal-card-tab .ant-card-head {
  background: linear-gradient(to right, #d0e2f5, #f2f7fc) !important;
  border-bottom: 2px solid #8fb5d9 !important;
}

.theme-blue .modal-card-tab .ant-card-head-title {
  color: #2a5f82 !important;
}

.theme-blue .modal-card-tab .ant-card-body {
  background: #f7f9fcff !important;
}

/* ==========================================================================
   GREEN THEME
   ========================================================================== */
.theme-green .settings-card-nav {
  background-color: #f0f8f4 !important;
  border-left: 3px solid #7bc89e !important;
}

.theme-green .settings-card-content {
  background-color: #ffffff !important;
  border-left: 3px solid #7bc89e !important;
}

.theme-green .settings-card-content .ant-card-head {
  background: linear-gradient(to right, #c1ead9, transparent) !important;
  border-bottom: 2px solid #7bc89e !important;
}

.theme-green .settings-card-content .ant-card-body {
  background-color: #f7fcf9 !important;
  padding-top: 12px !important;
}

.theme-green .settings-card-content .ant-table-tbody > tr:hover > td {
  background: rgba(52, 168, 83, 0.06) !important;
}

.theme-green .modal-card-preview,
.theme-green .modal-card-tab {
  border: 1px solid #7bc89e !important;
}

.theme-green .modal-card-preview .ant-card-head {
  background: linear-gradient(to right, #c1ead9, #eef9f3) !important;
  border-bottom: 2px solid #7bc89e !important;
}

.theme-green .modal-card-preview .ant-card-head-title {
  color: #1a6a4a !important;
}

.theme-green .modal-card-preview .ant-card-body {
  background: #f7fcf9ff !important;
}

.theme-green .modal-card-tab .ant-card-head {
  background: linear-gradient(to right, #d0f0e1, #f2faf6) !important;
  border-bottom: 2px solid #8fd1ae !important;
}

.theme-green .modal-card-tab .ant-card-head-title {
  color: #2a7052 !important;
}

.theme-green .modal-card-tab .ant-card-body {
  background: #f7fcf9ff !important;
}

/* ==========================================================================
   TAN THEME
   ========================================================================== */
.theme-tan .settings-card-nav {
  background-color: #faf8f4 !important;
  border-left: 3px solid #c9b591 !important;
}

.theme-tan .settings-card-content {
  background-color: #ffffff !important;
  border-left: 3px solid #c9b591 !important;
}

.theme-tan .settings-card-content .ant-card-head {
  background: linear-gradient(to right, #ebe5ca, transparent) !important;
  border-bottom: 2px solid #c9b591 !important;
}

.theme-tan .settings-card-content .ant-card-body {
  background-color: #fcfaf8 !important;
  padding-top: 12px !important;
}

.theme-tan .settings-card-content .ant-table-tbody > tr:hover > td {
  background: rgba(184, 143, 81, 0.06) !important;
}

.theme-tan .modal-card-preview,
.theme-tan .modal-card-tab {
  border: 1px solid #c9b591 !important;
}

.theme-tan .modal-card-preview .ant-card-head {
  background: linear-gradient(to right, #ebe5ca, #f9f5ed) !important;
  border-bottom: 2px solid #c9b591 !important;
}

.theme-tan .modal-card-preview .ant-card-head-title {
  color: #6a5a3a !important;
}

.theme-tan .modal-card-preview .ant-card-body {
  background: #fcfaf8ff !important;
}

.theme-tan .modal-card-tab .ant-card-head {
  background: linear-gradient(to right, #f0e9d5, #faf7f2) !important;
  border-bottom: 2px solid #d1c0a1 !important;
}

.theme-tan .modal-card-tab .ant-card-head-title {
  color: #6a5532 !important;
}

.theme-tan .modal-card-tab .ant-card-body {
  background: #fcfaf8ff !important;
}

/* ==========================================================================
   BASE CARD STYLES (Applied to all themes)
   ========================================================================== */
.settings-card-content .ant-table {
  background: transparent !important;
}

.settings-card-content .ant-table-thead > tr > th,
.settings-card-content .ant-table-tbody > tr > td {
  background: transparent !important;
}

.modal-card-preview,
.modal-card-tab {
  border-radius: 8px !important;
  margin-bottom: 16px !important;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.modal-card-preview .ant-card-head,
.modal-card-tab .ant-card-head {
  min-height: 40px !important;
  padding: 8px 16px !important;
}

.modal-card-preview .ant-card-head-title,
.modal-card-tab .ant-card-head-title {
  font-weight: 600 !important;
  font-size: 14px !important;
}

.modal-card-preview .ant-card-body,
.modal-card-tab .ant-card-body {
  padding: 16px !important;
}

/* Optional: Allow pages to override background if needed */
.page-container--no-bg {
  background-color: transparent;
}
/* Payee Modal Card Color Variants */
.card-colored-primary {
  background-color: #f0fafa !important;
}

.card-colored-primary .ant-card-head {
  background: linear-gradient(to right, #caebebff, transparent) !important;
  border-bottom: 1px solid #91d1c4ff !important;
}

.card-colored-employee {
  background-color: #f0fcffff !important;
}

.card-colored-employee .ant-card-head {
  background: linear-gradient(to right, #cdebf3ff, transparent) !important;
  border-bottom: 1px solid #91b3bdff !important;
}

/* Payee Modal Accordion Panels */
.payee-panel-accounts .ant-collapse-content {
  background-color: #fdfcfaff !important;
}
.payee-panel-accounts .ant-collapse-header {
  background: linear-gradient(to right, #f5efe5ff, #fdfcfaff) !important;
  border-bottom: 1px solid #c4b89a !important;
}

/* Enhanced Link Styling */
.entity-link {
  color: var(--brand-text) !important;
  font-weight: 500 !important;
  transition: color 0.2s ease !important;
}

.entity-link:hover {
  color: #00acc1 !important;
  text-decoration: underline !important;
}

/* Plus Only Ribbon - add vertical padding for better spacing */
.plus-only-ribbon {
  padding-top: 4px !important;
  padding-bottom: 4px !important;
}

/* ==========================================================================
   ERROR BOUNDARY COMPONENTS - ErrorBoundary.jsx
   ========================================================================== */

/* Error Boundary Container */
.error-boundary {
  padding: 20px;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Production Error Container */
.error-boundary__production {
  max-width: 400px;
  width: 100%;
}

/* Development Error Container */
.error-boundary__development {
  max-width: 600px;
  width: 100%;
}

/* Error Code Block */
.error-boundary__code {
  background: #f5f5f5;
  padding: 10px;
  border-radius: 4px;
  overflow: auto;
  font-size: 12px;
  margin-bottom: 10px;
}

/* Error Details */
.error-boundary__details {
  margin-top: 10px;
}

.error-boundary__summary {
  cursor: pointer;
  margin-bottom: 10px;
}

.error-boundary__stack {
  background: #f5f5f5;
  padding: 10px;
  border-radius: 4px;
  overflow: auto;
  font-size: 11px;
}

/* ==========================================================================
   ERROR TEST COMPONENT - ErrorTest.jsx
   ========================================================================== */

/* Error Test Container */
.error-test {
  padding: 20px;
  border: 1px dashed #ccc;
  margin: 20px 0;
}

.error-test__note {
  margin-top: 10px;
  font-size: 12px;
  color: #525252;
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */

@media (max-width: 768px) {
  /* Mobile backdrop for sidebar */
  .auth-layout__backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
  }

  /* Mobile sidebar styling */
  .auth-layout__sidebar--mobile {
    width: 200px !important;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    z-index: 1000;
    box-shadow: 2px 0 8px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateX(0);
  }

  /* Hidden sidebar on mobile */
  .auth-layout__sidebar--hidden {
    transform: translateX(-100%) !important;
  }

  /* Full width main content when sidebar is collapsed */
  .auth-layout__main--full-width {
    margin-left: 0 !important;
  }

  /* Regular mobile main content with sidebar */
  .auth-layout__main {
    margin-left: 0;
    transition: margin-left 0.3s ease;
  }

  /* Fixed floating menu button for mobile */
  .auth-layout__floating-menu-btn {
    display: flex !important;
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 1001;
    width: 56px;
    height: 56px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    align-items: center;
    justify-content: center;
    font-size: 20px;
    border: none;
    border-radius: 50%;
    opacity: 0.35;
    transition:
      transform 0.2s ease,
      box-shadow 0.2s ease,
      opacity 0.2s ease;
  }

  .auth-layout__floating-menu-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
    opacity: 1;
  }

  .auth-layout__floating-menu-btn:active {
    transform: scale(0.95);
  }

  /* Remove menu button from header since we have floating button */
  .auth-layout__menu-button {
    display: none;
  }

  .auth-layout__header-left {
    display: flex;
    align-items: center;
  }

  .auth-layout__header-left > div {
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  /* Dashboard components now use PageContainer for consistent padding */

  /* Header adjustments for mobile */
  .auth-layout__header {
    padding: 12px 16px;
  }

  .auth-layout__header-title {
    font-size: 20px;
  }

  .auth-layout__header-subtitle {
    font-size: 12px;
  }

  .auth-layout__header-actions {
    gap: 12px;
  }

  /* Mobile sidebar menu adjustments */
  .auth-layout__sidebar--mobile .auth-layout__menu .ant-menu-item {
    padding: 8px 16px !important;
    margin: 2px 0 !important;
    height: auto !important;
    display: flex;
    flex-direction: row;
    align-items: center;
    text-align: left;
  }

  .auth-layout__sidebar--mobile .auth-layout__menu .ant-menu-item svg {
    font-size: 16px !important;
    margin-right: 12px !important;
    margin-bottom: 0;
  }

  .auth-layout__sidebar--mobile .auth-layout__menu .ant-menu-item .ant-menu-title-content {
    font-size: 14px;
    line-height: 1.4;
    overflow: visible;
    text-overflow: initial;
    white-space: normal;
    max-width: none;
  }
}

/* ==========================================================================
   LOGIN PAGE COMPONENTS - Login.jsx
   ========================================================================== */

/* Shared auth page background image column — !important overrides Ant Design's height: auto on Col */
.auth-page-bg-image {
  height: 100vh !important;
}
/* 
@media (max-width: 991px) {
  .auth-page-bg-image {
    height: 35vh !important;
  }
} */

/* Login Page Main Container */
/* Title Section - Church Management Login */
.login-page .login-page-title.ant-typography {
  text-align: center !important;
  margin-bottom: 1vh !important;
  font-weight: normal !important;
  color: #333 !important;
  font-size: 18px !important;
  font-family: var(--font-sans) !important;
  font-weight: 600 !important;
}

/* Input Placeholder Text Styling */
.login-page .login-page-form .ant-input::placeholder {
  color: #495057 !important;
  font-size: 14px !important;
  font-family: inherit !important;
}

.login-page .login-page-form .ant-input-password input::placeholder {
  color: #495057 !important;
  font-size: 14px !important;
  font-family: inherit !important;
}

/* Remember Me Checkbox Styling */
.login-page .login-page-form .ant-checkbox {
  transform: scale(1.1) !important;
}

.login-page .login-page-form .ant-checkbox-wrapper {
  color: #595959 !important;
  font-size: 14px !important;
}

/* Sign In Button */
.login-page .login-page-signin-button.ant-btn {
  background-color: var(--brand-text) !important;
  border-color: var(--brand-text) !important;
  height: 48px !important;
  font-size: 16px !important;
  color: #ffffff !important;
  font-family: var(--font-sans) !important;
  font-weight: 500 !important;
  width: 100% !important;
}

.login-page .login-page-signin-button.ant-btn:hover,
.login-page .login-page-signin-button.ant-btn:focus {
  background-color: #00acc1 !important;
  border-color: #00acc1 !important;
}

.login-page-copyright-link {
  color: #98a6ad;
  text-decoration: none;
}

.login-page-copyright-link:hover {
  color: #40a9ff;
  text-decoration: underline;
}

/* ==========================================================================
   RESPONSIVE DESIGN - LOGIN PAGE
   ========================================================================== */

@media (max-width: 768px) {
  .login-page {
    flex-direction: column;
    min-height: 100vh;
    height: auto;
    width: 100vw;
    overflow-x: hidden;
  }

  .login-page-title {
    font-size: 16px;
    margin-bottom: 32px;
  }
}

@media (max-height: 600px) {
  .login-page-title {
    margin-bottom: 1vh;
    font-size: 18px;
  }
}

/* Auth page footer link (used in Recovery, RecoveryReset, UserRegistration) */
.recovery-page__footer-link {
  font-size: 13px;
  color: #313a46 !important;
  text-decoration: none;
  font-weight: 600 !important;
}

.recovery-page__footer-link:hover {
  color: #40a9ff;
  text-decoration: underline;
}

/* ==========================================================================
   THEME OVERRIDES (Light Mode)
   ========================================================================== */
@media (prefers-color-scheme: light) {
  :root {
    color: #213547;
    background-color: #ffffff;
  }

  a:hover {
    color: #747bff;
  }

  button {
    background-color: #f9f9f9;
  }
}

/* ==========================================================================
   DATA TABLE PAGE STYLES - GENERIC REUSABLE STYLES
   ========================================================================== */

/* Main Data Table Page Container */
.data-table-page {
  width: 100%;
  padding: 0;
}

.data-table-card {
  background: #fff;
  border-radius: 8px;
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.03),
    0 1px 6px -1px rgba(0, 0, 0, 0.02),
    0 2px 4px rgba(0, 0, 0, 0.02);
  border: 1px solid #f0f0f0;
}

/* ==========================================================================
   PAGE HEADER COMPONENT STYLES
   ========================================================================== */
.page-header {
  background: #fff;
  margin-bottom: 16px;
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
  border: 1px solid #f0f0f0;
  padding: 24px;
}

.page-header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.page-header-main {
  display: flex;
  align-items: center;
  gap: 16px;
}

.page-header-back {
  color: #8c8c8c;
  border: none;
  background: transparent;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-header-back:hover {
  color: #1890ff;
  background-color: #f0f8ff;
}

.page-header-text {
  margin: 0;
}

.page-header-title {
  margin: 0;
  font-size: 24px;
  font-weight: 600;
  color: #262626;
  line-height: 1.2;
}

.page-header-subtitle {
  margin: 4px 0 0 0;
  color: #8c8c8c;
  font-size: 14px;
  line-height: 1.4;
}

.page-header-extra {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ==========================================================================
   ENTITY ACTIONS COMPONENT STYLES - GENERIC REUSABLE STYLES
   ========================================================================== */
.entity-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 16px 0;
  border-bottom: 1px solid #f0f0f0;
  margin-bottom: 16px;
}

.entity-actions-left {
  display: flex;
  align-items: center;
}

.entity-actions-right {
  display: flex;
  align-items: center;
}

.selected-count {
  color: #1890ff;
  font-size: 14px;
  font-weight: 500;
  padding: 4px 8px;
  background-color: #e6f7ff;
  border-radius: 4px;
  border: 1px solid #91d5ff;
}

/* Financial Reports tabs */
.financial-reports-tabs .ant-tabs-nav-list {
  display: flex;
  width: 100%;
}

.financial-reports-tabs .ant-tabs-tab {
  flex: 1 1 0;
  justify-content: center;
  margin: 0 !important;
  padding-inline: 8px;
}

.financial-reports-tabs .ant-tabs-tab-btn {
  width: 100%;
  text-align: center;
}

.financial-reports-tab-label {
  font-weight: 600;
  letter-spacing: 0.01em;
}

.financial-reports-tabs .ant-tabs-tab-active .financial-reports-tab-label {
  font-weight: 700;
}

@media (max-width: 992px) {
  .financial-reports-tabs .ant-tabs-nav-list {
    width: max-content;
  }

  .financial-reports-tabs .ant-tabs-tab {
    flex: 0 0 auto;
  }
}

/* Action Button Styles */
.action-button {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.quick-add-button {
  background-color: #722ed1;
  border-color: #722ed1;
  color: white;
}

.quick-add-button:hover {
  background-color: #531dab;
  border-color: #531dab;
}

.new-button {
  background-color: #fff;
  border-color: #d9d9d9;
  color: #262626;
}

.new-button:hover {
  border-color: #4096ff;
  color: #4096ff;
}

.export-button {
  background-color: #fff;
  border-color: #d9d9d9;
  color: #262626;
}

.export-button:hover {
  border-color: #4096ff;
  color: #4096ff;
}

/* ==========================================================================
   HOUSEHOLDS TABLE COMPONENT STYLES
   ========================================================================== */
.data-table-container {
  width: 100%;
}

.data-table-header {
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.data-table-search {
  width: 300px;
  max-width: 100%;
}

.data-table-search .ant-input-prefix {
  color: #8c8c8c;
}

.data-table-search .ant-input:focus,
.data-table-search .ant-input-focused {
  border-color: #1890ff;
  box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.1);
}

/* Table Styles */
.data-table {
  background: #fff;
  border-radius: 8px;
}

/* Custom Pagination Styles */
.households-pagination-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  border-top: 1px solid #f0f0f0;
  margin-top: 16px;
}

.pagination-total-info {
  color: #595959;
  font-size: 14px;
}

.pagination-left {
  flex: 1;
}

.pagination-info {
  color: #595959;
  font-size: 14px;
  font-weight: 400;
}

.pagination-center {
  flex: 2;
  display: flex;
  justify-content: center;
}

.pagination-controls {
  display: flex;
  align-items: center;
  gap: 4px;
}

.pagination-ellipsis {
  padding: 0 8px;
  color: #d9d9d9;
  font-size: 14px;
  line-height: 26px;
}

.pagination-right {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  color: #595959;
  font-size: 14px;
}

/* Hide default pagination completely since we're using custom */
.data-table .ant-pagination {
  display: none;
}

/* Custom pagination button styles */
.pagination-btn {
  border-radius: 4px;
  border: 1px solid #d9d9d9;
  background: #ffffff;
  margin: 0 2px;
  height: 28px;
  min-width: 28px;
  padding: 0 8px;
  font-size: 14px;
  line-height: 26px;
  text-align: center;
  transition: all 0.2s;
}

.pagination-btn:hover:not(:disabled) {
  border-color: #40a9ff;
  color: #40a9ff;
}

.pagination-btn:disabled {
  background-color: #f5f5f5;
  border-color: #d9d9d9;
  color: rgba(0, 0, 0, 0.25);
  cursor: not-allowed;
}

.pagination-btn-active {
  background-color: #1890ff;
  border-color: #1890ff;
  color: #ffffff;
}

.pagination-btn-active:hover {
  background-color: #40a9ff;
  border-color: #40a9ff;
  color: #ffffff;
}

.pagination-size-select .ant-select-selector {
  border-radius: 4px;
  font-size: 14px;
}

/* Table Styles */
.data-table {
  background: #fff;
  border-radius: 8px;
}

/* Household Photo Styles */
.household-photo {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
  border: 2px solid #f0f0f0;
  transition: border-color 0.2s ease;
}

.household-photo:hover {
  border-color: #1890ff;
}

.household-photo-placeholder {
  width: 40px;
  height: 40px;
  min-width: 20px;
  min-height: 20px;
  border-radius: 50%;
  background-color: #f5f5f5;
  border: 2px solid #d9d9d9;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #8c8c8c;
  font-size: 21px;
  flex-shrink: 0;
  aspect-ratio: 1/1;
}

.household-photo-cell {
  text-align: left;
  padding: 8px 16px !important;
}

/* Household Photo Tooltip Styles */
.household-photo-tooltip .ant-tooltip-inner {
  background-color: rgba(0, 0, 0, 0.85);
  border-radius: 12px;
  padding: 16px;
  max-width: 440px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.household-photo-tooltip .ant-tooltip-arrow {
  border-right-color: rgba(0, 0, 0, 0.85) !important;
}

.household-photo-tooltip img {
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.data-table .ant-table-thead > tr > th {
  background-color: #fafafa;
  font-weight: 600;
  color: #262626;
  border-bottom: 1px solid #f0f0f0;
  padding: 16px;
}

.data-table .ant-table-tbody > tr > td {
  padding: 12px 16px;
  border-bottom: 1px solid #f5f5f5;
}

/* Alternating row striping - very subtle */
.data-table .ant-table-tbody > tr:nth-child(even) > td {
  background-color: #f1f1f1;
}

.data-table .ant-table-tbody > tr:nth-child(odd) > td {
  background-color: #ffffff;
}

.data-table .ant-table-tbody > tr:hover > td {
  background-color: #f5f8ff !important;
}

.data-table .ant-table-tbody > tr.ant-table-row-selected > td {
  background-color: #e6f7ff !important;
}

.data-table .ant-table-tbody > tr.ant-table-row-selected:hover > td {
  background-color: #bae7ff;
}

/* Invalid/future date row highlighting - subtle teal background to match brand */
/* Works with both regular and virtual tables */
.contribution-row-invalid-date > td,
.contribution-row-invalid-date td,
tr.contribution-row-invalid-date,
.ant-table-row.contribution-row-invalid-date {
  background-color: #e6f7f8 !important;
}

.contribution-row-invalid-date:hover > td,
.contribution-row-invalid-date:hover td {
  background-color: #d0f0f2 !important;
}

/* Household Link Styles */
.entity-link {
  color: #1890ff;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.2s ease;
}

.entity-link:hover {
  color: #40a9ff;
  text-decoration: underline;
}

/* Table Action Button */
.data-table .action-button {
  color: #8c8c8c;
  border: none;
  background: transparent;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.data-table .action-button:hover {
  color: #1890ff;
  background-color: #f0f8ff;
}

/* ==========================================================================
   QUICK ADD MODAL STYLES
   ========================================================================== */
.quick-add-modal .ant-modal-header {
  background-color: #fafafa;
  border-bottom: 1px solid #f0f0f0;
}

.quick-add-modal .ant-modal-title {
  font-size: 18px;
  font-weight: 600;
  color: #262626;
}

.quick-add-modal .ant-form-item-label > label {
  font-weight: 500;
  color: #262626;
}

.quick-add-modal .ant-input,
.quick-add-modal .ant-select-selector {
  border-radius: 6px;
}

.quick-add-modal .ant-input:focus,
.quick-add-modal .ant-input-focused,
.quick-add-modal .ant-select-focused .ant-select-selector {
  border-color: #722ed1;
  box-shadow: 0 0 0 2px rgba(114, 46, 209, 0.1);
}

/* ==========================================================================
   EXPORT MODAL STYLES
   ========================================================================== */
.export-modal .ant-modal-header {
  background-color: #fafafa;
  border-bottom: 1px solid #f0f0f0;
}

.export-modal .ant-modal-title {
  font-size: 18px;
  font-weight: 600;
  color: #262626;
}

.export-modal .ant-form-item-label > label {
  font-weight: 500;
  color: #262626;
}

.export-modal .ant-checkbox-wrapper {
  margin-bottom: 8px;
}

.export-modal .ant-select,
.export-modal .ant-input {
  border-radius: 6px;
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */

/* Tablet Styles */
@media (max-width: 768px) {
  .page-header {
    padding: 16px;
  }

  .page-header-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .page-header-main {
    width: 100%;
  }

  .page-header-extra {
    width: 100%;
    justify-content: flex-end;
  }

  .entity-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }

  .entity-actions-left,
  .entity-actions-right {
    justify-content: center;
  }

  .data-table-search {
    width: 100%;
  }

  .data-table-header {
    justify-content: center;
  }
}

/* Mobile Styles */
@media (max-width: 576px) {
  .data-table-page {
    padding: 0 8px;
  }

  .page-header {
    padding: 12px;
    margin-bottom: 12px;
  }

  .page-header-title {
    font-size: 20px;
  }

  .page-header-subtitle {
    font-size: 13px;
  }

  .entity-actions {
    padding: 12px 0;
  }

  .action-button {
    font-size: 13px;
    padding: 6px 12px;
  }

  .data-table .ant-table-thead > tr > th,
  .data-table .ant-table-tbody > tr > td {
    padding: 8px 12px;
  }

  .quick-add-modal,
  .export-modal {
    margin: 0;
    max-width: 100vw;
  }

  .quick-add-modal .ant-modal-content,
  .export-modal .ant-modal-content {
    margin: 0;
    border-radius: 0;
  }
}

/* ==========================================================================
   ACCESSIBILITY IMPROVEMENTS
   ========================================================================== */

/* Focus Indicators */
.entity-link:focus,
.action-button:focus {
  outline: 2px solid #1890ff;
  outline-offset: 2px;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
  .data-table .ant-table-tbody > tr:hover > td {
    background-color: #000;
    color: #fff;
  }

  .entity-link {
    text-decoration: underline;
  }

  .action-button {
    border-width: 2px;
  }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
  .action-button,
  .entity-link {
    transition: none;
  }

  .data-table .ant-table-tbody > tr > td {
    transition: none;
  }
}

/* ==========================================================================
   HOUSEHOLDS COMPONENT STYLES
   ========================================================================== */

.entity-actions-left .total-count {
  font-weight: bold;
  font-size: 16px;
  color: rgba(0, 0, 0, 0.85);
}

/* ==========================================================================
   TABLE STYLES
   ========================================================================== */
/* Tooltip Styles */
.entity-tooltip {
  text-align: center;
}

.entity-tooltip-image {
  max-width: 400px;
  max-height: 400px;
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 8px;
}

.entity-tooltip-name {
  margin-top: 8px;
  font-weight: bold;
  color: white;
}

/* ==========================================================================
   PAGINATION FOOTER
   ========================================================================== */
.households-pagination-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #f0f0f0;
}

.pagination-info {
  color: rgba(0, 0, 0, 0.65);
  font-size: 14px;
}

.pagination-controls {
  display: flex;
  align-items: center;
  gap: 4px;
}

.pagination-ellipsis {
  padding: 0 8px;
  color: rgba(0, 0, 0, 0.25);
}

.pagination-size-selector {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: rgba(0, 0, 0, 0.65);
}

.page-size-select {
  width: 70px;
}

/* ==========================================================================
   PRINT LABELS MODAL
   ========================================================================== */
.print-labels-modal .ant-modal-body {
  padding: 20px;
}

.print-labels-options {
  margin-bottom: 20px;
  padding: 15px;
  background: #f0f2f5;
  border-radius: 8px;
}

.print-labels-stats {
  margin-top: 10px;
}

.print-labels-stats .stat-item {
  font-size: 14px;
  color: #525252;
}

.print-labels-stats .stat-highlight {
  color: #1890ff;
  font-weight: 500;
}

/* Hidden Print Frame */
.print-frame-hidden {
  position: fixed;
  right: 0;
  bottom: 0;
  width: 0;
  height: 0;
  border: 0;
  visibility: hidden;
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */
@media (max-width: 768px) {
  .households-pagination-footer {
    flex-direction: column;
    gap: 12px;
    align-items: center;
  }

  .pagination-info,
  .pagination-controls,
  .pagination-size-selector {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .pagination-controls .ant-btn {
    min-width: 32px;
    padding: 0 7px;
  }
}

.text-start {
  text-align: left !important;
}
.text-end {
  text-align: right !important;
}
.text-center {
  text-align: center !important;
}
.text-right {
  text-align: right !important;
}
.text-left {
  text-align: left !important;
}
.justify-content-start {
  justify-content: flex-start !important;
}
.justify-content-end {
  justify-content: flex-end !important;
}
.justify-content-center {
  justify-content: center !important;
}
.text-muted {
  color: #8c8c8c !important;
}
.w-100 {
  width: 100%;
}
.m-0 {
  margin: 0 !important;
}
.m-1 {
  margin: 0.25rem !important;
}
.m-2 {
  margin: 0.5rem !important;
}
.m-3 {
  margin: 1rem !important;
}
.m-4 {
  margin: 1.5rem !important;
}
.m-5 {
  margin: 3rem !important;
}
.m-6 {
  margin: 4.5rem !important;
}
.m-7 {
  margin: 6rem !important;
}
.m-auto {
  margin: auto !important;
}
.mx-0 {
  margin-right: 0 !important;
  margin-left: 0 !important;
}
.mx-1 {
  margin-right: 0.25rem !important;
  margin-left: 0.25rem !important;
}
.mx-2 {
  margin-right: 0.5rem !important;
  margin-left: 0.5rem !important;
}
.mx-3 {
  margin-right: 1rem !important;
  margin-left: 1rem !important;
}
.mx-4 {
  margin-right: 1.5rem !important;
  margin-left: 1.5rem !important;
}
.mx-5 {
  margin-right: 3rem !important;
  margin-left: 3rem !important;
}
.mx-6 {
  margin-right: 4.5rem !important;
  margin-left: 4.5rem !important;
}
.mx-7 {
  margin-right: 6rem !important;
  margin-left: 6rem !important;
}
.mx-auto {
  margin-right: auto !important;
  margin-left: auto !important;
}
.mr-0 {
  margin-right: 0 !important;
}
.mr-1 {
  margin-right: 0.25rem !important;
}
.mr-2 {
  margin-right: 0.5rem !important;
}
.mr-3 {
  margin-right: 1rem !important;
}
.mr-4 {
  margin-right: 1.5rem !important;
}
.mr-5 {
  margin-right: 3rem !important;
}
.mr-6 {
  margin-right: 4.5rem !important;
}
.mr-7 {
  margin-right: 6rem !important;
}
.mr-auto {
  margin-right: auto !important;
}
.ml-0 {
  margin-left: 0 !important;
}
.ml-1 {
  margin-left: 0.25rem !important;
}
.ml-2 {
  margin-left: 0.5rem !important;
}
.ml-3 {
  margin-left: 1rem !important;
}
.ml-4 {
  margin-left: 1.5rem !important;
}
.ml-5 {
  margin-left: 3rem !important;
}
.ml-6 {
  margin-left: 4.5rem !important;
}
.ml-7 {
  margin-left: 6rem !important;
}
.ml-auto {
  margin-left: auto !important;
}
.my-0 {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}
.my-1 {
  margin-top: 0.25rem !important;
  margin-bottom: 0.25rem !important;
}
.my-2 {
  margin-top: 0.5rem !important;
  margin-bottom: 0.5rem !important;
}
.my-3 {
  margin-top: 1rem !important;
  margin-bottom: 1rem !important;
}
.my-4 {
  margin-top: 1.5rem !important;
  margin-bottom: 1.5rem !important;
}
.my-5 {
  margin-top: 3rem !important;
  margin-bottom: 3rem !important;
}
.my-6 {
  margin-top: 4.5rem !important;
  margin-bottom: 4.5rem !important;
}
.my-7 {
  margin-top: 6rem !important;
  margin-bottom: 6rem !important;
}
.my-auto {
  margin-top: auto !important;
  margin-bottom: auto !important;
}
.mt-0 {
  margin-top: 0 !important;
}
.mt-1 {
  margin-top: 0.25rem !important;
}
.mt-2 {
  margin-top: 0.5rem !important;
}
.mt-3 {
  margin-top: 1rem !important;
}
.mt-4 {
  margin-top: 1.5rem !important;
}
.mt-5 {
  margin-top: 3rem !important;
}
.mt-6 {
  margin-top: 4.5rem !important;
}
.mt-7 {
  margin-top: 6rem !important;
}
.mt-auto {
  margin-top: auto !important;
}
.me-0 {
  margin-right: 0 !important;
}
.me-1 {
  margin-right: 0.25rem !important;
}
.me-2 {
  margin-right: 0.5rem !important;
}
.me-3 {
  margin-right: 1rem !important;
}
.me-4 {
  margin-right: 1.5rem !important;
}
.me-5 {
  margin-right: 3rem !important;
}
.me-6 {
  margin-right: 4.5rem !important;
}
.me-7 {
  margin-right: 6rem !important;
}
.me-auto {
  margin-right: auto !important;
}
.mb-0 {
  margin-bottom: 0 !important;
}
.mb-1 {
  margin-bottom: 0.25rem !important;
}
.mb-2 {
  margin-bottom: 0.5rem !important;
}
.mb-3 {
  margin-bottom: 1rem !important;
}
.mb-4 {
  margin-bottom: 1.5rem !important;
}
.mb-5 {
  margin-bottom: 3rem !important;
}
.mb-6 {
  margin-bottom: 4.5rem !important;
}
.mb-7 {
  margin-bottom: 6rem !important;
}
.mb-auto {
  margin-bottom: auto !important;
}
.ms-0 {
  margin-left: 0 !important;
}
.ms-1 {
  margin-left: 0.25rem !important;
}
.ms-2 {
  margin-left: 0.5rem !important;
}
.ms-3 {
  margin-left: 1rem !important;
}
.ms-4 {
  margin-left: 1.5rem !important;
}
.ms-5 {
  margin-left: 3rem !important;
}
.ms-6 {
  margin-left: 4.5rem !important;
}
.ms-7 {
  margin-left: 6rem !important;
}
.ms-auto {
  margin-left: auto !important;
}
.m-n1 {
  margin: -0.25rem !important;
}
.m-n2 {
  margin: -0.5rem !important;
}
.m-n3 {
  margin: -1rem !important;
}
.m-n4 {
  margin: -1.5rem !important;
}
.m-n5 {
  margin: -3rem !important;
}
.m-n6 {
  margin: -4.5rem !important;
}
.m-n7 {
  margin: -6rem !important;
}
.mx-n1 {
  margin-right: -0.25rem !important;
  margin-left: -0.25rem !important;
}
.mx-n2 {
  margin-right: -0.5rem !important;
  margin-left: -0.5rem !important;
}
.mx-n3 {
  margin-right: -1rem !important;
  margin-left: -1rem !important;
}
.mx-n4 {
  margin-right: -1.5rem !important;
  margin-left: -1.5rem !important;
}
.mx-n5 {
  margin-right: -3rem !important;
  margin-left: -3rem !important;
}
.mx-n6 {
  margin-right: -4.5rem !important;
  margin-left: -4.5rem !important;
}
.mx-n7 {
  margin-right: -6rem !important;
  margin-left: -6rem !important;
}
.my-n1 {
  margin-top: -0.25rem !important;
  margin-bottom: -0.25rem !important;
}
.my-n2 {
  margin-top: -0.5rem !important;
  margin-bottom: -0.5rem !important;
}
.my-n3 {
  margin-top: -1rem !important;
  margin-bottom: -1rem !important;
}
.my-n4 {
  margin-top: -1.5rem !important;
  margin-bottom: -1.5rem !important;
}
.my-n5 {
  margin-top: -3rem !important;
  margin-bottom: -3rem !important;
}
.my-n6 {
  margin-top: -4.5rem !important;
  margin-bottom: -4.5rem !important;
}
.my-n7 {
  margin-top: -6rem !important;
  margin-bottom: -6rem !important;
}
.mt-n1 {
  margin-top: -0.25rem !important;
}
.mt-n2 {
  margin-top: -0.5rem !important;
}
.mt-n3 {
  margin-top: -1rem !important;
}
.mt-n4 {
  margin-top: -1.5rem !important;
}
.mt-n5 {
  margin-top: -3rem !important;
}
.mt-n6 {
  margin-top: -4.5rem !important;
}
.mt-n7 {
  margin-top: -6rem !important;
}
.me-n1 {
  margin-right: -0.25rem !important;
}
.me-n2 {
  margin-right: -0.5rem !important;
}
.me-n3 {
  margin-right: -1rem !important;
}
.me-n4 {
  margin-right: -1.5rem !important;
}
.me-n5 {
  margin-right: -3rem !important;
}
.me-n6 {
  margin-right: -4.5rem !important;
}
.me-n7 {
  margin-right: -6rem !important;
}
.mb-n1 {
  margin-bottom: -0.25rem !important;
}
.mb-n2 {
  margin-bottom: -0.5rem !important;
}
.mb-n3 {
  margin-bottom: -1rem !important;
}
.mb-n4 {
  margin-bottom: -1.5rem !important;
}
.mb-n5 {
  margin-bottom: -3rem !important;
}
.mb-n6 {
  margin-bottom: -4.5rem !important;
}
.mb-n7 {
  margin-bottom: -6rem !important;
}
.ms-n1 {
  margin-left: -0.25rem !important;
}
.ms-n2 {
  margin-left: -0.5rem !important;
}
.ms-n3 {
  margin-left: -1rem !important;
}
.ms-n4 {
  margin-left: -1.5rem !important;
}
.ms-n5 {
  margin-left: -3rem !important;
}
.ms-n6 {
  margin-left: -4.5rem !important;
}
.ms-n7 {
  margin-left: -6rem !important;
}

.p-0 {
  padding: 0 !important;
}

.p-1 {
  padding: 0.25rem !important;
}

.p-2 {
  padding: 0.5rem !important;
}

.p-3 {
  padding: 1rem !important;
}

.p-4 {
  padding: 1.5rem !important;
}

.p-5 {
  padding: 3rem !important;
}

.px-0 {
  padding-right: 0 !important;
  padding-left: 0 !important;
}

.px-1 {
  padding-right: 0.25rem !important;
  padding-left: 0.25rem !important;
}

.px-2 {
  padding-right: 0.5rem !important;
  padding-left: 0.5rem !important;
}

.px-3 {
  padding-right: 1rem !important;
  padding-left: 1rem !important;
}

.px-4 {
  padding-right: 1.5rem !important;
  padding-left: 1.5rem !important;
}

.px-5 {
  padding-right: 3rem !important;
  padding-left: 3rem !important;
}

.py-0 {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

.py-1 {
  padding-top: 0.25rem !important;
  padding-bottom: 0.25rem !important;
}

.py-2 {
  padding-top: 0.5rem !important;
  padding-bottom: 0.5rem !important;
}

.py-3 {
  padding-top: 1rem !important;
  padding-bottom: 1rem !important;
}

.py-4 {
  padding-top: 1.5rem !important;
  padding-bottom: 1.5rem !important;
}

.py-5 {
  padding-top: 3rem !important;
  padding-bottom: 3rem !important;
}

.pt-0 {
  padding-top: 0 !important;
}

.pt-1 {
  padding-top: 0.25rem !important;
}

.pt-2 {
  padding-top: 0.5rem !important;
}

.pt-3 {
  padding-top: 1rem !important;
}

.pt-4 {
  padding-top: 1.5rem !important;
}

.pt-5 {
  padding-top: 3rem !important;
}

.pe-0 {
  padding-right: 0 !important;
}

.pe-1 {
  padding-right: 0.25rem !important;
}

.pe-2 {
  padding-right: 0.5rem !important;
}

.pe-3 {
  padding-right: 1rem !important;
}

.pe-4 {
  padding-right: 1.5rem !important;
}

.pe-5 {
  padding-right: 3rem !important;
}

.pb-0 {
  padding-bottom: 0 !important;
}

.pb-1 {
  padding-bottom: 0.25rem !important;
}

.pb-2 {
  padding-bottom: 0.5rem !important;
}

.pb-3 {
  padding-bottom: 1rem !important;
}

.pb-4 {
  padding-bottom: 1.5rem !important;
}

.pb-5 {
  padding-bottom: 3rem !important;
}

.ps-0 {
  padding-left: 0 !important;
}

.ps-1 {
  padding-left: 0.25rem !important;
}

.ps-2 {
  padding-left: 0.5rem !important;
}

.ps-3 {
  padding-left: 1rem !important;
}

.ps-4 {
  padding-left: 1.5rem !important;
}

.ps-5 {
  padding-left: 3rem !important;
}

/* Organization Settings Styles */
/* Container styling now handled by PageContainer */

.organization-card,
.payment-integration-card,
.data-backup-card {
  margin-bottom: 24px;
  border-radius: 8px;
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.03),
    0 1px 6px -1px rgba(0, 0, 0, 0.02),
    0 2px 4px rgba(0, 0, 0, 0.02);
}

.organization-form .ant-form-item {
  margin-bottom: 16px;
}

.organization-form .ant-divider {
  margin: 24px 0 16px;
}

.organization-form h5.ant-typography {
  margin-bottom: 16px;
  color: #1f1f1f;
  font-weight: 600;
}

.logo-preview {
  margin-top: 16px;
  padding: 8px;
  border: 1px dashed #d9d9d9;
  border-radius: 4px;
  max-width: 200px;
}

.logo-preview img {
  max-width: 100%;
  max-height: 165px;
  display: block;
}

.payment-integration-card .ant-ribbon-wrapper {
  position: relative;
}

/* Fine-tune the left positioning for start placement */
.payment-integration-card .ant-ribbon-wrapper .ant-ribbon-placement-start {
  left: -29px !important;
}

.data-backup-card .ant-space {
  margin-top: 16px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .organization-settings {
    padding: 16px;
  }

  .organization-form .ant-form-item-label {
    text-align: left;
  }

  .organization-form .ant-col-6 {
    max-width: 100%;
    flex: 0 0 100%;
  }

  .organization-form .ant-col-18 {
    max-width: 100%;
    flex: 0 0 100%;
  }
}

/* Tabs extra button styles */
.tabs-extra-demo-button {
  margin-inline-end: 16px;
}

.ant-row-rtl .tabs-extra-demo-button {
  margin-inline-end: 0;
  margin-inline-start: 16px;
}

/* Organization settings styles */
.organization-settings .ant-tabs-tab {
  font-weight: bold !important;
}

.organization-settings .ant-ribbon {
  left: -29px !important;
}

/* ==========================================================================
   ACCOUNTING REPORTS STYLES
   ========================================================================== */

/* Report account row hover effects */
.report-account-row {
  transition: all 0.2s ease;
  padding: 4px 8px;
  border-radius: 4px;
}

.report-account-row:hover {
  background-color: #f5f5f5 !important;
  transform: translateX(2px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Color-coded amounts */
.income-amount {
  color: #52c41a !important;
  font-weight: 600;
}

.expense-amount {
  color: #fa541c !important;
  font-weight: 600;
}

.net-income-positive {
  color: #52c41a !important;
  font-weight: 700;
}

.net-income-negative {
  color: #fa541c !important;
  font-weight: 700;
}

/* Print styles for reports */
@media print {
  .report-renderer {
    font-size: 12px;
    line-height: 1.4;
  }

  .report-renderer .ant-card {
    box-shadow: none !important;
    border: 1px solid #000 !important;
    margin-bottom: 16px;
    page-break-inside: avoid;
  }

  .report-renderer .ant-card-head {
    background-color: white !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .report-account-row:hover {
    background-color: transparent !important;
    transform: none !important;
    box-shadow: none !important;
  }

  /* Hide interactive elements during print */
  .entity-actions,
  .ant-btn,
  .ant-select,
  .ant-picker {
    display: none !important;
  }

  /* Force print of background colors */
  * {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }
}

/* Responsive design for reports */
@media (max-width: 768px) {
  .report-renderer .ant-col {
    margin-bottom: 8px;
  }

  .report-renderer .ant-typography h2 {
    font-size: 18px;
  }

  .report-renderer .ant-typography h3 {
    font-size: 16px;
  }

  .report-renderer .ant-typography h4 {
    font-size: 14px;
  }
}

/* ==========================================================================
   LEDGER REPORT STYLES
   ========================================================================== */

/* Starting balance row styling */
.ledger-starting-balance-row {
  background-color: #f5f5f5 !important;
  font-weight: 500;
}

.ledger-starting-balance-row:hover {
  background-color: #f0f0f0 !important;
}

/* Balance total row styling */
.balance-total-row {
  background-color: #fafafa !important;
  font-weight: bold;
  border-top: 2px solid #d9d9d9;
}

.balance-total-row:hover {
  background-color: #f5f5f5 !important;
}

/* Ledger transaction table styling */
.ant-table-tbody .ledger-starting-balance-row td {
  border-top: 2px solid #d9d9d9;
  font-style: italic;
}

/* Print specific styles for ledger */
@media print {
  .ledger-starting-balance-row {
    background-color: #f5f5f5 !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  .balance-total-row {
    background-color: #fafafa !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }
}

/* ==========================================================================
   MERGE TOOL STYLES
   ========================================================================== */

.merge-container {
  padding: 24px;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
  overflow-x: hidden;
}

.merge-card-main {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  width: 100%;
  box-sizing: border-box;
}

.merge-danger-banner {
  background: linear-gradient(135deg, rgba(255, 77, 79, 0.15) 0%, rgba(255, 77, 79, 0.08) 100%);
  border-color: #ff4d4f;
}

.merge-entity-selector {
  text-align: center;
  margin: 32px 0;
  width: 100%;
  box-sizing: border-box;
}

.merge-section-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
  color: #262626;
}

.merge-section-description {
  font-size: 14px;
  color: #595959;
  margin-bottom: 16px;
}

.merge-label {
  display: block;
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 12px;
  color: #262626;
}

/* Style the entity type dropdown to match primary button */
.merge-entity-dropdown .ant-select-selector {
  background-color: white !important;
  border: 2px solid var(--brand-turquoise) !important;
  color: var(--brand-text) !important;
  font-weight: 500;
  transition: all 0.3s ease;
}

.merge-entity-dropdown .ant-select-selector:hover {
  border-color: var(--brand-turquoise-hover) !important;
  box-shadow: 0 0 0 2px rgba(0, 188, 212, 0.1) !important;
}

.merge-entity-dropdown.ant-select-focused .ant-select-selector {
  border-color: var(--brand-turquoise-active) !important;
  box-shadow: 0 0 0 2px rgba(0, 188, 212, 0.2) !important;
}

.merge-entity-dropdown .ant-select-selection-item {
  color: var(--brand-text) !important;
  font-weight: 500;
}

.merge-entity-dropdown .ant-select-arrow {
  color: var(--brand-text) !important;
}

.merge-selector-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 24px;
  align-items: start;
  margin: 32px 0;
  width: 100%;
  box-sizing: border-box;
}

.merge-card {
  border-radius: 8px;
  transition: all 0.3s ease;
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.merge-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.merge-card--source {
  border: 2px solid rgba(255, 77, 79, 0.4);
  background: linear-gradient(135deg, rgba(255, 77, 79, 0.05) 0%, rgba(255, 77, 79, 0.02) 100%);
}

.merge-card--target {
  border: 2px solid rgba(0, 188, 212, 0.4);
  background: linear-gradient(135deg, rgba(0, 188, 212, 0.05) 0%, rgba(0, 188, 212, 0.02) 100%);
}

.merge-card-header {
  margin-bottom: 16px;
}

.merge-card-title {
  font-size: 18px;
  font-weight: 600;
  margin: 8px 0 4px 0;
  display: flex;
  align-items: center;
}

.merge-card-subtitle {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  margin: 0 0 16px 0;
}

.merge-record-details {
  margin-top: 16px;
  padding: 12px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 6px;
  font-size: 14px;
  word-break: break-word;
  overflow-wrap: break-word;
}

.merge-record-details p {
  margin: 4px 0;
  word-break: break-word;
}

.merge-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 80px;
}

.merge-arrow > * {
  animation: pulse 2s ease-in-out infinite;
  transform-origin: center center;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 0.55;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.1);
  }
}

/* Make the collapse header bold */
.merge-card-main .ant-collapse-header-text {
  font-weight: 600;
}

.merge-instructions {
  list-style-position: inside;
  padding-left: 0;
  margin: 0;
}

.merge-instructions li {
  padding: 4px 0;
  font-size: 14px;
}

.merge-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 24px;
  flex-wrap: wrap;
}

/* Preview Modal Styles */
.merge-preview-comparison {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 16px;
  margin: 24px 0;
  width: 100%;
  box-sizing: border-box;
}

.merge-preview-card {
  border-radius: 8px;
  padding: 16px;
  overflow: hidden;
  word-break: break-word;
}

.merge-preview-card--source {
  border: 2px solid rgba(255, 77, 79, 0.3);
  background: rgba(255, 77, 79, 0.05);
}

.merge-preview-card--target {
  border: 2px solid rgba(0, 188, 212, 0.3);
  background: rgba(0, 188, 212, 0.05);
}

.merge-preview-card h4 {
  margin-top: 0;
  margin-bottom: 12px;
  font-weight: 600;
}

.merge-preview-card p {
  margin: 6px 0;
  font-size: 14px;
  word-break: break-word;
}

.merge-preview-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: var(--brand-turquoise);
}

.merge-preview-impact {
  margin: 24px 0;
}

.merge-preview-impact h4 {
  margin-bottom: 12px;
  font-weight: 600;
}

.merge-preview-impact ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.merge-preview-impact li {
  padding: 4px 0;
  font-size: 14px;
  line-height: 1.6;
  word-break: break-word;
}

/* Merge Preview Enhanced Styles */
.merge-preview-summary {
  margin: 24px 0;
}

.merge-preview-header {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(0, 0, 0, 0.02);
  border-radius: 8px;
  margin-bottom: 24px;
}

.merge-preview-record {
  text-align: center;
  flex: 1;
}

.merge-preview-record h4 {
  margin: 0 0 8px 0;
  font-size: 14px;
  font-weight: 600;
  color: #595959;
}

.merge-preview-record p {
  margin: 0;
  font-size: 16px;
  font-weight: 500;
  color: #262626;
}

/* Table-like diff view */
.merge-preview-table {
  border: 1px solid #d9d9d9;
  border-radius: 8px;
  overflow: hidden;
}

.merge-preview-table-header {
  display: grid;
  grid-template-columns: 0.75fr 2fr 125px 2fr;
  gap: 8px;
  padding: 12px;
  background: #fafafa;
  border-bottom: 2px solid #d9d9d9;
  font-weight: 600;
  font-size: 14px;
  color: #262626;
}

.merge-preview-table-header .icon-col {
  font-size: 14px; /* Match other headers */
  font-weight: 600;
}

.merge-preview-table-row {
  display: grid;
  grid-template-columns: 0.75fr 2fr 125px 2fr;
  gap: 8px;
  padding: 12px;
  border-bottom: 1px solid #f0f0f0;
  font-size: 14px;
  transition: background-color 0.2s;
}

.merge-preview-table-row:last-child {
  border-bottom: none;
}

.merge-preview-table-row:hover {
  filter: brightness(0.97);
}

.field-name-col {
  color: #262626;
  word-break: break-word;
}

.source-col {
  color: #595959;
  word-break: break-word;
  font-family: "Consolas", "Monaco", monospace;
}

.target-col {
  color: #262626;
  word-break: break-word;
  font-family: "Consolas", "Monaco", monospace;
}

.icon-col {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
}

.change-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.2s ease;
}

.change-icon--clickable {
  cursor: pointer;
  user-select: none;
}

.change-icon--clickable:hover {
  transform: scale(1.05);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  filter: brightness(0.95);
}

.change-icon--clickable:active {
  transform: scale(0.98);
}

.change-icon--addition {
  background: rgba(82, 196, 26, 0.15);
  color: #389e0d;
}

.change-icon--overwrite {
  background: rgba(250, 173, 20, 0.15);
  color: #d48806;
}

.change-icon--preserved {
  background: rgba(0, 188, 212, 0.15);
  color: #006d75;
}

.change-icon--overridden {
  background: rgba(0, 188, 212, 0.15);
  color: #006d75;
  border: 2px solid #00bcd4;
}

.change-icon--rejected {
  background: rgba(217, 217, 217, 0.15);
  color: #8c8c8c;
  border: 2px solid #d9d9d9;
}

.change-icon--forced-overwrite {
  background: rgba(255, 77, 79, 0.15);
  color: #cf1322;
  border: 2px solid #ff4d4f;
}

.change-icon--same {
  opacity: 0.5;
  color: #8c8c8c;
}

/* Responsive Design */
@media (max-width: 768px) {
  .merge-container {
    padding: 12px;
  }

  .merge-entity-selector {
    margin: 16px 0;
  }

  .merge-selector-grid,
  .merge-preview-comparison {
    grid-template-columns: 1fr;
    gap: 16px;
    margin: 16px 0;
  }

  .merge-arrow {
    transform: rotate(90deg);
    padding: 8px 0;
  }

  .merge-preview-arrow {
    transform: rotate(90deg);
    padding: 8px 0;
  }

  /* Enhanced table responsive adjustments */
  .merge-preview-table-header,
  .merge-preview-table-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .merge-preview-table-header {
    display: none; /* Hide headers on mobile */
  }

  .merge-preview-table-row {
    padding: 16px;
  }

  .field-name-col {
    font-weight: 600;
    margin-bottom: 8px;
  }

  .source-col::before {
    content: "Source: ";
    font-weight: 600;
  }

  .target-col::before {
    content: "Target: ";
    font-weight: 600;
  }

  .icon-col {
    margin: 8px 0;
  }

  .merge-actions button {
    width: 100%;
  }

  .merge-card-title {
    font-size: 16px;
  }

  .merge-card-subtitle {
    font-size: 13px;
  }

  .merge-label {
    font-size: 14px;
  }

  /* Ensure Ant Design cards don't overflow */
  .merge-card-main .ant-card-body {
    padding: 16px;
  }

  .merge-card .ant-card-body {
    padding: 12px;
  }
}

.dev-debug {
  border: 1px dashed red;
}

/* ==========================================================================
   CHART STYLES (@ant-design/charts)
   ========================================================================== */

/* G2 Chart Tooltips - Global styling for all charts */
.g2-tooltip {
  background: rgba(255, 255, 255, 0.95) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15) !important;
  padding: 8px 12px !important;
  border-radius: 4px !important;
}

.g2-tooltip-title {
  color: rgba(0, 0, 0, 0.88) !important;
}

.g2-tooltip-list-item {
  color: rgba(0, 0, 0, 0.88) !important;
}

.g2-tooltip-list-item-name-label {
  color: rgba(0, 0, 0, 0.88) !important;
}

.g2-tooltip-list-item-value {
  color: rgba(0, 0, 0, 0.88) !important;
  font-weight: bold !important;
}

/* ==========================================================================
   SHOP PAGE - Shop.jsx & PurchaseModal.jsx
   ========================================================================== */

.shop-page {
  min-height: 100vh;
  background: #f5f7fa;
}

/* Bleed to edges inside AuthLayout - cancels .page-container's 24px padding */
.page-container .shop-page {
  margin: -24px;
}

/* Hero backgrounds - switched by activeTab state */
.shop-hero--cloud {
  background: linear-gradient(175deg, #011e25 0%, #013840 30%, #015f6d 62%, #007a88 100%);
}

.shop-hero--desktop {
  background: linear-gradient(135deg, #1a237e 0%, #283593 30%, #3949ab 65%, #5c6bc0 100%);
}

/* AntD Typography !important overrides - needed to beat component-level defaults */
.shop-hero-title {
  color: #ffffff !important;
  font-size: 2.4rem !important;
  font-weight: 700 !important;
  margin: 0 0 12px !important;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  letter-spacing: -0.3px;
}

.shop-hero-subtitle {
  color: rgba(255, 255, 255, 0.85) !important;
  font-size: 16px !important;
  margin: 0 0 32px !important;
  line-height: 1.6 !important;
}

/* Two-state pill toggle */
.shop-toggle-pill {
  display: inline-flex;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(12px);
  border-radius: 50px;
  padding: 6px;
  gap: 4px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  margin-bottom: 0;
}
.shop-toggle-opt {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 44px;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.5);
  font-size: 15px;
  font-weight: 500;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  user-select: none;
}
.shop-toggle-opt:hover {
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.08);
}
.shop-toggle-opt--active {
  color: #ffffff !important;
  font-weight: 700;
}
.shop-toggle-opt--cloud.shop-toggle-opt--active {
  background: linear-gradient(135deg, rgba(0, 131, 143, 0.95) 0%, rgba(0, 188, 212, 0.9) 100%);
  box-shadow:
    0 4px 20px rgba(0, 188, 212, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.shop-toggle-opt--desktop.shop-toggle-opt--active {
  background: linear-gradient(135deg, rgba(48, 63, 159, 0.95) 0%, rgba(92, 107, 192, 0.9) 100%);
  box-shadow:
    0 4px 20px rgba(92, 107, 192, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.shop-toggle-icon {
  font-size: 20px;
}
.shop-toggle-label {
  white-space: nowrap;
}

/* Cards at natural height - no forced equal sizing, background stays within content bounds */
.shop-plans-row {
  align-items: flex-start;
}
.shop-card-wrapper {
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
/* Override PlanSelectionModal.css scroll cap - 2-col grid doesn't need a max-height */
.shop-plan-card .plan-features-scroll {
  max-height: none;
  overflow: visible;
}

/* Plan button - gradient via CSS custom props + hover state */
.shop-plan-card .plan-button {
  background: linear-gradient(135deg, var(--button-gradient-start) 0%, var(--button-gradient-end) 100%) !important;
  border-color: var(--button-border) !important;
  color: var(--button-text) !important;
  font-weight: 600;
  transition:
    opacity 0.2s ease,
    transform 0.15s ease,
    box-shadow 0.2s ease;
}
.shop-plan-card .plan-button:hover:not(:disabled) {
  opacity: 0.9;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Desktop card hover shadows */
.plan-card-membership.shop-desktop-card:hover {
  box-shadow:
    0 12px 32px rgba(230, 81, 0, 0.22),
    0 4px 8px rgba(0, 0, 0, 0.1) !important;
}
.plan-card-accounting.shop-desktop-card:hover {
  box-shadow:
    0 12px 32px rgba(46, 125, 50, 0.22),
    0 4px 8px rgba(0, 0, 0, 0.1) !important;
}
.plan-card-desktop.shop-desktop-card:hover {
  box-shadow:
    0 12px 32px rgba(57, 73, 171, 0.28),
    0 4px 8px rgba(0, 0, 0, 0.1) !important;
}

/* Plans section - kept as class for responsive padding override */
.shop-plans-section {
  padding: 40px 32px 48px;
  max-width: 1200px;
  margin: 0 auto;
}

/* Purchase Modal */
.purchase-modal-close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  opacity: 0.7;
  transition: opacity 0.2s;
}
.purchase-modal-close-btn:hover {
  opacity: 1 !important;
  background: rgba(255, 255, 255, 0.15) !important;
}

.purchase-addon-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid #e8e8e8;
  background: #fafafa;
  transition:
    border-color 0.2s ease,
    background 0.2s ease;
}
.purchase-addon-item:has(.ant-checkbox-checked) {
  border-color: #b7eb8f;
  background: #f6ffed;
}

.purchase-payment-radio .ant-radio-button-wrapper {
  height: 40px;
  line-height: 38px;
  font-size: 14px;
  font-weight: 500;
}

.purchase-payment-form {
  animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Firefox scrollbar tint - scrollbar-* props can't be inlined in React */
.purchase-modal-body {
  scrollbar-width: thin;
  scrollbar-color: #d9d9d9 transparent;
}

@media (max-width: 768px) {
  .page-container .shop-page {
    margin: -16px;
  }
  .shop-hero-title {
    font-size: 1.75rem !important;
  }
  .shop-hero-subtitle {
    font-size: 14px !important;
  }
  .shop-plans-section {
    padding: 24px 16px 40px;
  }
  .shop-toggle-pill {
    padding: 5px;
  }
  .shop-toggle-opt {
    padding: 10px 16px;
    gap: 6px;
    font-size: 14px;
  }
  .shop-toggle-icon {
    font-size: 17px;
  }
}

@media (max-width: 480px) {
  .shop-toggle-opt {
    padding: 10px 12px;
    gap: 4px;
  }
}

/* Hide frequency tags in toggle on very small screens */
@media (max-width: 400px) {
  .shop-toggle-tag {
    display: none;
  }
}
.react-resizable {
  position: relative;
}
.react-resizable-handle {
  position: absolute;
  width: 20px;
  height: 20px;
  background-repeat: no-repeat;
  background-origin: content-box;
  box-sizing: border-box;
  background-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA2IDYiIHN0eWxlPSJiYWNrZ3JvdW5kLWNvbG9yOiNmZmZmZmYwMCIgeD0iMHB4IiB5PSIwcHgiIHdpZHRoPSI2cHgiIGhlaWdodD0iNnB4Ij48ZyBvcGFjaXR5PSIwLjMwMiI+PHBhdGggZD0iTSA2IDYgTCAwIDYgTCAwIDQuMiBMIDQgNC4yIEwgNC4yIDQuMiBMIDQuMiAwIEwgNiAwIEwgNiA2IEwgNiA2IFoiIGZpbGw9IiMwMDAwMDAiLz48L2c+PC9zdmc+');
  background-position: bottom right;
  padding: 0 3px 3px 0;
}
.react-resizable-handle-sw {
  bottom: 0;
  left: 0;
  cursor: sw-resize;
  transform: rotate(90deg);
}
.react-resizable-handle-se {
  bottom: 0;
  right: 0;
  cursor: se-resize;
}
.react-resizable-handle-nw {
  top: 0;
  left: 0;
  cursor: nw-resize;
  transform: rotate(180deg);
}
.react-resizable-handle-ne {
  top: 0;
  right: 0;
  cursor: ne-resize;
  transform: rotate(270deg);
}
.react-resizable-handle-w,
.react-resizable-handle-e {
  top: 50%;
  margin-top: -10px;
  cursor: ew-resize;
}
.react-resizable-handle-w {
  left: 0;
  transform: rotate(135deg);
}
.react-resizable-handle-e {
  right: 0;
  transform: rotate(315deg);
}
.react-resizable-handle-n,
.react-resizable-handle-s {
  left: 50%;
  margin-left: -10px;
  cursor: ns-resize;
}
.react-resizable-handle-n {
  top: 0;
  transform: rotate(225deg);
}
.react-resizable-handle-s {
  bottom: 0;
  transform: rotate(45deg);
}/**
 * Accounting Report Shared Styles
 * Generic styles reusable across accounting report pages.
 * 
 * Font Scaling Note:
 * The font scaling selectors include h1, h5, h6, p even though BudgetReport
 * currently only uses h2-h4. These are included for:
 * - Future reports that may use different heading levels
 * - Ant Design components that may render these elements internally
 */

/* Container & Layout */
.accounting-report-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 20px;
  background: white;
  min-height: 100vh;
}

.accounting-report-content {
  font-family: var(--font-sans, "IBM Plex Sans", "Segoe UI", sans-serif);
  line-height: 1.6;
  color: #333;
  --font-scale: 1;
  --margin-scale: 1;
}

/* Margin scaling - section-aware tiers, all driven by --margin-scale */
/* Fund/header cards (largest gap - 24px base) */
.accounting-report-content .ant-card {
  margin-bottom: 0 !important;
  margin-top: 0 !important;
  border-radius: 0 !important;
}

.accounting-report-content .ant-card .ant-card-head {
  border-radius: 0 !important;
}

.accounting-report-content .profit-loss-comparison-card .ant-card-head {
  background-color: #fafafa;
  border-bottom: 2px solid #d9d9d9;
}

.accounting-report-content .budget-comparison-card .ant-card-head {
  background-color: #fafafa;
  border-bottom: 2px solid #d9d9d9;
}
/* Section title headers - Income, Expenses (16px base) */
.accounting-report-content h5.ant-typography {
  margin-bottom: calc(16px * var(--margin-scale)) !important;
  margin-top: 0 !important;
}
/* Horizontal dividers between rows/totals (16px base) */
.accounting-report-content .ant-divider-horizontal {
  margin-top: calc(16px * var(--margin-scale)) !important;
  margin-bottom: calc(16px * var(--margin-scale)) !important;
}
/* Department section margin (not a direct card-body child, needs explicit class) */
.accounting-report-content .dept-section {
  margin-bottom: calc(16px * var(--margin-scale)) !important;
}
/* Individual account row vertical padding - base spacing that scales */
.accounting-report-content .report-account-row {
  padding-top: calc(3px * var(--margin-scale)) !important;
  padding-bottom: calc(3px * var(--margin-scale)) !important;
}

/* Font scaling */
.accounting-report-content .ant-typography,
.accounting-report-content h1,
.accounting-report-content h5,
.accounting-report-content h6,
.accounting-report-content p,
.accounting-report-content span,
.accounting-report-content .report-account-row,
.accounting-report-content .department-total,
.accounting-report-content .category-total,
.accounting-report-content .fund-net-total,
.accounting-report-content .grand-total-row {
  font-size: calc(1em * var(--font-scale)) !important;
}

.accounting-report-content h2.ant-typography {
  font-size: calc(1em * var(--font-scale) * 1.25) !important;
}

.accounting-report-content h3.ant-typography {
  font-size: calc(1em * var(--font-scale) * 1.15) !important;
}

.accounting-report-content h4.ant-typography {
  font-size: calc(1em * var(--font-scale) * 1.0025) !important;
}

/* Print controls */
.print-controls {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 20px;
  padding: 12px;
  background: #fafafa;
  border-radius: 4px;
  border: 1px solid #d9d9d9;
}

/* Report header */
.report-header {
  margin-bottom: 24px;
  text-align: center;
}

.report-header .ant-typography {
  margin-bottom: 4px !important;
}

.report-header h4 {
  margin-bottom: 0 !important;
}

/* Sections */
.fund-section {
  margin-bottom: 24px;
  page-break-inside: avoid;
}

.accounting-amount-cell {
  font-family: var(--font-mono, "IBM Plex Mono", "SFMono-Regular", Consolas, monospace);
  flex-shrink: 0;
  min-width: 140px;
  text-align: right;
}

.accounting-roll-amount {
  font-family: var(--font-mono, "IBM Plex Mono", "SFMono-Regular", Consolas, monospace);
  flex-shrink: 0;
  min-width: 120px;
  max-width: 120px;
  width: 120px;
  flex: 0 0 120px;
  text-align: right;
}

.accounting-summary-divider {
  border-bottom: 1px solid #d9d9d9;
  padding-bottom: 2px;
}

.accounting-total-divider {
  border-bottom: 3px double #d9d9d9;
  padding-bottom: 2px;
}

.report-page-break-section {
  display: block;
  width: 100%;
}

@media print {
  .report-page-break-section {
    page-break-after: always !important;
    break-after: page !important;
    page-break-inside: avoid !important;
    break-inside: avoid !important;
  }

  .report-page-break-section .ant-card {
    page-break-inside: avoid !important;
    break-inside: avoid !important;
  }
}

.fund-section .ant-divider {
  margin: 8px 0 16px 0 !important;
}

.category-section {
  margin-bottom: 16px;
}

.department-section {
  margin-bottom: 8px;
}

/* Income/Expense colors */
.income-title {
  color: #52c41a !important;
}

.expense-title {
  color: #ff4d4f !important;
}

/* High contrast mode */
.accounting-report-content.high-contrast .income-title,
.accounting-report-content.high-contrast .expense-title,
.accounting-report-content.high-contrast .fund-net-total .net-value,
.accounting-report-content.high-contrast .grand-total-row .income,
.accounting-report-content.high-contrast .grand-total-row .expense {
  color: #000 !important;
}

.accounting-report-content.high-contrast * {
  color: #000 !important;
}

/* Account rows */
.report-account-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 8px;
  font-family: var(--font-mono, "IBM Plex Mono", "SFMono-Regular", Consolas, monospace);
  font-size: 14px;
  border-radius: 4px;
  transition: background-color 0.2s;
}

.report-account-row:hover {
  background-color: #f5f5f5;
}

.report-account-row.indented {
  padding-left: 32px;
}

/* Totals */
.reporting-sub-total {
  border-top: 1px solid #000 !important;
  padding-top: 2px !important;
}

.reporting-grand-total {
  border-top: 3px double #000 !important;
  padding-top: 2px !important;
}

.department-total {
  display: flex;
  justify-content: space-between;
  margin-top: 12px;
  padding: 8px 16px;
  border-top: 1px solid #d9d9d9;
  font-family: var(--font-mono, "IBM Plex Mono", "SFMono-Regular", Consolas, monospace);
  font-weight: 600;
  background-color: #fafafa;
}

.category-total {
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
  padding: 12px 8px;
  border-top: 2px solid #333;
  font-family: var(--font-mono, "IBM Plex Mono", "SFMono-Regular", Consolas, monospace);
  font-size: 17px;
  font-weight: 700;
}

.fund-net-total {
  display: flex;
  justify-content: space-between;
  margin-top: 24px;
  padding: 16px 8px;
  border-top: 3px double #333;
  font-family: var(--font-mono, "IBM Plex Mono", "SFMono-Regular", Consolas, monospace);
  font-weight: 800;
  background-color: #f0f0f0;
}

.fund-net-total .net-label {
  font-size: 16px;
}

.fund-net-total .net-value {
  font-size: 16px;
  color: #1890ff;
}

/* Grand totals */
.grand-totals {
  margin-top: 48px;
  padding: 24px;
  background: #fafafa;
  border-radius: 8px;
  border: 2px solid #d9d9d9;
}

.grand-totals h3 {
  text-align: center;
  margin-bottom: 16px !important;
}

.grand-total-row {
  margin-bottom: 8px;
  font-family: var(--font-mono, "IBM Plex Mono", "SFMono-Regular", Consolas, monospace);
  font-size: 18px;
  font-weight: 600;
}

/* Contribution Acknowledgment Letter */
.acknowledgment-letter {
  position: relative;
  background: white;
  max-width: 900px;
  margin: 0 auto 32px;
  padding: calc(20px * var(--margin-scale)) calc(32px * var(--margin-scale)) calc(56px * var(--margin-scale));
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.1);
}

/* Fixed (unscaled) height so the flow position below it stays constant regardless of
   whether a logo is present or how long the org name/address is - required for the
   address-spacer math below to line up with the absolutely-positioned address */
.acknowledgment-letter-letterhead {
  height: 3cm;
  display: flex;
  align-items: flex-start;
  padding-top: 0.15cm;
  border-bottom: 1px solid #d9d9d9;
  margin-bottom: 0.4cm;
  overflow: hidden;
}

.acknowledgment-letter-logo {
  max-height: 72px;
  max-width: 200px;
  object-fit: contain;
}

/* Positions the recipient name/address so it lines up with a standard windowed envelope,
   mirroring the legacy Handlebars letterhead partial's offsets (left: 1.7cm; top: 5.5cm).
   Positioned absolutely from the letter's own padding edge so the letterhead's actual
   rendered height (which varies with logo/org name/address length) can't shift it. */
.acknowledgment-letter-address {
  position: absolute;
  top: 4.5cm;
  left: 1.5cm;
}

/* Reserves the flow space the absolutely-positioned address occupies (measured from the
   bottom of the fixed-height letterhead above) so later content (heading, header text,
   table) starts right below the address instead of leaving a gap */
.acknowledgment-letter-address-spacer {
  height: calc(5cm - 3cm - 0.5cm + 1.2cm);
}

.acknowledgment-letter-heading {
  text-align: center;
  margin: calc(8px * var(--margin-scale)) 0 !important;
}

.acknowledgment-letter .ant-table-tbody > tr > td,
.acknowledgment-letter .ant-table-thead > tr > th {
  background: transparent;
}

@media print {
  .acknowledgment-letter {
    box-shadow: none;
    max-width: none;
    margin: 0;
  }
}

.acknowledgment-letter-page.ant-card {
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
}

.acknowledgment-letter-page .ant-card-body {
  padding: 0 !important;
}

.grand-total-row.net {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 3px double #333;
}

.grand-total-row.net .net-label {
  font-size: 16px;
}

.grand-total-row.net .net-value {
  font-size: 16px;
}

.grand-total-row .income {
  color: #52c41a;
}

.grand-total-row .expense {
  color: #ff4d4f;
}

/* Print styles */
@media print {
  .ant-tag {
    background: transparent !important;
    border: none !important;
  }

  .no-print {
    display: none !important;
  }

  @page {
    margin: 40px;
  }

  .accounting-report-container {
    max-width: 100%;
    padding: 0;
    margin: 0;
  }

  .accounting-report-content {
    width: 100% !important;
    min-height: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
  }

  /* Convert flex containers to block for proper page break handling */
  .accounting-report-content .ant-space {
    display: block !important;
  }

  .accounting-report-content .ant-space > .ant-space-item {
    display: block !important;
    width: 100% !important;
    margin-bottom: 0 !important;
  }

  /* Card break handling - allow natural breaks for contribution report cards */
  .accounting-report-content .ant-card {
    overflow: visible !important;
    margin-bottom: 0 !important;
    border: 1px solid #d9d9d9 !important;
  }

  .accounting-report-content .profit-loss-comparison-card {
    border: 1px solid #d9d9d9 !important;
  }

  .accounting-report-content .budget-comparison-card {
    border: 1px solid #d9d9d9 !important;
  }

  .accounting-report-content .report-print-header {
    border: 1px solid #d9d9d9 !important;
  }

  .accounting-report-content .report-print-header + .profit-loss-comparison-card,
  .accounting-report-content .report-print-header + .budget-comparison-card,
  .accounting-report-content .profit-loss-comparison-card + .profit-loss-comparison-card,
  .accounting-report-content .budget-comparison-card + .budget-comparison-card {
    border-top: 0 !important;
  }

  /* Only prevent breaks for summary/budget cards, not contribution cards */
  .accounting-report-content .fund-section .ant-card,
  .accounting-report-content .category-section .ant-card {
    page-break-inside: avoid !important;
    break-inside: avoid !important;
  }

  /* Allow tables in cards to break across pages */
  .accounting-report-content .ant-card .ant-table {
    page-break-inside: auto !important;
    break-inside: auto !important;
  }

  /* Keep the report header attached to the first body section without forcing a break boundary. */
  .accounting-report-content .report-print-header {
    page-break-after: auto !important;
    break-after: auto !important;
    page-break-inside: auto !important;
    break-inside: auto !important;
  }

  .accounting-report-content .report-print-header + .ant-card {
    page-break-before: auto !important;
    break-before: auto !important;
    page-break-inside: auto !important;
    break-inside: auto !important;
  }

  .accounting-report-content .ant-card-body > .ant-flex {
    margin-bottom: calc(12px * var(--margin-scale)) !important;
  }

  .accounting-report-content .ant-card-body > .ant-flex:last-child {
    margin-bottom: 0 !important;
  }

  .fund-section {
    page-break-inside: auto;
    page-break-after: auto;
  }

  .department-section {
    page-break-inside: auto;
  }

  .category-section {
    page-break-inside: auto;
  }

  .report-account-row,
  .department-total,
  .category-total,
  .fund-net-total {
    page-break-inside: avoid;
  }

  body {
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }

  .fund-net-total {
    background-color: #f5f5f5;
  }

  .grand-totals {
    background: white;
    border: 2px solid #333;
  }

  .department-total {
    background-color: white;
  }

  .report-account-row:hover {
    background-color: transparent;
  }

  h2,
  h3,
  h4 {
    page-break-after: avoid;
  }

  .fund-net-total .net-value {
    color: #000 !important;
  }
}

@media screen {
  .grand-totals {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  }
}
/**
 * Plan Selection Modal Styles
 * 
 * Consolidated CSS for plan cards, hover effects, and animations.
 * Replaces ~150 lines of dynamic template literal CSS generation.
 */

/* ==========================================================================
   MODAL HEADER & CLOSE BUTTON
   ========================================================================== */
.plan-modal-header {
  text-align: center;
  padding: 32px 24px 24px 24px;
  position: relative;
  z-index: 2;
}

.plan-modal-close-button {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  line-height: 1;
  color: #595959;
  transition:
    color 0.3s ease,
    transform 0.2s ease;
  cursor: pointer;
  padding: 0;
  margin: 0;
  background: transparent !important;
}

.plan-modal-close-button:hover {
  color: #262626;
  transform: scale(1.1);
  background: transparent !important;
}

/* Override Ant Design's default close button hover background */
.ant-modal-close:hover {
  background: transparent !important;
}

.ant-modal-close .ant-modal-close-x {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ==========================================================================
   PLAN CARD BASE STYLES
   ========================================================================== */
.plan-card {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  /* Single source of truth for corner radius - clips content to match the border */
  overflow: hidden !important;
  border-radius: 12px !important;
  position: relative;
  z-index: 1;
}

.plan-card:hover:not(:has(.ant-badge-ribbon)) {
  /* Raise z-index on hover so glow appears above chevrons and features */
  z-index: 10;
}

.plan-card-header {
  position: relative;
  padding: 40px 24px;
  text-align: center;
  border-bottom: none;
  /* overflow:hidden clips background images/Prism - border-radius handled by parent .plan-card */
  overflow: hidden;
}

.plan-background-layer {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
}

.plan-gradient-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
}

.plan-header-content {
  position: relative;
  z-index: 2;
}

.plan-icon {
  font-size: 48px;
  margin-bottom: 16px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.plan-price {
  font-size: 42px;
  font-weight: 700;
  line-height: 1;
}

.plan-price-subtext {
  font-size: 16px;
  margin-left: 4px;
  opacity: 0.9;
}

/* ==========================================================================
   CHEVRON DIVIDERS
   ========================================================================== */
.plan-chevron-border {
  position: absolute;
  bottom: 1px;
  left: 0;
  width: 100%;
  height: 0px;
  background: rgb(24, 24, 24);
  clip-path: polygon(0 25%, 50% 100%, 100% 25%, 100% 100%, 0 100%);
  z-index: 2;
  /* Allow clicks/content to pass through - it's just decorative */
  pointer-events: none;
}

.plan-chevron {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 60px;
  clip-path: polygon(0 25%, 50% 100%, 100% 25%, 100% 100%, 0 100%);
  z-index: 3;
  /* Allow clicks/content to pass through - it's just decorative */
  pointer-events: none;
}

/* ==========================================================================
   FEATURES SECTION
   ========================================================================== */
.plan-features-section {
  padding: 24px 28px 8px 28px;
  /* overflow:hidden clips gradient - border-radius handled by parent .plan-card */
  overflow: hidden;
}

.plan-button-wrapper {
  margin-bottom: 20px;
}

.plan-features-header {
  display: block;
  margin-bottom: 16px;
  font-size: 14px;
  color: #262626;
  font-weight: 600;
}

.plan-features-scroll {
  max-height: 280px;
  overflow-y: auto;
  overflow-x: visible;
  padding-right: 8px;
  /* Add left padding to prevent icon clipping when card scales */
  padding-left: 4px;
  /* Minimal scrollbar styling */
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 0, 0, 0.2) transparent;
}

.plan-features-scroll::-webkit-scrollbar {
  width: 6px;
}

.plan-features-scroll::-webkit-scrollbar-track {
  background: transparent;
}

.plan-features-scroll::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 3px;
}

.plan-features-scroll::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, 0.3);
}

.plan-feature-item {
  display: flex;
  align-items: flex-start;
}

.plan-feature-text {
  font-size: 13px;
  line-height: 1.5;
  color: #595959;
}

/* ==========================================================================
   PLAN BUTTONS - CSS VARIABLES APPROACH
   ========================================================================== */
.plan-button {
  background: linear-gradient(135deg, var(--button-gradient-start) 0%, var(--button-gradient-end) 100%) !important;
  border: 2px solid var(--button-border) !important;
  color: var(--button-text) !important;
  height: 44px !important;
  font-weight: 600 !important;
  box-shadow: none !important;
  transition: all 0.3s ease !important;
}

.plan-button:not(:disabled):hover {
  background: transparent !important;
  border-color: var(--button-gradient-end) !important;
  color: var(--button-gradient-end) !important;
}

/* Tier-specific button hover shadows */
.plan-button-basic:not(:disabled):hover {
  box-shadow: 0 4px 12px rgba(90, 157, 138, 0.3) !important;
}

.plan-button-plus:not(:disabled):hover {
  box-shadow: 0 4px 12px rgba(0, 151, 167, 0.3) !important;
}

.plan-button-pro:not(:disabled):hover {
  box-shadow: 0 4px 12px rgba(74, 18, 112, 0.3) !important;
}

.plan-button:disabled {
  background: transparent !important;
  color: var(--button-gradient-end) !important;
  opacity: 1 !important;
}

.plan-button:disabled:hover {
  background: linear-gradient(135deg, var(--button-gradient-start) 0%, var(--button-gradient-end) 100%) !important;
  color: var(--button-text) !important;
}

/* ==========================================================================
   HOVER GLOW EFFECTS - TIER SPECIFIC
   ========================================================================== */
.plan-card-basic:hover:not(:has(.ant-badge-ribbon)) {
  box-shadow:
    0 8px 32px rgba(139, 168, 136, 0.4),
    0 0 80px rgba(139, 168, 136, 0.35) !important;
  transform: translateY(-4px);
}

.plan-card-plus:hover:not(:has(.ant-badge-ribbon)) {
  box-shadow:
    0 8px 32px rgba(0, 188, 212, 0.5),
    0 0 80px rgba(0, 188, 212, 0.4) !important;
  transform: translateY(-4px);
}

.plan-card-pro:hover:not(:has(.ant-badge-ribbon)) {
  box-shadow:
    0 8px 32px rgba(133, 34, 158, 0.5),
    0 0 80px rgba(133, 34, 158, 0.4) !important;
  transform: translateY(-4px);
}

/* ==========================================================================
   RESPONSIVE ADJUSTMENTS
   ========================================================================== */
@media (max-width: 768px) {
  .plan-card-header {
    padding: 32px 20px;
  }

  .plan-icon {
    font-size: 40px;
    margin-bottom: 12px;
  }

  .plan-price {
    font-size: 36px;
  }

  .plan-features-section {
    padding: 20px 20px 4px 20px;
  }

  .plan-features-scroll {
    max-height: 240px;
  }
}

/* ==========================================================================
   PRISM BACKGROUND COMPONENT
   ========================================================================== */
.prism-container {
  position: relative;
  width: 100%;
  height: 100%;
}
/* ==========================================================================
   MERGE TOOL STYLES
   ========================================================================== */

.merge-container {
  padding: 24px;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
  overflow-x: hidden;
}

.merge-card-main {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  width: 100%;
  box-sizing: border-box;
}

.merge-danger-banner {
  background: linear-gradient(135deg, rgba(255, 77, 79, 0.15) 0%, rgba(255, 77, 79, 0.08) 100%);
  border-color: #ff4d4f;
}

.merge-entity-selector {
  text-align: center;
  margin: 32px 0;
  width: 100%;
  box-sizing: border-box;
}

.merge-section-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
  color: #262626;
}

.merge-section-description {
  font-size: 14px;
  color: #595959;
  margin-bottom: 16px;
}

/* Style the entity type dropdown to match primary button */
.merge-entity-dropdown .ant-select-selector {
  background-color: white !important;
  border: 2px solid var(--brand-turquoise) !important;
  color: var(--brand-text) !important;
  font-weight: 500;
  transition: all 0.3s ease;
}

.merge-entity-dropdown .ant-select-selector:hover {
  border-color: var(--brand-turquoise-hover) !important;
  box-shadow: 0 0 0 2px rgba(0, 188, 212, 0.1) !important;
}

.merge-entity-dropdown.ant-select-focused .ant-select-selector {
  border-color: var(--brand-turquoise-active) !important;
  box-shadow: 0 0 0 2px rgba(0, 188, 212, 0.2) !important;
}

.merge-entity-dropdown .ant-select-selection-item {
  color: var(--brand-text) !important;
  font-weight: 500;
}

.merge-entity-dropdown .ant-select-arrow {
  color: var(--brand-text) !important;
}

.merge-selector-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 24px;
  align-items: start;
  margin: 32px 0;
  width: 100%;
  box-sizing: border-box;
}

.merge-card {
  border-radius: 8px;
  transition: all 0.3s ease;
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.merge-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.merge-card--record {
  border: 2px solid rgba(0, 188, 212, 0.4);
  background: linear-gradient(135deg, rgba(0, 188, 212, 0.05) 0%, rgba(0, 188, 212, 0.02) 100%);
}

.merge-card-header {
  margin-bottom: 16px;
}

.merge-card-title {
  font-size: 18px;
  font-weight: 600;
  margin: 8px 0 4px 0;
  display: flex;
  align-items: center;
}

.merge-card-subtitle {
  font-size: 14px;
  color: #595959;
  margin: 0 0 16px 0;
}

.merge-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 80px;
}

.merge-arrow > * {
  animation: pulse 2s ease-in-out infinite;
  transform-origin: center center;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 0.55;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.1);
  }
}

/* Make the collapse header bold */
.merge-card-main .ant-collapse-header-text {
  font-weight: 600;
}

.merge-actions {
  margin-top: 24px;
  flex-wrap: wrap;
}

/* Merge Preview Enhanced Styles */
.merge-preview-summary {
  margin: 24px 0;
}

.merge-preview-header {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(0, 0, 0, 0.02);
  border-radius: 8px;
  margin-bottom: 24px;
}

.merge-preview-record {
  text-align: center;
  flex: 1;
}

.merge-preview-record h4 {
  margin: 0 0 8px 0;
  font-size: 14px;
  font-weight: 600;
  color: #595959;
}

/* Two-column layout: Stack Final Product below comparison table */
.merge-preview-grid {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 24px;
}

/* Table-like diff view */
.merge-preview-table {
  border: 1px solid #d9d9d9;
  border-radius: 8px;
  overflow: hidden;
}

.merge-preview-table-header {
  display: grid;
  grid-template-columns: 0.75fr 2fr 125px 2fr;
  gap: 8px;
  padding: 12px;
  background: #fafafa;
  border-bottom: 2px solid #d9d9d9;
  font-weight: 600;
  font-size: 14px;
  color: #262626;
}

.merge-preview-table-header .icon-col {
  font-size: 14px; /* Match other headers */
  font-weight: 600;
}

.merge-preview-table-row {
  display: grid;
  grid-template-columns: 0.75fr 2fr 125px 2fr;
  gap: 8px;
  padding: 12px;
  border-bottom: 1px solid #f0f0f0;
  font-size: 14px;
  transition: background-color 0.2s;
}

.merge-preview-table-row:last-child {
  border-bottom: none;
}

.merge-preview-table-row:hover {
  filter: brightness(0.97);
}

.field-name-col {
  color: #262626;
  word-break: break-word;
}

.source-col {
  color: #595959;
  word-break: break-word;
  font-family: "Consolas", "Monaco", monospace;
}

.target-col {
  color: #262626;
  word-break: break-word;
  font-family: "Consolas", "Monaco", monospace;
}

/* Final Product Card (separate from main table) */
.merge-final-product-card {
  border: 2px solid #00bcd4;
  border-radius: 8px;
  overflow: hidden;
  background: #ffffff;
  width: 65%;
  margin: 0 auto;
}

.merge-final-product-header {
  background: linear-gradient(135deg, #00bcd4 0%, #00acc1 100%);
  padding: 8px 16px;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 12px;
}

.merge-final-product-header h4 {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
}

.merge-final-product-list {
  max-height: 600px;
  overflow-y: auto;
}

.merge-final-product-row {
  padding: 6px 16px;
  border-bottom: 1px solid #f0f0f0;
  transition: background-color 0.2s;
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.merge-final-product-row:hover {
  background-color: rgba(0, 188, 212, 0.03);
}

.merge-final-product-row:last-child {
  border-bottom: none;
}

.final-field-name {
  font-weight: 600;
  font-size: 13px;
  color: #595959;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  flex-shrink: 0;
}

.final-field-name::after {
  content: ":";
  margin-left: 2px;
}

.final-field-value {
  font-family: "Consolas", "Monaco", monospace;
  font-size: 14px;
  color: #0097a7;
  font-weight: 700;
  word-break: break-word;
  flex: 1;
}

.icon-col {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
}

.change-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.2s ease;
}

.change-icon--clickable {
  cursor: pointer;
  user-select: none;
}

.change-icon--clickable:hover {
  transform: scale(1.05);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  filter: brightness(0.95);
}

.change-icon--clickable:active {
  transform: scale(0.98);
}

.change-icon--record-one {
  background: rgba(250, 173, 20, 0.15);
  color: #d48806;
}

.change-icon--record-two {
  background: rgba(0, 188, 212, 0.15);
  color: #006d75;
}

.change-icon--same {
  opacity: 0.5;
  color: #8c8c8c;
}

/* Responsive Design */
@media (max-width: 768px) {
  .merge-container {
    padding: 12px;
  }

  .merge-entity-selector {
    margin: 16px 0;
  }

  .merge-selector-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    margin: 16px 0;
  }

  .merge-arrow {
    transform: rotate(90deg);
    padding: 8px 0;
  }

  /* Final Product card full width on mobile */
  .merge-final-product-card {
    width: 100%;
  }

  /* Enhanced table responsive adjustments */
  .merge-preview-table-header,
  .merge-preview-table-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .merge-preview-table-header {
    display: none; /* Hide headers on mobile */
  }

  .merge-preview-table-row {
    padding: 16px;
  }

  .field-name-col {
    font-weight: 600;
    margin-bottom: 8px;
  }

  .source-col::before {
    content: "Record 1: ";
    font-weight: 600;
  }

  .target-col::before {
    content: "Record 2: ";
    font-weight: 600;
  }

  .icon-col {
    margin: 8px 0;
  }

  .merge-actions button {
    width: 100%;
  }

  .merge-card-title {
    font-size: 16px;
  }

  .merge-card-subtitle {
    font-size: 13px;
  }

  /* Ensure Ant Design cards don't overflow */
  .merge-card-main .ant-card-body {
    padding: 16px;
  }

  .merge-card .ant-card-body {
    padding: 12px;
  }
}
