/* CHOMA Expert 1.8.95 — final verified overrides. Loaded last. */

/* The note date control must never clip its calendar. */
body.choma-portal-app .choma-note-calendar-row,
body.choma-portal-app .choma-note-calendar-link,
body.choma-portal-app .choma-note-date-control {
    overflow:visible !important;
}

/* 1.8.126: źródłowy układ terminu Notatek i typografia przycisku NOWA. */
body.choma-portal-app.choma-view-notes .choma-note-manual-form > .choma-note-calendar-row-v2 {
    box-sizing:border-box !important;
    display:grid !important;
    grid-template-columns:minmax(0,1fr) minmax(240px,320px) !important;
    align-items:center !important;
    gap:12px !important;
    width:100% !important;
    height:50px !important;
    min-height:50px !important;
    margin:0 !important;
    padding:5px 9px !important;
    overflow:visible !important;
}
body.choma-portal-app.choma-view-notes .choma-note-calendar-row-v2 > .choma-note-calendar-option {
    box-sizing:border-box !important;
    display:flex !important;
    align-items:center !important;
    gap:10px !important;
    min-width:0 !important;
    height:38px !important;
    margin:0 !important;
    padding:0 !important;
}
body.choma-portal-app.choma-view-notes .choma-note-calendar-row-v2 > .choma-note-calendar-option > input[type="checkbox"] {
    flex:0 0 18px !important;
    width:18px !important;
    min-width:18px !important;
    height:18px !important;
    min-height:18px !important;
    margin:0 !important;
}
body.choma-portal-app.choma-view-notes .choma-note-calendar-row-v2 > .choma-note-calendar-option > .choma-note-calendar-label {
    min-width:0 !important;
    margin:0 !important;
    padding:0 !important;
    line-height:1.2 !important;
}
body.choma-portal-app.choma-view-notes .choma-note-calendar-row-v2 > .choma-note-datetime-control {
    position:relative !important;
    box-sizing:border-box !important;
    display:block !important;
    width:100% !important;
    height:38px !important;
    min-height:38px !important;
    max-height:38px !important;
    margin:0 !important;
    padding:0 !important;
    align-self:center !important;
    overflow:visible !important;
}
body.choma-portal-app.choma-view-notes .choma-note-calendar-row-v2 .choma-datetime-display {
    box-sizing:border-box !important;
    display:block !important;
    width:100% !important;
    height:38px !important;
    min-height:38px !important;
    max-height:38px !important;
    margin:0 !important;
    padding:0 46px 0 14px !important;
}
body.choma-portal-app.choma-view-notes .choma-note-calendar-row-v2 button.choma-datetime-toggle {
    position:absolute !important;
    top:1px !important;
    right:1px !important;
    bottom:1px !important;
    left:auto !important;
    box-sizing:border-box !important;
    display:flex !important;
    width:44px !important;
    min-width:44px !important;
    height:auto !important;
    min-height:0 !important;
    max-height:none !important;
    margin:0 !important;
    padding:0 !important;
    border:0 !important;
    background:transparent !important;
    box-shadow:none !important;
    align-items:center !important;
    justify-content:center !important;
}
body.choma-portal-app.choma-view-notes .choma-note-calendar-row-v2 button.choma-datetime-toggle::before,
body.choma-portal-app.choma-view-notes .choma-note-calendar-row-v2 button.choma-datetime-toggle::after {
    display:none !important;
    content:none !important;
}
body.choma-portal-app.choma-view-mail .choma-mail-folder-tabs__new .choma-mail-new-label {
    display:block;
    margin:0 !important;
    padding:0 !important;
    color:#fff !important;
    font-family:Geist,Arial,sans-serif !important;
    font-size:11px !important;
    font-weight:780 !important;
    letter-spacing:1.6px !important;
    line-height:1 !important;
    text-transform:uppercase !important;
    white-space:nowrap !important;
}

@media (max-width:782px) {
    body.choma-portal-app.choma-view-notes .choma-note-manual-form > .choma-note-calendar-row-v2 {
        grid-template-columns:minmax(0,1fr) 32px !important;
        gap:6px !important;
        height:54px !important;
        min-height:54px !important;
        padding:5px 12px !important;
    }
    body.choma-portal-app.choma-view-notes .choma-note-calendar-row-v2 > .choma-note-calendar-option {
        height:44px !important;
    }
    body.choma-portal-app.choma-view-notes .choma-note-calendar-row-v2 > .choma-note-datetime-control {
        width:32px !important;
        min-width:32px !important;
        max-width:32px !important;
        height:36px !important;
        min-height:36px !important;
        max-height:36px !important;
        border:0 !important;
        background:transparent !important;
        box-shadow:none !important;
    }
    body.choma-portal-app.choma-view-notes .choma-note-calendar-row-v2 .choma-datetime-display {
        display:none !important;
    }
    body.choma-portal-app.choma-view-notes .choma-note-calendar-row-v2 button.choma-datetime-toggle {
        position:static !important;
        width:32px !important;
        min-width:32px !important;
        max-width:32px !important;
        height:36px !important;
        min-height:36px !important;
        max-height:36px !important;
        border:0 !important;
        border-radius:0 !important;
        background:transparent !important;
        box-shadow:none !important;
    }
    body.choma-portal-app.choma-view-mail .choma-mail-folder-tabs__new .choma-mail-new-label--desktop {
        display:none !important;
    }
    body.choma-portal-app.choma-view-mail .choma-mail-folder-tabs__new .choma-mail-new-label--mobile {
        display:block !important;
        font-size:9px !important;
        letter-spacing:1px !important;
    }
}

@media (min-width:783px) {
    body.choma-portal-app.choma-view-mail .choma-mail-folder-tabs__new .choma-mail-new-label--mobile {
        display:none !important;
    }
}

/* CHOMA Expert 1.8.96 — authoritative final overrides. */
@media (max-width:782px) {
    body.choma-portal-app .choma-note-date-popover {
        position:absolute !important;
        top:calc(100% + 10px) !important;
        right:0 !important;
        left:auto !important;
        width:min(360px,calc(100vw - 32px)) !important;
        max-width:calc(100vw - 32px) !important;
        min-height:0 !important;
        height:auto !important;
        max-height:none !important;
        overflow:visible !important;
        padding:0 !important;
        z-index:120 !important;
    }

    body.choma-portal-login-page .choma-login__brand > div {
        bottom:0 !important;
        transform:none !important;
    }
}

body.choma-portal-app .choma-note-date-control {
    position:relative !important;
    overflow:visible !important;
}

body.choma-portal-app .choma-note-date-toggle {
    display:inline-flex !important;
    align-items:center !important;
    justify-content:center !important;
    flex:0 0 44px !important;
    width:44px !important;
    min-width:44px !important;
    height:44px !important;
    min-height:44px !important;
    padding:0 !important;
    overflow:visible !important;
}

body.choma-portal-app .choma-note-date-toggle .choma-calendar-glyph {
    display:block !important;
    width:18px !important;
    height:18px !important;
    min-width:18px !important;
    border:2px solid #0c4772 !important;
    border-radius:2px !important;
    box-sizing:border-box !important;
    position:relative !important;
}

body.choma-portal-app .choma-note-date-toggle .choma-calendar-glyph::before {
    content:"" !important;
    position:absolute !important;
    left:-2px !important;
    right:-2px !important;
    top:3px !important;
    border-top:2px solid #0c4772 !important;
}

body.choma-portal-app .choma-note-date-popover,
body.choma-portal-app .choma-note-picker-calendar {
    box-sizing:border-box !important;
    min-height:0 !important;
    height:auto !important;
    max-height:none !important;
    overflow:visible !important;
}

body.choma-portal-app .choma-note-picker-calendar {
    display:block !important;
    width:100% !important;
    padding:16px !important;
    background:#fff !important;
    border:1px solid #ccd9e4 !important;
    border-radius:18px !important;
    box-shadow:0 18px 50px rgba(12,71,114,.18) !important;
}

body.choma-portal-app .choma-note-picker-calendar .choma-picker-head {
    display:grid !important;
    grid-template-columns:40px minmax(0,1fr) 40px !important;
    align-items:center !important;
    gap:8px !important;
    margin:0 0 12px !important;
}

body.choma-portal-app .choma-note-picker-calendar .choma-picker-head strong {
    text-align:center !important;
    color:#092f4d !important;
    font-weight:700 !important;
}

body.choma-portal-app .choma-note-picker-calendar .choma-picker-weekdays,
body.choma-portal-app .choma-note-picker-calendar .choma-picker-days {
    display:grid !important;
    grid-template-columns:repeat(7,minmax(0,1fr)) !important;
    gap:4px !important;
}

