/* Izdari's native element and layout primitives. The UI library is PrimeNG.
   Loaded before the existing application styles so page rules stay authoritative. */
@layer native, theme, primeng, utilities;
html { box-sizing: border-box; line-height: 1.5; font-size: 15px; }
*, *::before, *::after { box-sizing: inherit; }
body { margin: 0; }
main, nav, footer, header, section { display: block; }
[hidden] { display: none !important; }
h1, h2, h3, h4, h5, h6 { font-weight: 400; line-height: 1.12; }
h1 { font-size: 2.85rem; margin: 1.45rem 0 1rem; }
h2 { font-size: 2.3rem; margin: 1.25rem 0 .9rem; }
h3 { font-size: 1.8rem; margin: 1.05rem 0 .75rem; }
h4 { font-size: 1.5rem; margin: .95rem 0 .65rem; }
h5, h6 { font-size: 1.2rem; margin: .8rem 0 .6rem; }
a { text-decoration: none; }
@layer native {
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; }
}
label { font-size: .875rem; }
small { font-size: .8em; }
ul { list-style: none; padding-inline-start: 0; }
fieldset { min-width: 0; }
hr { border: 0; border-top: 1px solid var(--izdari-border, #e4deec); }
img { max-width: 100%; }
label > input:is([type=checkbox], [type=radio]) { accent-color: var(--izdari-accent, #5c3882); }
.container { width: min(92%, 1280px); margin-inline: auto; }
@media (min-width: 601px) { .container { width: min(88%, 1280px); } }
@media (min-width: 993px) { .container { width: min(85%, 1280px); } }
.center-align { text-align: center; }
.left { float: left; }
.right { float: right; }
.divider { height: 1px; overflow: hidden; background: var(--izdari-border, #e4deec); }
.card, .card-panel { position: relative; background: var(--izdari-surface, #fff); }
.card .card-content, .card-panel { padding: 24px; }
.card .card-title { display: block; }
.btn, .btn-flat {
  display: inline-flex; align-items: center; justify-content: center; vertical-align: middle;
  gap: .4rem; min-height: 36px; padding: 0 16px; border: 1px solid transparent; border-radius: 5px;
  background: var(--izdari-accent, #5c3882); color: #fff; text-align: center; line-height: 1.3;
  font-size: .9rem; cursor: pointer;
}
.btn.outlined { border-color: var(--izdari-control-border, #796e89); color: var(--izdari-ink, #241b33); background: transparent; }
.btn.text, .btn-flat { color: var(--izdari-accent, #5c3882); background: transparent; }
:is(.btn, .btn-flat) i { line-height: 1; font-size: 1.25em; }
:is(.btn, .btn-flat) i.left, :is(.btn, .btn-flat) i.right { float: none; margin: 0; }
.btn-large { min-height: 48px; }
.chip {
  display: inline-flex; align-items: center; gap: .35rem; min-height: 32px; padding-inline: .75rem;
  border-radius: 16px; background: var(--izdari-panel, #f5f2f9); color: var(--izdari-ink, #241b33);
}
.input-field { position: relative; margin-block: .85rem; }
.input-field > label { display: block; margin-bottom: .25rem; }
.input-field > :is(input:not([type=checkbox], [type=radio], [type=file]), textarea:not([class*="p-"])) {
  display: block; width: 100%; min-height: 42px; padding: .6rem .7rem; border-radius: 7px;
  border: 1px solid var(--izdari-control-border, #796e89); background: var(--izdari-surface, #fff);
}
.input-field > textarea { min-height: 5rem; resize: vertical; }
.input-field .prefix + :is(input, textarea) { padding-inline-start: 2.65rem; }
.input-field .prefix { position: absolute; inline-size: 1.5rem; inset-inline-start: .6rem; inset-block-start: 1.9rem; }
.teal-text, .green-text { color: #21634e; }
.grey-text { color: var(--izdari-muted, #61576e); }
.red-text { color: #9b233d; }
.teal.lighten-5, .green.lighten-5 { background: #edf7f3; }
