body {
    background-color: #ffffff;
    font-size: 12px;
    font-family: Verdana, "Verdana CE",  Arial, "Arial CE", "Lucida Grande CE", lucida, "Helvetica CE", sans-serif;
    color: #000000;  
    margin: 10px;
}

form {
    margin: 0;
}

h1 {
    font-family: Arial, "Arial CE", "Lucida Grande CE", lucida, "Helvetica CE", sans-serif;
    font-size:  36px;
    margin: 0px;
    padding: 0px;
}

.font-h11 {
    font-family: Arial, "Arial CE", "Lucida Grande CE", lucida, "Helvetica CE", sans-serif;
    font-size:  28px;
}

.font-h21 {
    font-family: Arial, "Arial CE", "Lucida Grande CE", lucida, "Helvetica CE", sans-serif;
    font-size:  22px;
}

.font-h31 {
    font-family: Arial, "Arial CE", "Lucida Grande CE", lucida, "Helvetica CE", sans-serif;
    font-size:  18px;
}

h1, h2, h3, h4, h5 {
    font-weight: 300;
}

section p strong {
    font-weight: 700;
}

a:link, a:visited {
    color: #045491;
    font-weight : bold;
    text-decoration: none;
}

a:link:not(.ui-state-active):hover, a:visited:not(.ui-state-active):hover  {
    color: #0076ff;
    font-weight : bold;
    text-decoration : none;
}

.ian-ui-menuitem-current {
    background-color: #F1F1F1 !important;
    color: #0052cc !important;
}

.ian-ui-outputtext-cycle-open {
    color: white;
    background: #008827;
    padding: 4px;
}

.ian-ui-outputtext-cycle-closed {
    background: #e65f73;
}

#ian-scrolltop-button {
    padding: 5px 3px;
    position: fixed;
    bottom: 0;
    right: 5px;
    display: none;
    cursor: pointer;
}

.ian-scrolltop-button-bright {
    color: whitesmoke;
    background: transparent;
}

.ian-scrolltop-button-dark {
    color: #2E2E2E;
    background: transparent;
}

.ui-tagcloud {
    font-family: "Open Sans","Helvetica Neue",sans-serif;
}

.ui-tagcloud li {
    padding: 3px !important;
}

.ui-tagcloud a.ui-state-hover {
    background: #007ad9;
    color: #fff;
}

.ui-tagcloud a {
    font-weight: normal;
}