body.choma-portal-app .choma-note-picker-calendar .choma-picker-weekdays span {
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
    min-width:0 !important;
    height:28px !important;
    color:#617486 !important;
    font-size:11px !important;
    font-weight:700 !important;
}

body.choma-portal-app .choma-note-picker-calendar .choma-picker-head button,
body.choma-portal-app .choma-note-picker-calendar .choma-picker-days button,
body.choma-portal-app .choma-note-picker-calendar .choma-picker-footer button {
    -webkit-appearance:none !important;
    appearance:none !important;
    margin:0 !important;
    border:0 !important;
    outline:0 !important;
    background:transparent !important;
    box-shadow:none !important;
    transform:none !important;
}

body.choma-portal-app .choma-note-picker-calendar .choma-picker-head button {
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
    width:40px !important;
    min-width:40px !important;
    height:40px !important;
    min-height:40px !important;
    padding:0 !important;
    color:#0c4772 !important;
    font-size:22px !important;
}

body.choma-portal-app .choma-note-picker-calendar .choma-picker-days button {
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
    min-width:0 !important;
    width:100% !important;
    height:38px !important;
    min-height:38px !important;
    padding:0 !important;
    border-radius:10px !important;
    color:#092f4d !important;
    font-size:14px !important;
    font-weight:600 !important;
}

body.choma-portal-app .choma-note-picker-calendar .choma-picker-days button:hover,
body.choma-portal-app .choma-note-picker-calendar .choma-picker-days button:focus-visible {
    background:#eef5fb !important;
}