/* Shared notifications for all IAN24 panels; severity is provided by PrimeFaces. */
body .ui-growl.ui-widget { top: 16px; right: 16px; width: 380px; max-width: calc(100vw - 32px); }
body .ui-growl .ui-growl-item-container { --notice-color: #0465ae; --notice-tint: #eaf4ff; margin-bottom: 12px; border: 1px solid #dce5ef; border-left: 4px solid var(--notice-color); border-radius: 12px; background: #fff; color: #334155; opacity: 1; box-shadow: 0 8px 28px rgba(23, 32, 51, .16); text-shadow: none; }
body .ui-growl .ui-growl-warn { --notice-color: #986000; --notice-tint: #fff5dc; }
body .ui-growl .ui-growl-error, body .ui-growl .ui-growl-fatal { --notice-color: #b42318; --notice-tint: #fff0ee; }
body .ui-growl .ui-growl-success { --notice-color: #167044; --notice-tint: #eaf8ef; }
body .ui-growl .ui-growl-item { position: relative; padding: 18px 44px 18px 16px; }
body .ui-growl .ui-growl-message { float: none; width: auto; margin-left: 48px; padding: 0; font: 15px/1.5 Arial, sans-serif; overflow-wrap: anywhere; }
body .ui-growl .ui-growl-title { display: block; padding: 0 0 4px; color: #172033; font-size: 16px; font-weight: 600; }
body .ui-growl .ui-growl-message p { margin: 0; font: inherit; }
body .ui-growl .ui-growl-image { width: 34px; height: 34px; margin: 0; border-radius: 50%; background: var(--notice-tint); color: var(--notice-color); text-align: center; }
body .ui-growl .ui-growl-image::before { content: 'i'; font: 700 23px/34px Arial, sans-serif; }
body .ui-growl .ui-growl-image-warn::before { content: '!'; }
body .ui-growl .ui-growl-image-error::before, body .ui-growl .ui-growl-image-fatal::before { content: '!'; }
body .ui-growl .ui-growl-image-success::before { content: '✓'; }
body .ui-growl .ui-growl-icon-close { display: block !important; top: 0; right: 0; width: 44px; height: 44px; background: none; text-indent: 0; color: #64748b; text-align: center; cursor: pointer; }
body .ui-growl .ui-growl-icon-close::before { content: '×'; font: 24px/44px Arial, sans-serif; }
body .ui-growl .ui-growl-icon-close:hover { color: #172033; }
/* Wspólny, nowoczesny wygląd podpowiedzi PrimeFaces we wszystkich panelach. */
body .ui-overlaypanel:not(.ian-pricing-description) {
    box-sizing: border-box;
    max-width: calc(100vw - 24px);
    border: 1px solid #c7d5e6;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 14px 34px rgba(25, 35, 55, .20);
    color: #334155;
}
body .ui-overlaypanel:not(.ian-pricing-description) .ui-overlaypanel-content {
    padding: 14px 16px;
}
body .ui-overlaypanel.ian-formula-variables {
    width: 520px !important;
    overflow: hidden;
}
body .ian-formula-variables .ui-overlaypanel-content {
    padding: 0 !important;
}
body .ian-formula-variables .ui-datatable {
    border: 0;
}
body .ian-formula-variables .ui-datatable table {
    border-collapse: collapse;
}
body .ian-formula-variables .ui-datatable thead th {
    padding: 10px 14px;
    border: 0;
    border-bottom: 1px solid #dce5ef;
    background: #f1f6fc;
    color: #475569;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}
body .ian-formula-variables .ui-datatable tbody td {
    padding: 8px 14px;
    border: 0;
    border-bottom: 1px solid #edf1f5;
    background: #fff;
    color: #334155;
    vertical-align: top;
}
body .ian-formula-variables .ui-datatable tbody tr:last-child td {
    border-bottom: 0;
}
body .ian-formula-variables .ui-datatable tbody tr:hover td {
    background: #f7fbff;
}
body .ian-formula-variables .ian-formula-variable {
    width: 96px;
    color: #005f9f;
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
    font-weight: 700;
    white-space: nowrap;
}
@media (max-width: 560px) {
    body .ui-overlaypanel.ian-formula-variables { width: calc(100vw - 24px) !important; }
}
/* Contact overlays are shared by all IAN panels and may be appended to body. */
body .ui-overlaypanel.tip-user-style { width: 380px; box-sizing: border-box; background: #fff; border: 1px solid #d5e2ef; border-radius: 12px; color: #334155; }
body .tip-user-style .ui-overlaypanel-content { padding: 18px; }
body .tip-user-style .ui-panelgrid { width: 100%; max-width: none !important; }
body .tip-user-style .ui-panelgrid-cell { padding: 0; border: 0; }
body .tip-user-style .ui-widget, body .tip-user-style .ui-outputlabel { font-size: 14px !important; line-height: 1.5; }
body .tip-user-style .contact-tip-role { width: 100%; }
body .tip-user-style .contact-tip-name { width: 100%; text-align: left !important; padding: 4px 0 8px; }
body .tip-user-style .contact-tip-name .ui-outputlabel { float: none !important; display: block; font-size: 16px !important; color: #192337; overflow-wrap: anywhere; }
body .tip-user-style .ui-separator { border: 0; border-top: 1px solid #e2e8f0; background: transparent; margin: 8px 0; }
body .tip-user-style .breakword { word-break: normal; overflow-wrap: anywhere; }
body .tip-user-style .ui-md-4 { width: 25%; color: #64748b; }
body .tip-user-style .ui-md-8 { width: 75%; min-width: 0; }
body .tip-user-style a { color: #0069af; text-decoration: none; }
body .tip-user-style a:hover { text-decoration: underline; }
body .tip-user-style a:focus-visible { outline: 2px solid #0069af; outline-offset: 3px; }
@media (max-width: 480px) {
    body .tip-user-style .ui-md-4, body .tip-user-style .ui-md-8 { width: 100%; }
}
/* Shared email composer; keep its appearance consistent across panels. */
body .ui-dialog.ian-email-dialog { max-width: calc(100vw - 24px); border: 1px solid #d5e2ef; border-radius: 14px; background: #fff; box-shadow: 0 16px 48px rgba(25,35,55,.2); }
body .ian-email-dialog .ui-dialog-titlebar { background: #fff; border: 0; border-bottom: 1px solid #e2e8f0; padding: 16px 24px; border-radius: 14px 14px 0 0; }
body .ian-email-dialog .ui-dialog-title { color: #192337; font-size: 20px; font-weight: 700; }
body .ian-email-dialog .ui-dialog-titlebar-close { width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; border-radius: 8px; }
body .ian-email-dialog .ui-dialog-content { padding: 16px 24px 20px !important; max-height: calc(100vh - 140px); overflow-y: auto; box-sizing: border-box; }
body .ian-email-dialog .ui-panelgrid-cell { padding: 5px 0; }
body .ian-email-dialog .ui-outputlabel { display: inline-block; font-size: 14px !important; font-weight: 600; color: #475569; margin-bottom: 6px; }
body .ian-email-dialog .ui-inputtext { min-height: 44px; padding: 10px 12px; box-sizing: border-box; border: 1px solid #c7d5e6; border-radius: 7px; background: #fff; box-shadow: none; font-size: 15px !important; }
body .ian-email-dialog .ui-inputtext:focus { border-color: #0069af; outline: 2px solid #dcecff; }
body .ian-email-dialog .ui-separator { border: 0; border-top: 1px solid #e2e8f0; background: none; margin: 12px 0; }
body .ian-email-dialog .ian-email-attachments { background: #f1f6fc; border-radius: 8px; padding: 12px 16px; margin: 8px 0; color: #334155; font-size: 14px; overflow-wrap: anywhere; }
body .ian-email-dialog .ian-email-attachments ul { margin: 6px 0 0; padding-left: 20px; }
body .ian-email-dialog .cke { border: 1px solid #c7d5e6; border-radius: 8px; overflow: hidden; box-shadow: none; }
body .ian-email-dialog .cke_top, body .ian-email-dialog .cke_bottom { background: #f8fafc; border-color: #e2e8f0; }
body .ian-email-dialog .ian-email-actions .ui-button { min-height: 44px; margin: 0 8px 4px 0; padding: 0 16px; background: #0069af; border: 1px solid #0069af; border-radius: 8px; color: #fff; text-shadow: none; box-shadow: none; font-size: 14px !important; }
body .ian-email-dialog .ian-email-actions .ian-email-cancel { background: #fff; border-color: #c7d5e6; color: #475569; }
body .ian-email-dialog .ian-email-actions .ui-button:focus-visible { outline: 3px solid #b9d3ed; outline-offset: 2px; }
@media (max-width: 600px) {
    body .ian-email-dialog .ui-dialog-content { padding: 12px 16px 16px !important; }
}