body.choma-portal-app .choma-note-picker-calendar .choma-picker-days button.is-selected {
    background:linear-gradient(135deg,#1552cc 0%,#1678ff 100%) !important;
    color:#fff !important;
}

body.choma-portal-app .choma-note-picker-calendar .choma-picker-footer {
    display:flex !important;
    align-items:center !important;
    justify-content:space-between !important;
    gap:16px !important;
    margin-top:12px !important;
    padding-top:10px !important;
    border-top:1px solid #e1e8ef !important;
}

body.choma-portal-app .choma-note-picker-calendar .choma-picker-footer button {
    width:auto !important;
    min-width:0 !important;
    height:auto !important;
    min-height:0 !important;
    padding:6px 2px !important;
    color:#0d53c6 !important;
    font-size:14px !important;
    font-weight:700 !important;
}

body.choma-portal-login-page .choma-login__brand,
body.choma-portal-login-page .choma-login__form-wrap,
body.choma-portal-login-page .choma-login__footer {
    border-top:0 !important;
    border-bottom:0 !important;
}

body.choma-portal-login-page .choma-login__brand::before,
body.choma-portal-login-page .choma-login__brand::after,
body.choma-portal-login-page .choma-login__form-wrap::before,
body.choma-portal-login-page .choma-login__form-wrap::after,
body.choma-portal-login-page .choma-login__footer::before,
body.choma-portal-login-page .choma-login__footer::after {
    display:none !important;
    content:none !important;
}

@media (min-width:783px) {
    body.choma-portal-app .choma-note-date-popover {
        position:absolute !important;
        top:calc(100% + 10px) !important;
        right:0 !important;
        left:auto !important;
        width:360px !important;
        min-height:0 !important;
        height:auto !important;
        max-height:none !important;
        overflow:visible !important;
        padding:0 !important;
        z-index:120 !important;
    }
}

/* CHOMA Expert 1.8.96 — final mobile geometry and notes calendar repair. */
@media (max-width:760px) {
    body.choma-portal-app .choma-page-head .choma-btn,
    body.choma-portal-app .choma-mail-screen__back,
    body.choma-portal-app .choma-message-back,
    body.choma-portal-app .choma-mail-send-button,
    body.choma-portal-app .choma-calendar-submit,
    body.choma-portal-app .choma-note-submit,
    body.choma-portal-app .choma-document-submit,
    body.choma-portal-app .choma-portal-filters > button.choma-btn {
        width:100% !important;
    }

    /* Notes date row: checkbox, label and icon share one vertical centre. */
    body.choma-portal-app .choma-note-calendar-link {
        display:grid !important;
        grid-template-columns:auto minmax(0,1fr) 44px !important;
        column-gap:10px !important;
        align-items:center !important;
        min-height:54px !important;
        height:54px !important;
        padding:5px 8px 5px 12px !important;
        overflow:visible !important;
    }

    body.choma-portal-app .choma-note-calendar-link > * {
        align-self:center !important;
        margin-top:0 !important;
        margin-bottom:0 !important;
    }

    body.choma-portal-app .choma-note-date-toggle {
        width:44px !important;
        height:44px !important;
        min-width:44px !important;
        min-height:44px !important;
        padding:0 !important;
        display:grid !important;
        place-items:center !important;
        overflow:visible !important;
    }

    body.choma-portal-app .choma-note-date-popover:not([hidden]) {
        position:fixed !important;
        z-index:100000 !important;
        inset:50% auto auto 50% !important;
        transform:translate(-50%,-50%) !important;
        display:block !important;
        width:min(360px,calc(100vw - 32px)) !important;
        max-width:calc(100vw - 32px) !important;
        height:auto !important;
        min-height:0 !important;
        max-height:calc(100dvh - 32px) !important;
        padding:16px !important;
        overflow:auto !important;
        border:1px solid #d8e3ed !important;
        border-radius:20px !important;
        background:#fff !important;
        box-shadow:0 20px 60px rgba(8,43,72,.20) !important;
    }

    /* Login: remove both red rules and move the hero copy down to the card. */
    body.choma-portal-login-page .choma-login__brand,
    body.choma-portal-login-page .choma-login__form-wrap,
    body.choma-portal-login-page .choma-login__footer {
        border-top:0 !important;
        border-bottom:0 !important;
        box-shadow:none !important;
    }

    body.choma-portal-login-page .choma-login__brand::before,
    body.choma-portal-login-page .choma-login__brand::after,
    body.choma-portal-login-page .choma-login__form-wrap::before,
    body.choma-portal-login-page .choma-login__form-wrap::after,
    body.choma-portal-login-page .choma-login__footer::before,
    body.choma-portal-login-page .choma-login__footer::after {
        display:none !important;
        content:none !important;
        background:none !important;
        border:0 !important;
        box-shadow:none !important;
    }

    body.choma-portal-login-page .choma-login__brand > div {
        top:auto !important;
        bottom:8px !important;
        transform:none !important;
    }
}

body.choma-portal-app .choma-note-date-popover[hidden] {
    display:none !important;
}

body.choma-portal-app .choma-note-picker-calendar {
    display:block !important;
    height:auto !important;
    min-height:0 !important;
    max-height:none !important;
    overflow:visible !important;
}

body.choma-portal-app .choma-note-picker-calendar .choma-picker-head {
    display:flex !important;
    align-items:center !important;
    justify-content:space-between !important;
    gap:10px !important;
    margin:0 0 12px !important;
}

body.choma-portal-app .choma-note-picker-calendar .choma-picker-head button {
    appearance:none !important;
    border:0 !important;
    background:transparent !important;
    box-shadow:none !important;
    width:36px !important;
    height:36px !important;
    min-height:36px !important;
    padding:0 !important;
    color:#0c3760 !important;
    font-size:22px !important;
}

body.choma-portal-app .choma-note-picker-calendar .choma-picker-weekdays,
body.choma-portal-app .choma-note-picker-calendar .choma-picker-days {
    display:grid !important;
    grid-template-columns:repeat(7,minmax(0,1fr)) !important;
    gap:4px !important;
}

body.choma-portal-app .choma-note-picker-calendar .choma-picker-weekdays {
    margin:0 0 4px !important;
}

body.choma-portal-app .choma-note-picker-calendar .choma-picker-weekdays span {
    text-align:center !important;
    color:#6e8294 !important;
    font-size:12px !important;
    font-weight:700 !important;
    text-transform:none !important;
}

body.choma-portal-app .choma-note-picker-calendar .choma-picker-days button {
    appearance:none !important;
    border:0 !important;
    outline:0 !important;
    background:transparent !important;
    box-shadow:none !important;
    border-radius:10px !important;
    height:38px !important;
    min-height:38px !important;
    padding:0 !important;
    color:#0b3359 !important;
    font-size:15px !important;
    font-weight:600 !important;
}

body.choma-portal-app .choma-note-picker-calendar .choma-picker-days button:hover {
    background:#eef5fb !important;
}

body.choma-portal-app .choma-note-picker-calendar .choma-picker-days button.is-selected {
    color:#fff !important;
    background:linear-gradient(135deg,#174cce 0%,#0877ff 100%) !important;
    box-shadow:0 8px 18px rgba(19,93,218,.20) !important;
}

body.choma-portal-app .choma-note-picker-calendar .choma-picker-footer {
    display:flex !important;
    align-items:center !important;
    justify-content:space-between !important;
    gap:16px !important;
    margin-top:12px !important;
    padding-top:10px !important;
    border-top:1px solid #e4ebf1 !important;
}

body.choma-portal-app .choma-note-picker-calendar .choma-picker-footer button {
    appearance:none !important;
    border:0 !important;
    background:transparent !important;
    box-shadow:none !important;
    min-height:38px !important;
    height:38px !important;
    padding:0 6px !important;
    color:#0d58c8 !important;
    font-weight:700 !important;
}

body.choma-portal-app .choma-note-date-toggle .choma-calendar-glyph {
    display:block !important;
    visibility:visible !important;
    opacity:1 !important;
    width:18px !important;
    height:16px !important;
    min-width:18px !important;
    min-height:16px !important;
}

@media (min-width:761px) {
    body.choma-portal-app .choma-note-date-toggle {
        width:40px !important;
        height:40px !important;
        min-width:40px !important;
        min-height:40px !important;
        padding:0 !important;
        display:grid !important;
        place-items:center !important;
        overflow:visible !important;
    }

    body.choma-portal-app .choma-note-date-popover:not([hidden]) {
        display:block !important;
        position:absolute !important;
        top:calc(100% + 10px) !important;
        right:0 !important;
        left:auto !important;
        transform:none !important;
        width:360px !important;
        max-width:360px !important;
        height:auto !important;
        min-height:0 !important;
        max-height:none !important;
        padding:16px !important;
        overflow:visible !important;
        border:1px solid #d8e3ed !important;
        border-radius:20px !important;
        background:#fff !important;
        box-shadow:0 20px 60px rgba(8,43,72,.18) !important;
    }
}

body.choma-portal-app .choma-note-date-control {
    position:relative !important;
}

body.choma-portal-app .choma-note-date-toggle {
    display:grid !important;
    box-sizing:border-box !important;
    width:36px !important;
    min-width:36px !important;
    height:36px !important;
    min-height:36px !important;
    margin:0 !important;
    padding:0 !important;
    place-items:center !important;
    overflow:visible !important;
    border:1px solid #c9d8e3 !important;
    border-radius:7px !important;
    background:#fff !important;
    color:#0b3d79 !important;
    box-shadow:none !important;
}

body.choma-portal-app .choma-note-date-toggle .choma-calendar-glyph {
    position:relative !important;
    display:block !important;
    box-sizing:border-box !important;
    width:18px !important;
    height:16px !important;
    border:2px solid currentColor !important;
    border-radius:2px !important;
    background:transparent !important;
}

body.choma-portal-app .choma-note-date-toggle .choma-calendar-glyph::before {
    position:absolute !important;
    top:3px !important;
    right:-2px !important;
    left:-2px !important;
    display:block !important;
    height:2px !important;
    background:currentColor !important;
    content:"" !important;
}

body.choma-portal-app .choma-note-date-popover {
    position:absolute !important;
    z-index:9999 !important;
    top:calc(100% + 8px) !important;
    right:0 !important;
    display:block !important;
    box-sizing:border-box !important;
    width:340px !important;
    max-width:calc(100vw - 40px) !important;
    margin:0 !important;
    padding:16px !important;
    overflow:visible !important;
    border:1px solid #c9d8e3 !important;
    border-radius:16px !important;
    background:#fff !important;
    box-shadow:0 18px 44px rgba(8,35,61,.2) !important;
}

body.choma-portal-app .choma-note-date-popover[hidden] {
    display:none !important;
}

body.choma-portal-app .choma-note-picker-calendar,
body.choma-portal-app .choma-note-picker-calendar .choma-picker-calendar {
    display:block !important;
    width:100% !important;
}

body.choma-portal-app .choma-note-picker-calendar .choma-picker-head {
    display:grid !important;
    grid-template-columns:40px minmax(0,1fr) 40px !important;
    align-items:center !important;
    gap:8px !important;
    margin:0 0 12px !important;
}

body.choma-portal-app .choma-note-picker-calendar .choma-picker-head strong {
    color:#08233d !important;
    font-size:15px !important;
    font-weight:700 !important;
    line-height:1.2 !important;
    text-align:center !important;
}

body.choma-portal-app .choma-note-picker-calendar .choma-picker-head button,
body.choma-portal-app .choma-note-picker-calendar .choma-picker-days button,
body.choma-portal-app .choma-note-picker-calendar .choma-picker-footer button {
    appearance:none !important;
    -webkit-appearance:none !important;
    margin:0 !important;
    border:0 !important;
    background:transparent !important;
    color:#08233d !important;
    box-shadow:none !important;
    cursor:pointer !important;
}

body.choma-portal-app .choma-note-picker-calendar .choma-picker-head button {
    display:grid !important;
    width:40px !important;
    height:40px !important;
    padding:0 !important;
    place-items:center !important;
    border-radius:9px !important;
    font-size:18px !important;
}

body.choma-portal-app .choma-note-picker-calendar .choma-picker-weekdays,
body.choma-portal-app .choma-note-picker-calendar .choma-picker-days {
    display:grid !important;
    grid-template-columns:repeat(7,minmax(0,1fr)) !important;
    gap:3px !important;
    width:100% !important;
}

body.choma-portal-app .choma-note-picker-calendar .choma-picker-weekdays {
    margin-bottom:4px !important;
}

body.choma-portal-app .choma-note-picker-calendar .choma-picker-weekdays span {
    color:#647687 !important;
    font-size:11px !important;
    font-weight:700 !important;
    line-height:28px !important;
    text-align:center !important;
}

body.choma-portal-app .choma-note-picker-calendar .choma-picker-days button {
    display:grid !important;
    width:100% !important;
    min-width:0 !important;
    height:36px !important;
    min-height:36px !important;
    padding:0 !important;
    place-items:center !important;
    border-radius:9px !important;
    font-size:14px !important;
    font-weight:600 !important;
}

body.choma-portal-app .choma-note-picker-calendar .choma-picker-days button:hover {
    background:#eef5fb !important;
}

body.choma-portal-app .choma-note-picker-calendar .choma-picker-days button.is-selected {
    background:linear-gradient(135deg,#114cc9 0%,#1677ff 100%) !important;
    color:#fff !important;
}

body.choma-portal-app .choma-note-picker-calendar .choma-picker-footer {
    display:flex !important;
    align-items:center !important;
    justify-content:space-between !important;
    gap:12px !important;
    margin-top:12px !important;
    padding-top:10px !important;
    border-top:1px solid #dce5ed !important;
}

body.choma-portal-app .choma-note-picker-calendar .choma-picker-footer button {
    padding:6px 4px !important;
    color:#0d58c8 !important;
    font-size:13px !important;
    font-weight:700 !important;
}

@media (max-width:760px) {
    /* Notes calendar: centered date row and a clean, unclipped mobile popover. */
    body.choma-portal-app .choma-note-calendar-link {
        display:flex !important;
        min-height:48px !important;
        align-items:center !important;
    }

    body.choma-portal-app .choma-note-calendar-link > * {
        align-self:center !important;
    }

    body.choma-portal-app .choma-note-date-popover {
        position:absolute !important;
        top:calc(100% + 10px) !important;
        right:0 !important;
        left:auto !important;
        width:min(340px,calc(100vw - 40px)) !important;
        max-width:calc(100vw - 40px) !important;
        padding:14px !important;
    }

    /* Login: no decorative red rules; the intro sits close to the login card. */
    body.choma-portal-login-page .choma-login__brand::before,
    body.choma-portal-login-page .choma-login__brand::after,
    body.choma-portal-login-page .choma-login__form-wrap::before,
    body.choma-portal-login-page .choma-login__form-wrap::after,
    body.choma-portal-login-page .choma-login__footer::before,
    body.choma-portal-login-page .choma-login__footer::after {
        display:none !important;
        content:none !important;
    }

    body.choma-portal-login-page .choma-login__brand > div {
        bottom:0 !important;
    }
}

/* CHOMA Expert 1.8.96 — LAST authoritative override. Keep this block last. */
@media (max-width: 782px) {
    /* Jedyny standard wysokości głównych CTA w widoku mobilnym. */
    body.choma-portal-app .choma-page-head > .choma-btn,
    body.choma-portal-app .choma-module-head > .choma-btn,
    body.choma-portal-app .choma-mail-screen__head > .choma-btn,
    body.choma-portal-app.choma-view-leads .choma-main form.choma-portal-filters > button.choma-btn.choma-btn--primary,
    body.choma-portal-app .choma-mail-screen__new,
    body.choma-portal-app .choma-message-back,
    body.choma-portal-app .choma-mail-screen__back,
    body.choma-portal-app .choma-document-import-button {
        box-sizing:border-box !important;
        height:34px !important;
        min-height:34px !important;
        max-height:34px !important;
        padding:0 20px !important;
        display:flex !important;
        align-items:center !important;
        justify-content:center !important;
        line-height:1 !important;
        font-size:15px !important;
        font-weight:780 !important;
        font-family:Geist,Arial,sans-serif !important;
        letter-spacing:1.6px !important;
    }

    body.choma-portal-app .choma-mail-send-button,
    body.choma-portal-app .choma-calendar-submit,
    body.choma-portal-app .choma-note-submit,
    body.choma-portal-app .choma-document-submit,
    body.choma-portal-app .choma-tool-assistant__submit {
        box-sizing:border-box !important;
        height:34px !important;
        min-height:34px !important;
        max-height:34px !important;
        padding:0 20px !important;
        display:flex !important;
        align-items:center !important;
        justify-content:center !important;
        line-height:1 !important;
        font-size:15px !important;
        font-weight:780 !important;
        font-family:Geist,Arial,sans-serif !important;
        letter-spacing:1.6px !important;
    }

    body.choma-portal-app .choma-mobile-module-menu summary {
        font-size:14px !important;
        font-weight:780 !important;
        font-family:Geist,Arial,sans-serif !important;
        letter-spacing:1.5px !important;
    }

    body.choma-portal-app .choma-user-menu > summary > span {
        letter-spacing:1.5px !important;
    }

    body.choma-portal-app.choma-view-documents .choma-document-import-button > span {
        font-size:15px !important;
        font-weight:780 !important;
        font-family:Geist,Arial,sans-serif !important;
        letter-spacing:1.6px !important;
    }

    body.choma-portal-app .choma-datetime-control {
        box-sizing:border-box !important;
        min-width:0 !important;
        max-width:100% !important;
        grid-template-columns:minmax(0,1fr) 44px !important;
    }

    body.choma-portal-app .choma-datetime-display {
        box-sizing:border-box !important;
        min-width:0 !important;
        max-width:100% !important;
    }

    body.choma-portal-app .choma-main .choma-datetime-toggle {
        position:static !important;
        box-sizing:border-box !important;
        width:44px !important;
        min-width:44px !important;
        max-width:44px !important;
        height:46px !important;
        min-height:46px !important;
        max-height:46px !important;
        margin:0 !important;
        padding:0 !important;
        display:flex !important;
        align-items:center !important;
        justify-content:center !important;
    }

    body.choma-portal-app .choma-note-calendar-link {
        min-height:56px !important;
        height:56px !important;
        padding:0 14px !important;
        display:flex !important;
        align-items:center !important;
        gap:12px !important;
        overflow:visible !important;
    }

    body.choma-portal-app .choma-note-calendar-link > * {
        margin-top:0 !important;
        margin-bottom:0 !important;
        align-self:center !important;
    }

    body.choma-portal-app .choma-note-date-control {
        position:relative !important;
        margin-left:auto !important;
        width:44px !important;
        height:44px !important;
        flex:0 0 44px !important;
        display:flex !important;
        align-items:center !important;
        justify-content:center !important;
    }

    body.choma-portal-app .choma-note-date-toggle {
        position:static !important;
        box-sizing:border-box !important;
        width:44px !important;
        height:44px !important;
        min-width:44px !important;
        min-height:44px !important;
        margin:0 !important;
        padding:0 !important;
        display:flex !important;
        align-items:center !important;
        justify-content:center !important;
        border:1px solid #c8d5df !important;
        border-radius:10px !important;
        background:#fff !important;
        box-shadow:none !important;
    }

    body.choma-portal-app .choma-calendar-glyph {
        display:block !important;
        width:18px !important;
        height:16px !important;
        border:2px solid #0f4f80 !important;
        border-radius:2px !important;
        position:relative !important;
        box-sizing:border-box !important;
    }

    body.choma-portal-app .choma-calendar-glyph::before {
        content:"" !important;
        position:absolute !important;
        left:-2px !important;
        right:-2px !important;
        top:3px !important;
        border-top:2px solid #0f4f80 !important;
    }

    body.choma-portal-app .choma-note-date-popover {
        position:fixed !important;
        z-index:100000 !important;
        top:50% !important;
        left:50% !important;
        right:auto !important;
        bottom:auto !important;
        transform:translate(-50%,-50%) !important;
        width:min(360px,calc(100vw - 32px)) !important;
        max-width:calc(100vw - 32px) !important;
        height:auto !important;
        max-height:calc(100vh - 48px) !important;
        overflow:auto !important;
        padding:18px !important;
        border:1px solid #cfdae4 !important;
        border-radius:18px !important;
        background:#fff !important;
        box-shadow:0 22px 60px rgba(7,44,73,.22) !important;
    }

    body.choma-portal-app .choma-note-date-popover .choma-note-picker-calendar,
    body.choma-portal-app .choma-note-date-popover .choma-picker-calendar {
        width:100% !important;
        padding:0 !important;
        border:0 !important;
        border-radius:0 !important;
        background:#fff !important;
        box-shadow:none !important;
    }

    body.choma-portal-app .choma-note-date-popover .choma-picker-head {
        display:grid !important;
        grid-template-columns:40px 1fr 40px !important;
        align-items:center !important;
        gap:8px !important;
        margin:0 0 14px !important;
    }

    body.choma-portal-app .choma-note-date-popover .choma-picker-head button {
        width:40px !important;
        height:40px !important;
        min-width:40px !important;
        padding:0 !important;
        border:1px solid #d5dee6 !important;
        border-radius:10px !important;
        background:#fff !important;
        color:#0c3657 !important;
        box-shadow:none !important;
    }

    body.choma-portal-app .choma-note-date-popover .choma-picker-weekdays,
    body.choma-portal-app .choma-note-date-popover .choma-picker-days {
        display:grid !important;
        grid-template-columns:repeat(7,minmax(0,1fr)) !important;
        gap:4px !important;
    }

    body.choma-portal-app .choma-note-date-popover .choma-picker-weekdays > * {
        padding:5px 0 !important;
        text-align:center !important;
        color:#607789 !important;
        font-size:12px !important;
        font-weight:700 !important;
    }

    body.choma-portal-app .choma-note-date-popover .choma-picker-days button {
        aspect-ratio:1 !important;
        width:100% !important;
        height:auto !important;
        min-width:0 !important;
        min-height:0 !important;
        padding:0 !important;
        border:0 !important;
        border-radius:10px !important;
        background:transparent !important;
        color:#102d44 !important;
        box-shadow:none !important;
        font-size:15px !important;
        font-weight:600 !important;
    }

    body.choma-portal-app .choma-note-date-popover .choma-picker-days button.is-selected,
    body.choma-portal-app .choma-note-date-popover .choma-picker-days button[aria-selected="true"] {
        color:#fff !important;
        background:linear-gradient(135deg,#164bbb 0%,#1478ff 100%) !important;
    }

    body.choma-portal-app .choma-note-date-popover .choma-picker-footer {
        display:flex !important;
        justify-content:space-between !important;
        gap:12px !important;
        margin-top:14px !important;
        padding-top:12px !important;
        border-top:1px solid #e3e9ee !important;
    }

    body.choma-portal-app .choma-note-date-popover .choma-picker-footer button {
        height:auto !important;
        min-height:0 !important;
        padding:8px 4px !important;
        border:0 !important;
        background:transparent !important;
        box-shadow:none !important;
        color:#075bc7 !important;
    }

    body.choma-portal-login-page .choma-login__brand::before,
    body.choma-portal-login-page .choma-login__brand::after,
    body.choma-portal-login-page .choma-login__form-wrap::before,
    body.choma-portal-login-page .choma-login__form-wrap::after,
    body.choma-portal-login-page .choma-login__footer::before,
    body.choma-portal-login-page .choma-login__footer::after {
        display:none !important;
        content:none !important;
        border:0 !important;
    }

    body.choma-portal-login-page .choma-login__brand > div {
        bottom:0 !important;
    }

    body.choma-portal-app.choma-view-notes .choma-note-manual-form > .choma-note-calendar-link {
        display:grid !important;
        grid-template-columns:18px minmax(0,1fr) 44px !important;
        height:auto !important;
        min-height:70px !important;
        align-items:center !important;
        overflow:visible !important;
    }
    body.choma-portal-app.choma-view-notes .choma-note-datetime-control {
        grid-column:3 !important;
        grid-row:1 !important;
        grid-template-columns:44px !important;
        width:44px !important;
        min-width:44px !important;
        max-width:44px !important;
        align-self:center !important;
        overflow:visible !important;
    }
    body.choma-portal-app.choma-view-notes .choma-note-datetime-control .choma-datetime-display {
        display:none !important;
    }
    body.choma-portal-app.choma-view-notes .choma-note-datetime-control .choma-datetime-toggle {
        grid-column:1 !important;
        border:1px solid #cfdae3 !important;
        border-radius:6px !important;
    }
    body.choma-portal-app.choma-view-notes .choma-note-datetime-control .choma-datetime-popover {
        position:fixed !important;
        z-index:100000 !important;
        top:50% !important;
        right:auto !important;
        bottom:auto !important;
        left:50% !important;
        width:min(440px,calc(100vw - 32px)) !important;
        max-width:calc(100vw - 32px) !important;
        max-height:calc(100vh - 32px) !important;
        overflow:auto !important;
        transform:translate(-50%,-50%) !important;
    }

    body.choma-portal-login-page .choma-login__brand > div { transform:none !important; }
    body.choma-portal-login-page .choma-access-submit,
    body.choma-password-recovery-page .choma-access-submit {
        height:42px !important;
        min-height:42px !important;
    }

    /* Zachowuje miejsce właściwej linii nad stopką, rozszerzając ją na pełną szerokość. */
    body.choma-portal-login-page .choma-login__footer-brand::after {
        display:block !important;
        position:fixed !important;
        top:87svh !important;
        right:auto !important;
        left:0 !important;
        width:100% !important;
        height:1px !important;
        background:#df0038 !important;
        content:"" !important;
    }
    body.choma-password-recovery-page .choma-password-recovery::after {
        position:fixed !important;
        z-index:0 !important;
        top:87svh !important;
        right:0 !important;
        left:0 !important;
        width:100% !important;
        height:1px !important;
        background:#df0038 !important;
        content:"" !important;
    }

    /* Tylko osadzony w Notatkach pełny komponent wyboru terminu: około 15% niższy. */
    body.choma-portal-app.choma-view-notes .choma-note-datetime-control .choma-datetime-popover {
        padding:12px !important;
    }
    body.choma-portal-app.choma-view-notes .choma-note-datetime-control .choma-picker-layout {
        gap:10px !important;
    }
    body.choma-portal-app.choma-view-notes .choma-note-datetime-control .choma-picker-head {
        grid-template-columns:34px minmax(0,1fr) 34px !important;
        margin-bottom:6px !important;
    }
    body.choma-portal-app.choma-view-notes .choma-note-datetime-control .choma-picker-head button {
        width:34px !important;
        height:34px !important;
        min-height:34px !important;
    }
    body.choma-portal-app.choma-view-notes .choma-note-datetime-control :is(.choma-picker-weekdays,.choma-picker-days) {
        gap:2px !important;
    }
    body.choma-portal-app.choma-view-notes .choma-note-datetime-control .choma-picker-weekdays > * {
        padding:3px 0 !important;
    }
    body.choma-portal-app.choma-view-notes .choma-note-datetime-control .choma-picker-days button {
        aspect-ratio:auto !important;
        height:36px !important;
        min-height:36px !important;
    }
    body.choma-portal-app.choma-view-notes .choma-note-datetime-control .choma-picker-time {
        padding:0 0 0 8px !important;
        border-top:0 !important;
        border-left:1px solid #e0e7ee !important;
    }
    body.choma-portal-app.choma-view-notes .choma-note-datetime-control .choma-picker-time-unit {
        grid-template-rows:29px 34px 13px 29px !important;
        gap:3px !important;
    }
    body.choma-portal-app.choma-view-notes .choma-note-datetime-control .choma-picker-time-unit button {
        width:34px !important;
        min-height:29px !important;
    }
}

@media (min-width:783px) {
    body.choma-portal-app .choma-page-head > .choma-btn,
    body.choma-portal-app .choma-module-head > .choma-btn,
    body.choma-portal-app .choma-mail-screen__head > .choma-btn,
    body.choma-portal-app .choma-mail-screen__new,
    body.choma-portal-app .choma-message-back,
    body.choma-portal-app .choma-mail-screen__back,
    body.choma-portal-app .choma-document-import-button {
        align-items:center !important;
        justify-content:center !important;
        text-align:center !important;
    }

    body.choma-portal-app.choma-view-notes .choma-note-editor,
    body.choma-portal-app.choma-view-notes .choma-note-manual-form,
    body.choma-portal-app.choma-view-notes .choma-note-calendar-link {
        overflow:visible !important;
    }

    body.choma-portal-app.choma-view-notes .choma-note-datetime-control {
        z-index:100 !important;
    }

    body.choma-portal-app.choma-view-notes .choma-note-datetime-control .choma-datetime-popover {
        z-index:10000 !important;
        right:0 !important;
        left:auto !important;
        width:min(440px,calc(100vw - 64px)) !important;
        height:auto !important;
        max-height:none !important;
        overflow:visible !important;
    }

    body.choma-portal-app .choma-note-date-control {
        position:relative !important;
        display:inline-flex !important;
        align-items:center !important;
        justify-content:center !important;
    }

    body.choma-portal-app .choma-note-date-toggle {
        display:inline-flex !important;
        align-items:center !important;
        justify-content:center !important;
        width:44px !important;
        height:44px !important;
        padding:0 !important;
    }

    body.choma-portal-app .choma-calendar-glyph {
        display:block !important;
        width:18px !important;
        height:16px !important;
        border:2px solid #0f4f80 !important;
        border-radius:2px !important;
        position:relative !important;
        box-sizing:border-box !important;
    }

    body.choma-portal-app .choma-calendar-glyph::before {
        content:"" !important;
        position:absolute !important;
        left:-2px !important;
        right:-2px !important;
        top:3px !important;
        border-top:2px solid #0f4f80 !important;
    }

    body.choma-portal-app .choma-note-date-popover {
        position:absolute !important;
        z-index:10000 !important;
        top:calc(100% + 10px) !important;
        right:0 !important;
        left:auto !important;
        width:360px !important;
        height:auto !important;
        max-height:none !important;
        overflow:visible !important;
        padding:18px !important;
        border-radius:16px !important;
        background:#fff !important;
    }
}

/* Spójne pozycjonowanie na telefonie: nawigacja, poczta oraz wybór terminu. */
@media (max-width:782px) {
    body.choma-portal-app { --choma-mobile-nav:50px !important; }
    body.choma-portal-app .choma-mobile-nav a { height:50px !important; min-height:50px !important; font-size:12px !important; }
    body.choma-portal-app:is(.choma-view-mail,.choma-view-message) .choma-mail-tabs { grid-template-columns:minmax(0,52%) minmax(0,1fr) 124px !important; }
    body.choma-portal-app:is(.choma-view-mail,.choma-view-message) .choma-mail-tabs > a:first-child { grid-column:3 !important; font-size:13.5px !important; }
    body.choma-portal-app:is(.choma-view-mail,.choma-view-message) .choma-mail-tabs > a:not(:first-child) { grid-column:1 !important; padding-left:18px !important; }
    body.choma-portal-app:is(.choma-view-mail,.choma-view-message) .choma-mail-tabs > a:not(:first-child) > i { left:4px !important; }
    body.choma-portal-app .choma-datetime-control:not(.choma-note-datetime-control) { position:relative !important; display:block !important; }
    body.choma-portal-app .choma-datetime-control:not(.choma-note-datetime-control) .choma-datetime-display { padding-right:52px !important; border-right:1px solid #cfdae3 !important; border-radius:6px !important; }
    body.choma-portal-app .choma-main .choma-datetime-control:not(.choma-note-datetime-control) .choma-datetime-toggle { position:absolute !important; top:1px !important; right:1px !important; bottom:1px !important; left:auto !important; width:44px !important; min-width:44px !important; height:auto !important; min-height:0 !important; max-height:none !important; border:0 !important; border-radius:0 5px 5px 0 !important; background:transparent !important; }
    body.choma-portal-app.choma-view-notes .choma-note-datetime-control .choma-datetime-toggle,
    body.choma-portal-app .choma-note-date-toggle { border:0 !important; background:transparent !important; box-shadow:none !important; }
    body.choma-portal-app.choma-view-notes .choma-note-manual-form > .choma-note-calendar-link { grid-template-columns:18px minmax(92px,1fr) minmax(124px,42%) !important; height:46px !important; min-height:46px !important; padding:3px 9px !important; align-items:center !important; }
    body.choma-portal-app.choma-view-notes .choma-note-datetime-control { grid-column:3 !important; grid-row:1 !important; display:block !important; width:100% !important; min-width:0 !important; max-width:none !important; height:34px !important; min-height:34px !important; }
    body.choma-portal-app.choma-view-notes .choma-note-datetime-control .choma-datetime-display { display:block !important; box-sizing:border-box !important; width:100% !important; height:34px !important; min-height:34px !important; max-height:34px !important; padding:0 46px 0 10px !important; border:1px solid #cfdae3 !important; border-radius:6px !important; font-size:11px !important; }
    body.choma-portal-app.choma-view-notes .choma-note-datetime-control .choma-datetime-toggle { position:absolute !important; top:1px !important; right:1px !important; bottom:1px !important; left:auto !important; width:42px !important; min-width:42px !important; height:auto !important; min-height:0 !important; max-height:none !important; border:0 !important; border-radius:0 5px 5px 0 !important; background:transparent !important; box-shadow:none !important; display:flex !important; align-items:center !important; justify-content:center !important; }
    body.choma-portal-app.choma-view-notes .choma-note-datetime-control .choma-calendar-glyph { position:relative !important; inset:auto !important; width:20px !important; min-width:20px !important; max-width:20px !important; height:16px !important; margin:0 !important; border-width:2px !important; transform:none !important; }
    body.choma-portal-app .choma-datetime-popover { width:min(440px,calc(100vw - 24px)) !important; max-width:calc(100vw - 24px) !important; }
    body.choma-portal-app .choma-picker-layout { display:grid !important; grid-template-columns:minmax(0,1fr) 92px !important; gap:10px !important; align-items:stretch !important; }
    body.choma-portal-app .choma-picker-time { display:grid !important; grid-template-columns:repeat(2,minmax(0,1fr)) !important; align-content:center !important; padding:0 0 0 8px !important; border-top:0 !important; border-left:1px solid #e0e7ee !important; }
    body.choma-portal-app .choma-picker-today { grid-column:1 / -1 !important; justify-self:end !important; padding:4px 0 8px !important; }
    body.choma-portal-app .choma-note-date-popover .choma-picker-footer { justify-content:flex-end !important; }
}

@media (min-width:783px) {
    body.choma-portal-app.choma-view-calendar :is(.choma-calendar-create,.choma-calendar-create form,.choma-form-row),
    body.choma-portal-app.choma-view-notes :is(.choma-note-editor,.choma-note-manual-form,.choma-note-calendar-link) { overflow:visible !important; }
    body.choma-portal-app.choma-view-calendar .choma-calendar-create,
    body.choma-portal-app.choma-view-notes .choma-note-editor { position:relative !important; z-index:20 !important; }
    body.choma-portal-app :is(.choma-datetime-control,.choma-note-datetime-control) { position:relative !important; z-index:30 !important; }
    body.choma-portal-app .choma-datetime-control { display:block !important; }
    body.choma-portal-app .choma-datetime-display { padding-right:52px !important; border-right:1px solid #cfdae3 !important; border-radius:6px !important; }
    body.choma-portal-app .choma-main .choma-datetime-toggle { position:absolute !important; top:1px !important; right:1px !important; bottom:1px !important; left:auto !important; width:44px !important; min-width:44px !important; height:auto !important; min-height:0 !important; border:0 !important; border-radius:0 5px 5px 0 !important; background:transparent !important; }
    body.choma-portal-app :is(.choma-datetime-popover,.choma-note-date-popover) { z-index:10000 !important; width:550px !important; max-width:calc(100vw - 64px) !important; height:auto !important; max-height:none !important; overflow:visible !important; }
    body.choma-portal-app .choma-picker-layout { display:grid !important; grid-template-columns:minmax(0,1fr) 134px !important; align-items:stretch !important; }
    body.choma-portal-app .choma-picker-time { display:grid !important; grid-template-columns:repeat(2,minmax(0,1fr)) !important; align-content:center !important; }
    body.choma-portal-app .choma-picker-today { grid-column:1 / -1 !important; justify-self:end !important; }
}

/* 1.8.121: jednolite tło bez pasów na logowaniu i odzyskiwaniu dostępu. */
body.choma-portal-login-page.choma-theme-opensmart,
body.choma-portal-login-page.choma-theme-opensmart .choma-login,
body.choma-password-recovery-page.choma-theme-opensmart,
body.choma-password-recovery-page.choma-theme-opensmart .choma-password-recovery {
    background:linear-gradient(145deg,#05295f 0%,#084b9d 52%,#0b69d8 100%) !important;
}
body.choma-portal-login-page.choma-theme-navy,
body.choma-portal-login-page.choma-theme-navy .choma-login,
body.choma-password-recovery-page.choma-theme-navy,
body.choma-password-recovery-page.choma-theme-navy .choma-password-recovery {
    background:linear-gradient(145deg,#061b48 0%,#071f55 48%,#0839b9 100%) !important;
}
body.choma-portal-login-page.choma-theme-graphite,
body.choma-portal-login-page.choma-theme-graphite .choma-login,
body.choma-password-recovery-page.choma-theme-graphite,
body.choma-password-recovery-page.choma-theme-graphite .choma-password-recovery {
    background:linear-gradient(145deg,#041d34 0%,#073756 58%,#0a4364 100%) !important;
}
body.choma-portal-login-page.choma-theme-graphite-premium,
body.choma-portal-login-page.choma-theme-graphite-premium .choma-login,
body.choma-password-recovery-page.choma-theme-graphite-premium,
body.choma-password-recovery-page.choma-theme-graphite-premium .choma-password-recovery {
    background:linear-gradient(145deg,#111310 0%,#292c27 55%,#4b4e48 100%) !important;
}
body.choma-portal-login-page[class*="choma-theme-"] :is(.choma-login__brand,.choma-login__footer-brand) {
    background:transparent !important;
}
body.choma-portal-login-page.choma-theme-opensmart .choma-access-submit,
body.choma-password-recovery-page.choma-theme-opensmart .choma-access-submit {
    border-left:8px solid #d3163a !important;
    background:linear-gradient(100deg,#0b49c8 0%,#0b59e6 52%,#0c6cff 100%) !important;
    box-shadow:0 12px 26px rgba(11,89,230,.24) !important;
}
body.choma-portal-login-page.choma-theme-navy .choma-access-submit,
body.choma-password-recovery-page.choma-theme-navy .choma-access-submit {
    border-left:8px solid #d3163a !important;
    background:linear-gradient(90deg,#071f55 0%,#082879 52%,#0839b9 100%) !important;
    box-shadow:0 12px 26px rgba(7,31,85,.26) !important;
}
body.choma-portal-login-page.choma-theme-graphite .choma-access-submit,
body.choma-password-recovery-page.choma-theme-graphite .choma-access-submit {
    border-left:8px solid #d3163a !important;
    background:linear-gradient(100deg,#062a43 0%,#0e5f86 100%) !important;
    box-shadow:0 12px 26px rgba(6,42,67,.26) !important;
}
body.choma-portal-login-page.choma-theme-graphite-premium .choma-access-submit,
body.choma-password-recovery-page.choma-theme-graphite-premium .choma-access-submit {
    border-left:8px solid #d3163a !important;
    background:linear-gradient(100deg,#111310 0%,#292c27 50%,#4b4e48 100%) !important;
    box-shadow:0 12px 26px rgba(17,19,16,.26) !important;
}
body.choma-portal-login-page.choma-theme-opensmart .choma-login__footer-brand .choma-login__technology,
body.choma-password-recovery-page.choma-theme-opensmart .choma-password-recovery__technology {
    border-color:rgba(255,255,255,.38) !important;
    background:linear-gradient(135deg,rgba(3,27,60,.56) 0%,rgba(8,72,145,.68) 100%) !important;
    box-shadow:0 10px 28px rgba(0,22,52,.24),inset 0 1px 0 rgba(255,255,255,.13) !important;
}
body.choma-portal-login-page[class*="choma-theme-"] .choma-login__footer-brand .choma-login__technology,
body.choma-password-recovery-page[class*="choma-theme-"] .choma-password-recovery__technology {
    border:1px solid rgba(255,255,255,.82) !important;
    box-shadow:none !important;
}
body.choma-portal-login-page[class*="choma-theme-"] .choma-login__footer-brand .choma-login__technology-icon,
body.choma-password-recovery-page[class*="choma-theme-"] .choma-password-recovery__technology img {
    box-sizing:border-box !important;
    border:1px solid rgba(255,255,255,.86) !important;
}

/* Mobilne MENU: jasny, czytelny panel; wariant jest widoczny na aktywnym kaflu. */
@media (max-width:782px) {
    body.choma-portal-app .choma-mobile-module-menu[open]::before {
        background:rgba(8,28,46,.22) !important;
        backdrop-filter:blur(3px) !important;
    }
    body.choma-portal-app .choma-mobile-module-menu nav {
        top:calc(var(--choma-mobile-header) + 6px) !important;
        bottom:auto !important;
        grid-template-columns:repeat(2,minmax(0,1fr)) !important;
        width:auto !important;
        height:calc(100dvh - var(--choma-mobile-header) - var(--choma-mobile-nav) - 18px) !important;
        max-height:none !important;
        align-content:space-between !important;
        row-gap:clamp(3px,.75dvh,7px) !important;
        column-gap:clamp(12px,3vw,18px) !important;
        padding:clamp(9px,1.6dvh,13px) !important;
        overflow:hidden !important;
        overscroll-behavior:none !important;
        border:1px solid var(--line,#d5e0e8) !important;
        background:var(--choma-theme-surface,#f8fafc) !important;
        box-shadow:0 22px 54px rgba(4,24,54,.24) !important;
    }
    body.choma-portal-app .choma-mobile-module-menu__group {
        grid-column:1 / -1 !important;
        margin:clamp(1px,.45dvh,4px) 5px 0 !important;
        color:var(--muted,#647587) !important;
        font-size:8px !important;
    }
    body.choma-portal-app .choma-mobile-module-menu nav a {
        min-width:0 !important;
        min-height:clamp(31px,5dvh,39px) !important;
        border:1px solid var(--line,#d5e0e8) !important;
        border-left:4px solid var(--choma-theme-edge,#d3163a) !important;
        background:var(--choma-theme-soft,#eef4f8) !important;
        color:var(--ink,#102c42) !important;
        font-size:13px !important;
        box-shadow:none !important;
    }
    body.choma-portal-app.choma-theme-graphite .choma-mobile-module-menu nav {
        background:#f2f7f8 !important;
    }
    body.choma-portal-app.choma-theme-graphite .choma-mobile-module-menu nav a:not(.is-active) {
        background:#e5eef0 !important;
    }
    body.choma-portal-app.choma-theme-navy .choma-mobile-module-menu nav {
        background:#f1f3f8 !important;
    }
    body.choma-portal-app.choma-theme-navy .choma-mobile-module-menu nav a:not(.is-active) {
        background:#e6eaf4 !important;
    }
    body.choma-portal-app .choma-mobile-module-menu nav a:is(:hover,:focus-visible) {
        background:#fff !important;
        color:var(--ink,#102c42) !important;
    }
    body.choma-portal-app .choma-mobile-module-menu nav a.is-active {
        border-color:var(--choma-theme-primary-dark,#0a4bd0) !important;
        border-left-color:var(--choma-theme-edge,#d3163a) !important;
        background:var(--oso-gradient,linear-gradient(135deg,#16488b 0%,#0871ff 100%)) !important;
        color:#fff !important;
        box-shadow:0 8px 20px var(--choma-theme-shadow,rgba(12,90,255,.18)) !important;
    }
    body.choma-portal-app .choma-user-menu > summary > span {
        border:2px solid #d3163a !important;
    }
    html.choma-mobile-menu-open,
    body.choma-mobile-menu-open {
        overflow:hidden !important;
        overscroll-behavior:none !important;
    }
    body.choma-mobile-menu-open {
        position:fixed !important;
        top:var(--choma-menu-scroll-offset,0) !important;
        right:0 !important;
        left:0 !important;
        width:100% !important;
    }
}

/* 1.8.125: termin Notatek i akcje Poczty bez historycznych kontrolek. */
body.choma-portal-app.choma-view-notes .choma-note-manual-form > button.choma-note-submit {
    box-sizing:border-box !important;
    height:34px !important;
    min-height:34px !important;
    max-height:34px !important;
    padding-top:0 !important;
    padding-bottom:0 !important;
    align-items:center !important;
    justify-content:center !important;
}

body.choma-portal-app .choma-message-back,
body.choma-portal-app .choma-message__actions .choma-btn,
body.choma-portal-app .choma-message__actions button,
body.choma-portal-app .choma-message__actions .choma-compose > summary {
    box-sizing:border-box !important;
    display:inline-flex !important;
    height:38px !important;
    min-height:38px !important;
    max-height:38px !important;
    align-items:center !important;
    justify-content:center !important;
    padding:0 16px !important;
    border:1px solid var(--choma-theme-primary-dark,#0a4bd0) !important;
    border-left:4px solid var(--choma-theme-edge,#d3163a) !important;
    border-radius:7px !important;
    background:var(--oso-gradient,linear-gradient(135deg,#16488b 0%,#0871ff 100%)) !important;
    color:#fff !important;
    font-family:Geist,Arial,sans-serif !important;
    font-size:11px !important;
    font-weight:780 !important;
    letter-spacing:1.2px !important;
    line-height:1 !important;
    text-decoration:none !important;
    white-space:nowrap !important;
    box-shadow:0 6px 16px var(--choma-theme-shadow,rgba(12,90,255,.18)) !important;
}
body.choma-portal-app .choma-message-back::after,
body.choma-portal-app .choma-message__actions .choma-btn::after,
body.choma-portal-app .choma-message__actions button::after,
body.choma-portal-app .choma-message__actions .choma-compose > summary::after {
    display:none !important;
    content:none !important;
}

@media (min-width:783px) {
    body.choma-portal-app.choma-view-notes .choma-main .choma-note-manual-form > label.choma-note-calendar-link {
        box-sizing:border-box !important;
        height:50px !important;
        min-height:50px !important;
        grid-template-columns:18px minmax(0,1fr) minmax(240px,320px) !important;
        align-items:center !important;
        padding-top:5px !important;
        padding-bottom:5px !important;
    }
    body.choma-portal-app.choma-view-notes .choma-main .choma-note-manual-form > label.choma-note-calendar-link > .choma-note-datetime-control {
        position:relative !important;
        grid-column:3 !important;
        align-self:center !important;
        box-sizing:border-box !important;
        width:100% !important;
        height:38px !important;
        min-height:38px !important;
        max-height:38px !important;
        margin:0 !important;
    }
    body.choma-portal-app.choma-view-notes .choma-note-datetime-control > .choma-datetime-display {
        display:block !important;
        box-sizing:border-box !important;
        width:100% !important;
        height:38px !important;
        min-height:38px !important;
        max-height:38px !important;
        margin:0 !important;
        padding:0 46px 0 14px !important;
    }
    body.choma-portal-app.choma-view-notes .choma-note-datetime-control > button.choma-datetime-toggle {
        position:absolute !important;
        top:1px !important;
        right:1px !important;
        bottom:1px !important;
        left:auto !important;
        box-sizing:border-box !important;
        display:flex !important;
        width:44px !important;
        min-width:44px !important;
        height:auto !important;
        min-height:0 !important;
        max-height:none !important;
        margin:0 !important;
        padding:0 !important;
        border:0 !important;
        background:transparent !important;
        box-shadow:none !important;
        align-items:center !important;
        justify-content:center !important;
    }
    body.choma-portal-app.choma-view-notes .choma-note-datetime-control > button.choma-datetime-toggle::before,
    body.choma-portal-app.choma-view-notes .choma-note-datetime-control > button.choma-datetime-toggle::after {
        display:none !important;
        content:none !important;
    }
    body.choma-portal-app.choma-view-mail .choma-mail-folder-tabs {
        display:flex !important;
        align-items:center !important;
    }
    body.choma-portal-app.choma-view-mail .choma-mail-folder-tabs > .choma-mail-folder-tabs__new {
        display:inline-flex !important;
        box-sizing:border-box !important;
        width:236px !important;
        min-width:236px !important;
        max-width:236px !important;
        height:38px !important;
        min-height:38px !important;
        max-height:38px !important;
        margin-left:auto !important;
        padding:0 20px !important;
        border:1px solid var(--choma-theme-primary-dark,#0a4bd0) !important;
        border-left:4px solid var(--choma-theme-edge,#d3163a) !important;
        border-radius:7px !important;
        background:var(--oso-gradient,linear-gradient(135deg,#16488b 0%,#0871ff 100%)) !important;
        color:#fff !important;
        font-size:11px !important;
        font-weight:780 !important;
        letter-spacing:.12em !important;
        line-height:1 !important;
        align-items:center !important;
        justify-content:space-between !important;
        box-shadow:0 6px 16px var(--choma-theme-shadow,rgba(12,90,255,.18)) !important;
    }
    body.choma-portal-app.choma-view-mail .choma-mail-folder-tabs > .choma-mail-folder-tabs__new::before {
        display:none !important;
        content:none !important;
    }
    body.choma-portal-app.choma-view-mail .choma-mail-folder-tabs > .choma-mail-folder-tabs__new::after {
        display:block !important;
        position:static !important;
        width:auto !important;
        height:auto !important;
        background:none !important;
        color:#fff !important;
        content:"\2192" !important;
        font-size:18px !important;
        font-weight:400 !important;
        line-height:1 !important;
    }
    body.choma-portal-app .choma-mail-new-label--mobile {
        display:none !important;
    }
}

@media (max-width:782px) {
    body.choma-portal-app.choma-view-notes .choma-main .choma-note-manual-form > label.choma-note-calendar-link {
        box-sizing:border-box !important;
        height:54px !important;
        min-height:54px !important;
        grid-template-columns:18px minmax(0,1fr) 36px !important;
        align-items:center !important;
        padding:5px 12px !important;
    }
    body.choma-portal-app.choma-view-notes .choma-main .choma-note-manual-form > label.choma-note-calendar-link > .choma-note-datetime-control {
        position:relative !important;
        grid-column:3 !important;
        grid-row:1 !important;
        align-self:center !important;
        box-sizing:border-box !important;
        display:block !important;
        width:36px !important;
        min-width:36px !important;
        max-width:36px !important;
        height:36px !important;
        min-height:36px !important;
        max-height:36px !important;
        margin:0 !important;
        padding:0 !important;
        border:0 !important;
        background:transparent !important;
        box-shadow:none !important;
    }
    body.choma-portal-app.choma-view-notes .choma-note-datetime-control > .choma-datetime-display {
        display:none !important;
    }
    body.choma-portal-app.choma-view-notes .choma-note-datetime-control > button.choma-datetime-toggle {
        position:static !important;
        box-sizing:border-box !important;
        display:flex !important;
        width:36px !important;
        min-width:36px !important;
        max-width:36px !important;
        height:36px !important;
        min-height:36px !important;
        max-height:36px !important;
        margin:0 !important;
        padding:0 !important;
        border:0 !important;
        border-radius:0 !important;
        background:transparent !important;
        box-shadow:none !important;
        align-items:center !important;
        justify-content:center !important;
    }
    body.choma-portal-app.choma-view-notes .choma-note-datetime-control > button.choma-datetime-toggle::before,
    body.choma-portal-app.choma-view-notes .choma-note-datetime-control > button.choma-datetime-toggle::after {
        display:none !important;
        content:none !important;
    }
    body.choma-portal-app.choma-view-mail .choma-mail-folder-tabs {
        display:grid !important;
        grid-template-columns:max-content max-content max-content max-content minmax(64px,1fr) !important;
        align-items:center !important;
        gap:4px !important;
    }
    body.choma-portal-app.choma-view-mail .choma-mail-folder-tabs > a:not(.choma-mail-folder-tabs__new) {
        box-sizing:border-box !important;
        width:auto !important;
        min-width:0 !important;
        padding-right:8px !important;
        padding-left:8px !important;
        white-space:nowrap !important;
    }
    body.choma-portal-app.choma-view-mail .choma-mail-folder-tabs > .choma-mail-folder-tabs__new {
        display:flex !important;
        box-sizing:border-box !important;
        width:100% !important;
        min-width:64px !important;
        height:30px !important;
        min-height:30px !important;
        padding:0 8px !important;
        border:0 !important;
        border-left:4px solid var(--choma-theme-edge,#d3163a) !important;
        border-radius:6px !important;
        background:var(--oso-gradient,linear-gradient(135deg,#16488b 0%,#0871ff 100%)) !important;
        color:#fff !important;
        font-size:9px !important;
        font-weight:780 !important;
        letter-spacing:1px !important;
        line-height:1 !important;
        align-items:center !important;
        justify-content:center !important;
        box-shadow:0 7px 16px var(--choma-theme-shadow,rgba(12,90,255,.18)) !important;
    }
    body.choma-portal-app.choma-view-mail .choma-mail-folder-tabs > .choma-mail-folder-tabs__new::before,
    body.choma-portal-app.choma-view-mail .choma-mail-folder-tabs > .choma-mail-folder-tabs__new::after {
        display:none !important;
        content:none !important;
    }
    body.choma-portal-app .choma-mail-new-label--desktop {
        display:none !important;
    }
}

@media (min-width:783px) {
    body.choma-portal-app.choma-view-notes .choma-note-manual-form > .choma-note-calendar-row-v2 {
        grid-template-columns:minmax(0,1fr) minmax(240px,320px) !important;
        height:50px !important;
        min-height:50px !important;
        padding:5px 9px !important;
    }
    body.choma-portal-app.choma-view-notes .choma-note-calendar-row-v2 > .choma-note-calendar-option,
    body.choma-portal-app.choma-view-notes .choma-note-calendar-row-v2 > .choma-note-datetime-control {
        grid-column:auto !important;
        grid-row:1 !important;
    }
}

/* 1.8.177: czytelna lista Poczty i kompaktowe akcje zbiorcze. */
@media (max-width:782px) {
    body.choma-portal-app.choma-view-mail .choma-mail-tabs > a:not(:first-child) {
        font-size:12px !important;
        white-space:nowrap !important;
    }
    body.choma-portal-app.choma-view-mail .choma-mail-tabs {
        grid-template-columns:minmax(0,60%) minmax(0,1fr) 112px !important;
    }
    body.choma-portal-app.choma-view-mail .choma-mail-folder-tabs {
        grid-template-columns:repeat(4,max-content) !important;
        justify-content:start !important;
        gap:8px !important;
    }
    body.choma-portal-app.choma-view-mail .choma-mail-folder-tabs > a:not(.choma-mail-folder-tabs__new) {
        min-width:52px !important;
        padding-right:11px !important;
        padding-left:11px !important;
        font-size:12px !important;
    }
    body.choma-portal-app.choma-view-mail .choma-mail-list--selectable > .choma-mail-list-row {
        position:relative !important;
        display:block !important;
        box-sizing:border-box !important;
        width:100% !important;
        height:60px !important;
        min-height:60px !important;
        padding:9px 15px 9px 17px !important;
    }
    body.choma-portal-app.choma-view-mail .choma-mail-list-row > a {
        display:grid !important;
        grid-template-columns:minmax(0,1fr) auto !important;
        grid-template-rows:17px 21px !important;
        gap:2px 8px !important;
        width:100% !important;
        min-width:0 !important;
        padding:0 !important;
    }
    body.choma-portal-app.choma-view-mail .choma-mail-list-row > a > .choma-mail-sender {
        grid-column:1 !important;
        grid-row:1 !important;
        font-size:14px !important;
        line-height:17px !important;
    }
    body.choma-portal-app.choma-view-mail .choma-mail-list-row > a > time {
        grid-column:2 !important;
        grid-row:1 !important;
        padding-right:22px !important;
        font-size:12px !important;
        line-height:17px !important;
        text-align:right !important;
    }
    body.choma-portal-app.choma-view-mail .choma-mail-list-row > a > strong {
        grid-column:1 / -1 !important;
        grid-row:2 !important;
        box-sizing:border-box !important;
        width:100% !important;
        padding:0 6px !important;
        font-size:14px !important;
        line-height:21px !important;
    }
    body.choma-portal-app.choma-view-mail .choma-mail-list-row .choma-mail-select {
        position:absolute !important;
        top:8px !important;
        right:10px !important;
        width:14px !important;
        height:14px !important;
        margin:0 !important;
    }
    body.choma-portal-app.choma-view-mail .choma-mail-screen__head .choma-mail-empty-button {
        width:126px !important;
        min-width:126px !important;
        max-width:126px !important;
        height:30px !important;
        min-height:30px !important;
        max-height:30px !important;
        padding:0 11px !important;
        font-size:10px !important;
        white-space:nowrap !important;
    }
}

@media (max-width:782px) {
    body.choma-portal-app.choma-theme-graphite,
    body.choma-portal-app.choma-theme-graphite :is(.choma-app__body,.choma-main) {
        background:#edf3f1 !important;
    }
    body.choma-portal-app.choma-theme-navy,
    body.choma-portal-app.choma-theme-navy :is(.choma-app__body,.choma-main) {
        background:#e9edf4 !important;
    }
    body.choma-portal-app.choma-view-notes .choma-note-manual-form > .choma-note-calendar-row-v2 {
        grid-template-columns:minmax(0,1fr) 32px !important;
        gap:6px !important;
        height:54px !important;
        min-height:54px !important;
        padding:5px 12px !important;
    }
    body.choma-portal-app.choma-view-notes .choma-note-calendar-row-v2 > .choma-note-calendar-option,
    body.choma-portal-app.choma-view-notes .choma-note-calendar-row-v2 > .choma-note-datetime-control {
        grid-column:auto !important;
        grid-row:1 !important;
    }
}
