@import url('frontend-app.css');
@import url('view/main-view.css');
@import url('view/main-view-top-menu.css');
@import url('view/styles-old.css');
@import url('view/typography.css');
@import url('view/responsiveness.css');

/* Define your styles here */

/*==============================
    CUSTOM BACKGROUND LAYOUT
===============================*/
vaadin-app-layout {
    background: url('images/png/kerawang-blue.png') no-repeat center center;
    background-size: cover;
}
vaadin-vertical-layout.login-bg {
    width: 100%;
    background: url('images/png/login-bg.png') no-repeat center center;
    background-size: cover;
}
/*==============================
    CUSTOM MENU BAR HEADER
===============================*/
/* Custom header - kerawang kuning */
.yellow-header {
    height: var(--lumo-size-m);
    background-image: url('images/svg/kerawang-yellow.svg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: flex-start;
    align-self: stretch;
}
/* Custom header - kerawang biru */
.blue-header {
    height: 68px;
    border-bottom: 1px solid var(--shades-primary-contrast-10, #CCDDED);
    background-image: url('images/png/kerawang-blue.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: flex-start;
    align-self: stretch;
}
/* Custom header (for public) - kerawang biru */
.public-blue-header {
    background-image:
        linear-gradient(180deg, rgba(15,16,97,1), rgba(22,66,148,0)),
        url('images/png/kerawang-blue.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: flex-start;
    align-self: stretch;
}
/* Custom divider header */
.divider-header {
    width: 1px;
    height: var(--lumo-size-m);
    background: var(--shades-primary-contrast-10, #CCDDED);
}
.public-divider-header {
    width: 1px;
    height: 75px;
    background: var(--shades-primary-contrast-10, #CCDDED);
}
/* Logo size header - Digital MAIPs */
.logo-header {
    width: 225px;
    height: 45px;
}
/* Logo size header - MAIPs */
.logo-main {
    width: 45px;
    height: 45px;
}
/* Toggle button header color */
vaadin-drawer-toggle.toggle-header {
    color: #FFFFFF;
}

/*==============================
        CUSTOM FOOTER
===============================*/
/* Custom footer - kerawang biru */
.blue-footer {
    background-image:
        linear-gradient(rgba(0, 69, 140, 0.90), rgba(0, 69, 140, 0.90)),
        linear-gradient(90deg, #0054A5 0%, #0F4294 100%),
        url('images/png/kerawang-white.png');
    background-blend-mode: normal, multiply;
    background-size: cover, cover, 100% auto;
    background-position: center, center, center;
    background-repeat: no-repeat, no-repeat, no-repeat;
    display: flex;
    align-items: flex-start;
    align-self: stretch;
}
.yellow-footer {
    background-image: url('images/svg/kerawang-yellow.svg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: flex-start;
    align-self: stretch;
}
.content-footer {
    padding: 40px 28px;
    gap: 36px;
}
.divider-footer {
    width: 1px;
    background-color: var(--shades-primary-contrast-10, #CCDDED);
}

/*==============================
     CUSTOM SIDE MENU BAR
===============================*/
/* First level (non-clickable) */
.jmix-list-menu .jmix-menu-item-link.first-level-label {
    color: #fff;
    background-color: #003A73;
    padding: 0.75rem 0.5rem 0.75rem 1.5rem;
    pointer-events: none;
}
.jmix-list-menu .jmix-menu-item-link.first-level-label span {
    font-weight: 700;
    font-size: 16px;
}
/* First level (clickable) - active/non-active state */
.jmix-list-menu .jmix-menu-item-link.first-level-click {
    color: #fff;
    background-color: #003A73;
    padding: 0.75rem 0.5rem 0.75rem 1.5rem;
}
.jmix-list-menu .jmix-menu-item-link.first-level-click span {
    font-weight: 700;
    font-size: 16px;
}
.jmix-list-menu .jmix-menu-item-link.first-level-click[highlight] {
    background-color: #002A53;
    padding: 0.75rem 0.5rem 0.75rem 1.5rem;
    border-radius: 0;
    border-left: solid 1px #FFFB84;
}
.jmix-list-menu .jmix-menu-item-link.first-level-click[highlight] .link-text {
    color: #FFFB84;
}
/* First level (clickable) - hover */
.jmix-list-menu .jmix-menu-item-link.first-level-click:hover {
    background-color: #00468A;
    border-left: solid 1px #FFF;
}
/* First level (clickable) - no hover when highlighted */
.jmix-list-menu .jmix-menu-item-link.first-level-click[highlight]:hover {
    background-color: #002A53;
    border-left: solid 1px #FFFB84;
}
/* Second level (Accordion) */
.jmix-list-menu .jmix-menubar-item.second-level-label vaadin-details-summary {
    color: #fff;
    background-color: #003A73;
    padding: 0.75rem 0.5rem 0.75rem 1.5rem;
    border-radius: 0;
    cursor: pointer;
}
.jmix-list-menu .jmix-menubar-item.second-level-label vaadin-details-summary::part(toggle) {
    color: #fff;
}
.jmix-list-menu .jmix-menubar-item.second-level-label vaadin-details-summary span {
    font-weight: 500;
    font-size: 16px;
}
/* Second level (clickable) - active/non-active state */
.jmix-list-menu .jmix-menu-item-link.second-level-click {
    color: #fff;
    background-color: #003A73;
    padding: 0.75rem 0.5rem 0.75rem 1.5rem;
}
.jmix-list-menu .jmix-menu-item-link.second-level-click span {
    font-weight: 500;
    font-size: 16px;
    margin-left: 0.5rem;
}
.jmix-list-menu .jmix-menu-item-link.second-level-click[highlight] {
    color: #FFFB84;
    background-color: #002A53;
    padding: 0.75rem 0.5rem 0.75rem 1.5rem;
    border-radius: 0;
    border-left: solid 1px #FFFB84;
}
.jmix-list-menu .jmix-menu-item-link.second-level-click[highlight] .link-text {
    color: #FFFB84;
}
/* Second level (Accordion) */
.jmix-list-menu .jmix-menubar-item.second-level-label vaadin-details-summary:hover {
    background-color: #003A73;
}
/* Second level (clickable) -hover */
.jmix-list-menu .jmix-menu-item-link.second-level-click:hover {
    background-color: #00468A;
    border-left: solid 1px #FFF;
}
/* Second level (clickable) - no hover when highlighted */
.jmix-list-menu .jmix-menu-item-link.second-level-click[highlight]:hover {
    background-color: #002A53;
    border-left: solid 1px #FFFB84;
}
/* Third level (clickable) - active/non-active state */
.jmix-list-menu .jmix-menu-item-link.third-level-click {
    color: #fff;
    background-color: #003A73;
    margin-left: 2rem;
    padding: 0.75rem 0.5rem 0.75rem 2em;
    border-left: solid 1px #fff;
}
.jmix-list-menu .jmix-menu-item-link.third-level-click[highlight] {
    background-color: #002A53;
    padding: 0.75rem 0.5rem 0.75rem 2em;
    border-radius: 0;
    border-left: solid 1px #FFFB84;
}
.jmix-list-menu .jmix-menu-item-link.third-level-click[highlight] .link-text {
    color: #FFFB84;
}
/* Third level (clickable) - hover */
.jmix-list-menu .jmix-menu-item-link.third-level-click:hover {
    background-color: #00468A;
    border-left: solid 1px #FFF;
}
/* Third level (clickable) - no hover when highlighted */
.jmix-list-menu .jmix-menu-item-link.third-level-click[highlight]:hover {
    background-color: #002A53;
    border-left: solid 1px #FFFB84;
}
/* Side menu color */
.jmix-list-menu {
    background-color: #003A73;
    padding: 0;
}
.jmix-list-menu .jmix-menubar-item {
    display: inline !important;
}
.jmix-list-menu .jmix-menubar-item .menubar-list {
    margin-inline-start: 0;
}
.jmix-list-menu .jmix-menubar-summary-icon-container {
    font-family: 'Inter', sans-serif;
    color: #fff;
    font-weight: 500;
    font-size: 16px;
}
.jmix-list-menu vaadin-details-summary::part(toggle) {
    color: #fff;
}
.jmix-list-menu .jmix-menu-item-link .link-text {
    color: #fff;
    font-weight: 500;
    font-size: 16px;
    white-space: normal !important;
    overflow: visible !important;
    word-wrap: break-word !important;
    word-break: break-word !important;
}
.jmix-list-menu .jmix-menubar-item vaadin-details-summary {
    padding: var(--lumo-space-m) var(--lumo-space-l);
}

/*==============================
        CUSTOM ICON
===============================*/
vaadin-icon.white-icon {
    color: #FFFFFF;
}

.pwCheck {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background-color: #cfd4da;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pwCheckOk {
    background-color: #28a745;
}

.pwCheckOk::after {
    content: "✓";
    color: white;
    font-size: 14px;
    font-weight: bold;
}

/*==============================
      CUSTOM LINE/DIVIDER
===============================*/
.horizontal-divider {
    height: 1px;
    background-color: var(--shades-primary-contrast-10, #CCDDED);
}
.gray-horizontal-divider {
    height: 1px;
    background-color: #DADADC;
}

/*==============================
        CUSTOM BACKGROUND
===============================*/
/* Light yellow card */
.yellow-card-bg {
    border: 1px solid #EDEDED;
    background: #FFFB84;
}
.warning-card-bg {
    border: 1px solid #AAC6E1;
    background: #FFCC00;
}
/* Light gray card */
.gray-card-bg {
    border: 1px solid #DADADC;
    background: #EDF3F8;
    box-shadow: 0 7px 8px 2px rgba(215, 231, 255, 0.20);
}
/* gray card */
.gray2-card-bg {
    border: 1px solid #DADADC;
    background: #D7D9DC;
}
/* White card */
.white-card-bg {
    border: 1px solid #CCDDED;
    background: #FFFFFF;
}
.white-card-no-bg {
    background: #FFFFFF;
}
/* White card - gray border */
.white-card-gray-bg {
    border: 1px solid var(--Primary-Grey, rgba(28, 52, 84, 0.26));
    background: #FFFFFF;
}
/* Dark blue background */
.dark-blue-bg {
    background: #0054A5;
}
/* Dark gray background */
.dark-grey-bg {
    border-radius: var(--Border-Border-radius-L, 8px);
    background: var(--shades-primary-contrast-5, #E6EAEF);
}
/* Dark blue with kerawang */
.dark-blue-pattern-bg {
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(0deg, var(--shades-primary-contrast-70, #00386E), var(--shades-primary-contrast-70, #00386E)),
        radial-gradient(39.83% 76.74% at 48.61% 49.93%, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 100%);
    background-blend-mode: multiply;
}
.dark-blue-pattern-bg::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url('images/png/kerawang-white.png');
    background-size: 150% auto;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.2;
    pointer-events: none;
}
.soft-blue-bg {
    background-color: #CEE7FF;
    border: 1px solid #003073;
}
/*==============================
        CUSTOM BORDER
===============================*/
/* White border bottom */
.white-border-b {
    border-bottom: 2px solid #FFFFFF;
}
/* Grayish blue border bottom */
.grayish-blue-border-b {
    border-bottom: 1px solid #CCDDED;
}
/* Grayish blue border right */
.grayish-blue-border-r {
    border-right: 1px solid #CCDDED;
}
/* Grayish blue border */
.grayish-blue-border {
    border: 1px solid #CCDDED;
}
.border-top-0 {
    border-top: 0px;
}
/* Rounded border bottom */
.rounded-bottom-l {
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}
.rounded-top-l {
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}
.rounded-top-m {
    border-top-left-radius: 4px;
    border-top-right-radius: 4px;
}
.blue-notification-container {
  display: flex;
  padding: 24px;
  align-items: center;
  gap: 12px;
  border-radius: 8px; /* var(--Border-Border-radius-L) */
  background: #0054A5; /* var(--Primary-Primary) */
}
.red-notification-container {
    display: flex;
    padding: 24px;
    align-items: center;
    gap: 12px;
    border-radius: 8px; /* var(--Border-Border-radius-L) */
    background: #E21D12; /* var(--Primary-Primary) */
}

.rounded-right-l {
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
}

.rounded-bottom-left-l {
    border-bottom-left-radius: 8px;

}
.gray-border {
    border: 1px solid #DADADC;
}
.gray-border-b {
    border-bottom: 1px solid #DADADC;
}
.gray-border-t {
    border-top: 1px solid #DADADC;
}
/*==============================
        CUSTOM BUTTON
===============================*/
/* Button with outline - dark blue */
.dark-blue-outlined {
    background-color: transparent;
    border: 1.5px solid #003A73; /* Dark Blue */
    color: #003A73; /* Dark Blue */
    border-radius: var(--lumo-border-radius-m);
    padding: 0.4em 1.2em;
    font-weight: 600;
}
/* Button with outline - white */
.white-outlined-m {
    background-color: transparent;
    border: 2px solid #CCDDED80;
    color: #FFFFFF;
    border-radius: var(--lumo-border-radius-m);
    padding: 0 var(--lumo-space-m);
    font-size: var(--lumo-font-size-s);
    gap: var(--lumo-space-xs);
    font-weight: 500;
}
vaadin-button:host(.white-outlined-m) {
    --lumo-button-size: var(--lumo-text-field-size);
}
/* Button with outline - red */
.red-outlined {
    background-color: transparent;
    border: 1.5px solid #CA150C; /* Red */
    color: #CA150C; /* Red */
    border-radius: var(--lumo-border-radius-m);
    padding: 0.4em 1.2em;
    font-weight: 600;
}
/* Button with outline - full red */
.full-red-outlined {
    background-color: #CA150C;
    border: none;
    color: #FFFFFF; /* White */
    border-radius: var(--lumo-border-radius-m);
    padding: 0.4em 1.2em;
    font-weight: 600;
}
/* Button header - color & size */
vaadin-button.button-header {
    --lumo-button-size: 28px;
    color: #FFFFFF;
}
/* White button */
vaadin-button.white-button {
    color: white;
}
vaadin-button.button-footer {
    --lumo-button-size: 34px;
    color: #FFFFFF;
}
.no-icon vaadin-icon {
    display: none !important;
}

vaadin-button.underline-link::part(label) {
    text-decoration: underline;
    cursor: pointer;
}

vaadin-button.underline-link {
    padding: 0;
    min-height: auto;
}

/*==============================
        CUSTOM DATAGRID
===============================*/
/* Dark blue datagrid */
.dark-blue-datagrid {
    --_lumo-grid-secondary-border-color: #CCDDED;
    overflow-y: auto;
}
.dark-blue-datagrid::part(header-cell) {
    background-color: #0054A5;
    color: white !important;
    font-weight: 500;
}
.dark-blue-datagrid::part(footer-cell) {
    background-color: transparent;
    color: #003D73;
    height: 60px;
    font-weight: 600;
    font-size: var(--lumo-font-size-m);
    border-top: 1px solid #CCDDED;
}
.dark-blue-datagrid vaadin-grid-sorter::part(indicators),
.dark-blue-datagrid vaadin-grid-sorter::part(asc-indicator),
.dark-blue-datagrid vaadin-grid-sorter::part(desc-indicator) {
    color: white !important;
    fill: white;
}
.dark-blue-datagrid vaadin-grid-sorter::part(content) {
    color: white !important;
}
/* Custom datagrid - Bakul Bayaran */
.dark-blue-datagrid-s {
    --_lumo-grid-secondary-border-color: #CCDDED;
    overflow-y: auto;
    font-size: var(--lumo-font-size-xs);
}
.dark-blue-datagrid-s::part(header-cell) {
    background-color: #0054A5;
    color: white;
    font-weight: 500;
    font-size: var(--lumo-font-size-xs);
    white-space: normal;
}
.dark-blue-datagrid-s::part(footer-cell) {
    background-color: transparent;
    color: #003D73;
    height: 60px;
    font-weight: 600;
    font-size: var(--lumo-font-size-m);
    border-top: 1px solid #CCDDED;
}
.dark-blue-datagrid-s vaadin-grid-sorter::part(indicators),
.dark-blue-datagrid-s vaadin-grid-sorter::part(asc-indicator),
.dark-blue-datagrid-s vaadin-grid-sorter::part(desc-indicator) {
    color: white;
    fill: white;
}

.footer-highlight::part(footer-cell) {
    background-color: #cce3f2;
}

/* Custom datagrid - ZakatKalkulator */
.dark-blue-datagrid-k {
    --_lumo-grid-secondary-border-color: #CCDDED;
    overflow-y: auto;
    font-size: var(--lumo-font-size-xs);
}
.dark-blue-datagrid-k::part(header-cell) {
    background-color: #0054A5;
    color: white;
    font-weight: 500;
    font-size: var(--lumo-font-size-xs);
    white-space: normal;
}
.dark-blue-datagrid-k::part(body) {
    background-color: #FFFFFF;
    /* OR use background-color: #FFFFFF; if transparent shows a grey parent */
}
.dark-blue-datagrid-k::part(footer-cell) {
    background-color: #cce3f2;
    color: #003D73;
    height: 60px;
    font-weight: 600;
    font-size: var(--lumo-font-size-m);
    border-top: 1px solid #CCDDED;
}
.dark-blue-datagrid-k::part(row){
    font-weight: 500;
    background-color: #FFFFFF;
    font-size: var(--lumo-font-size-s);
    color: #003A73;

}

/*==============================
        HIDE ERROR MESSAGE
===============================*/
/* Textfield */
vaadin-text-field.hide-error-message[invalid]::part(error-message) {
    display: none;
}
vaadin-text-field.hide-error-message[invalid]::part(input-field) {
    --vaadin-input-field-border-color: transparent;
    --_focus-ring-color: transparent;
}
vaadin-email-field.hide-error-message[invalid]::part(error-message) {
    display: none;
}
/* Date Picker */
vaadin-date-picker.hide-error-message[invalid]::part(error-message) {
    display: none;
}
/* Radio Button */
vaadin-radio-group.hide-error-message[invalid]::part(error-message) {
    display: none;
}
/* Combo Box (Dropdown) */
vaadin-combo-box.hide-error-message[invalid]::part(error-message) {
    display: none;
}
/* ComboBox label */
vaadin-combo-box.text-white::part(label) {
    color: white;
}
/* Multi Select ComboBox label */
vaadin-multi-select-combo-box.text-white::part(label) {
    color: white;
}
/* ComboBox inner text */
vaadin-combo-box.white-field::part(input-field) {
    color: #003A73;
    background: white;
}
/* Multi Select ComboBox inner text */
vaadin-multi-select-combo-box.white-field::part(input-field) {
    color: #003A73;
    background: white;
}
/*==============================
    CUSTOM PROPERTY FILTER
===============================*/
.jmix-property-filter {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0px;
}
.jmix-property-filter .filter-label {
    color: white;
    line-height: 30px;
}
.jmix-property-filter vaadin-text-field::part(input-field) {
    background-color: white;
}

/*==============================
    CUSTOM INPUT FIELD
===============================*/
/* Custom textfield input - UPPERCASE */
vaadin-text-field.uppercase-input [slot="input"] {
    text-transform: uppercase;
}
/* Custom textfield background - color */
vaadin-text-field.white-field::part(input-field) {
    background: white;
}
vaadin-text-field.blue-input::part(input-field) {
    color: #003A73;
}
vaadin-text-field.white-field > input::placeholder {
    color: lightgray;
}
/* Custom textfield (disabled) background - color */
vaadin-text-field[disabled]::part(input-field) {
    background: lightgray;
}

/* Custom numberfield input - UPPERCASE */
vaadin-big-decimal-field.uppercase-input [slot="input"] {
    text-transform: uppercase;
}
/* Custom numberfield background - color */
vaadin-big-decimal-field.white-field::part(input-field) {
    background: white;
}
vaadin-big-decimal-field.white-field > input::placeholder {
    color: lightgray;
}
/* Custom numberfield (disabled) background - color */
vaadin-big-decimal-field[disabled]::part(input-field) {
    background: lightgray;
}
/* Custom integer field background - color */
vaadin-integer-field.white-field::part(input-field) {
    background: white;
}
/* Custom email field background - color */
vaadin-email-field.white-field::part(input-field) {
    background: white;
}
/* Custom email field (disabled) background - color */
vaadin-email-field[disabled]::part(input-field) {
    background: lightgray;
}
/* Custom date picker background - color */
vaadin-date-picker.white-field::part(input-field) {
    background: white;
}
/* Custom date picker (disabled) background - color */
vaadin-date-picker[disabled]::part(input-field) {
    background: lightgray;
}
/* Custom combo box (disabled) background - color */
vaadin-combo-box[disabled]::part(input-field) {
    background: lightgray;
}
/* Custom combo box (disabled) label - color */
html {
    --lumo-disabled-text-color: gray;
}
vaadin-combo-box[disabled] [slot="label"]{
    --_disabled-value-color: var(--vaadin-input-field-disabled-value-color, var(--lumo-disabled-text-color));
}
.white-select vaadin-select-value-button {
    color: white;
}
vaadin-select.white-select::part(toggle-button) {
    color: white;
}
/*==============================
           CUSTOM GAP
===============================*/
/* No gap */
.gap-0 {
    gap: 0px;
}

.gap-10 {
    gap: 10px;
}

.gap-15 {
    gap: 15px;
}

.gap-100 {
    gap: 100px;
}

/*==============================
    CUSTOM CURSOR POINTER
===============================*/
/* Custom pointer for breadcrumb */
.cursor-pointer {
    cursor: pointer;
    text-decoration: none;
    transition: text-decoration 0.2s ease-in-out;
}
.cursor-pointer:hover {
    text-decoration: underline;
}
/* Custom default pointer */
.pointer {
    --lumo-clickable-cursor: pointer;
    cursor: var(--lumo-clickable-cursor);
}

/*==============================
        CUSTOM TABSHEET
===============================*/
/* Grayish blue tabsheet (form) */
.grayish-blue-tabsheet {
    border: 1px solid #DADADC;
    border-radius: 8px;
    background: #EDF3F8;
    box-shadow: 0 7px 8px 2px rgba(215, 231, 255, 0.20);
    --lumo-primary-color: transparent;
}
.grayish-blue-tabsheet::part(tabs-container) {
    align-self: stretch;
}
.grayish-blue-tabsheet::part(content) {
    padding: 16px;
}
.grayish-blue-tabsheet [slot="tabs"] {
    height: 52px;
    align-items: flex-start;
    gap: 16px;
    border-bottom: 1px solid #CCDDED;
}
.grayish-blue-tabsheet vaadin-tab{
    color: #192434;
}

/* Selected tab */
.grayish-blue-tabsheet vaadin-tab[selected] {
    color: #003A73;
    font-weight: 600;

    /* make tab itself wider */
    padding-left: 28px;
    padding-right: 28px;

    /* underline */
    border-bottom: 3px solid #003A73;
}

/* Dark blue tabsheet (datagrid) */
.dark-blue-tabsheet::part(tabs-container) {
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    align-self: stretch;
    background: #003A73;
}
.dark-blue-tabsheet::part(content) {
    padding: 0px;
}
.dark-blue-tabsheet [slot="tabs"] {
    height: 52px;
    align-items: flex-start;
    gap: 16px;
    border-bottom: 1px solid #CCDDED;
}
.dark-blue-tabsheet vaadin-tab{
    color: white;
}
.dark-blue-tabsheet vaadin-tab[selected]{
    color: white;
    font-weight: bold;
    --_selection-color: white;
}

/*==============================
    CUSTOM COLLAPSIBLE CARD
===============================*/
.collapsible-card {
    max-height: 400px;
    transition: max-height 0.4s ease;
}
.collapsible-card.expanded {
    max-height: none;
}
.collapsible-content {
    position: relative;
    overflow: hidden;
    max-height: 300px;
    transition: max-height 0.4s ease;
    background-color: white;
}
.collapsible-content.expanded {
    max-height: none;
}

/*==============================
        CUSTOM PROGRESS BAR
===============================*/
.progress-bar {
    background-color: #1C345442;
    height: 8px;
    border-radius: 8px;
}
.progress-bar.active {
    background-color: #0054A5;
}

/*==============================
       CUSTOM IMAGE CARD
===============================*/
.card-base {
    box-sizing: border-box;
}

.card-image {
    right: 0;
    bottom: 0;
    object-fit: contain;
    z-index: 5;
    pointer-events: none;
}
.image-spacer {
    width: 420px;
}

/*==============================
      CUSTOM PROFIL LAYOUT
===============================*/
.custom-form-layout vaadin-form-item::part(label) {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 180px;
    box-sizing: border-box;
    padding-right: 4px;
}

.custom-form-layout vaadin-form-item::part(label)::after {
    content: ":";
    margin-left: 4px;
}
.custom-form-layout vaadin-form-item {
    min-width: 0;
    max-width: 100%;
}
.custom-form-layout label {
    white-space: normal;
    word-break: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
}
.form-label vaadin-form-item::part(label) {
    font-weight: 700;
}
vaadin-form-item.text-red::part(label) {
    color: var(--lumo-error-text-color);
}

/*==============================
    CUSTOM PROFIL SLIDE CARD
===============================*/

.slide-view-card {
    position: fixed;
    top: 6.2rem;
    right: 0;
    width: 100%; /* Default: full width for mobile */
    max-width: 48.5%; /* Limit for desktop */
    height: 88vh;
    border-radius: 8px;
    background-color: #edf3f8;
    box-shadow: 2px 2px 8px lightblue;
    transform: translateX(100%);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden; /* Important */
}

.side-scroll {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}
/*==============================
  RESPONSIVE BREAKPOINTS
  - Mobile: < 768px
  - Desktop: ≥ 768px
===============================*/

/* In your styles.css or theme */
.stepper-panel-responsive {
    width: 100% !important;
}

@media (min-width: 1024px) {
    .stepper-panel-responsive {
        width: 700px !important;
    }
}
/*==================================
        CUSTOM MEDIA QUERIES
===================================*/

/* Mobile & Tablet */
.bakul-card {
  width: 100%;
}

.stepper-content {
  width: 100%
}

/* Desktop ≥ 1024px */
@media (min-width: 1024px) {
  .bakul-card {
    width: clamp(700px, 32vw, 900px);
  }

  .stepper-content {
     flex-grow: 1;
     min-width: 400px;
  }
}

/* when screen is 1536px and above */
@media (min-width: 1536px) {
    .content-footer {
            padding: 100px 162px;
            gap: 48px;
       }
}

/* custom media query for header */
@media (max-width: 800px) {
    .public-blue-header {
            --vaadin-app-layout-drawer-overlay: true;
       }
}

/*==================================
        CUSTOM CONTENT BOX
===================================*/
.content{
    flex: 1;
    background-size: cover;
    background-position: center;
    margin-bottom: 2rem;
}

.content-section{
    min-height: 32rem;
    width: 50rem;
    display: flex;
}

.content-section .right-section{
    flex: 0 0 65%;
    background: #EDF3F8;
    border-radius: 0.0rem 0.4rem 0.4rem 0.0rem;
    margin-bottom: 1rem;
    padding: 0;
    height: 32rem;
}

.daftar-akaun-label {
    font-size: 20px;
    font-weight: 700;
    color: #003A73;
    margin-bottom: 12px;
}

.daftar-akaun-inner{
    padding: 1.5rem;
    box-sizing: border-box;
    height: 100%;
}

.innerContainer{
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    align-self: stretch;
}

.pengenalanContainer{
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    align-self: stretch;
}

/* =========================================
   Notification Message - Responsive Text
   ========================================= */

/* Desktop / Large screens */
@media (min-width: 1200px) {
    . notification-message {
        font-size: 16px;
    }
}

/* Laptop / Normal screens */
@media (min-width: 992px) and (max-width: 1199px) {
    .notification-message {
        font-size: 15px;
    }
}

/* Tablet */
@media (min-width: 768px) and (max-width: 991px) {
    .notification-message {
        font-size: 14px;
    }
}

/* Phone */
@media (min-width: 576px) and (max-width: 767px) {
    .notification-message {
        font-size: 13px;
    }
}

/* Small phones */
@media (max-width: 575px) {
    .notification-message {
        font-size: 12px;
    }
}


/* =========================================
      Datagrid Transaction - Responsive
   ========================================= */

/* Small screens (phones) */
.datagrid-transaction {
    width: 374px;
    padding-left: 0;
    padding-right: 0;
    overflow-x: auto;
}

/* Medium screens (tablets) */
@media (min-width: 768px) {
    .datagrid-transaction {
        width: 640px;
        padding-left: 0;
        padding-right: 0;
    }
}

/* Normal & bigger screens (laptop / desktop) */
@media (min-width: 1024px) {
    .datagrid-transaction {
        width: 928px;
        padding-left: 300px;
        padding-right: 300px;
    }
}

/* Enable word wrapping in DataGrid */
vaadin-grid.wrapped-grid::part(cell),
vaadin-grid.wrapped-grid::part(header-cell) {
    white-space: normal;
    line-height: 1.4;
}

/* =========================================
      Button Transaction - Responsive
   ========================================= */

/* Base: small & medium screens */
.button-transaction {
    display: flex;
    flex-direction: column-reverse;
    gap: var(--lumo-space-s);
    width: 100%;
}

.button-transaction > vaadin-button {
    width: 100%;
}

/* Large screens and above */
@media (min-width: 1024px) {
    .button-transaction {
        flex-direction: row;
        justify-content: center;
        align-items: center;
    }

    .button-transaction > vaadin-button {
        width: auto;
    }
}

.quick-link-root-container {
    gap: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 1px solid #d9d9d9;
    border-radius: 10px !important;
    overflow: hidden;
    background: #fff;
}

.quick-link-container {
    gap: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
}

.quick-link-item {
    border-bottom: 1px solid #d9d9d9;
    background-color: #fff;
}

.quick-link-item:hover {
    background-color: #f4f6f9;
}

.quick-link-title {
    font-size: 18px;
    font-weight: 600;
    color: #004b87;
    text-decoration: none;
}

.statistic-root-container {
    gap: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 1px solid #d9d9d9;
    border-radius: 10px !important;
    overflow: hidden;
    background: #fff;
}

.statistic-container {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    overflow: hidden;
}

.statistic-card {
    padding: 21px;
    box-sizing: border-box;
    border-right: 1px solid #d9d9d9;
    border-bottom: 1px solid #d9d9d9;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
}

.statistic:nth-child(2n) {
    border-right: none;
}

.statistic:nth-last-child(-n + 2) {
    border-bottom: none;
}

.statistic-icon-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #004987;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}

.statistic-icon {
    width: 25px;
    height: 25px;
    object-fit: contain;
}

.statistic-title {
    color: #004987;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.5;
}

.statistic-subtitle {
    color: #004987;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.2;
}

.statistic-empty {
    color: black;
    padding: 12px 24px;
    width: 100%;
}

@media (max-width: 640px) {
    .statistic-container {
        grid-template-columns: 1fr;
    }

    .statistic-card {
        border-right: none;
    }

    .statistic-card:nth-last-child(-n + 2) {
        border-bottom: 1px solid #d9d9d9;
    }

    .statistic-card:last-child {
        border-bottom: none;
    }
}

.dashboard-crawler-root {
    position: sticky;
    top: 0;
    height: 44px;
    z-index: 9999;

    background: #003f63;
    color: white;

    display: flex;
    align-items: center;

    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}

.dashboard-crawler-label {
    height: 44px;
    min-width: 130px;

    background: #fff176;
    color: #002f4f;

    display: flex;
    align-items: center;
    justify-content: center;

    font-weight: 700;
}

.dashboard-crawler-message-wrapper {
    flex: 1;
    overflow: hidden;
    white-space: nowrap;
    padding: 0 24px;
    margin-right: 16px;
}

.dashboard-crawler-message {
    display: inline-block;
    padding-left: 100%;
    animation: dashboard-crawler-scroll 18s linear infinite;
}

.dashboard-crawler-message-wrapper.crawler-paused .dashboard-crawler-message {
    animation-play-state: paused;
}

@keyframes dashboard-crawler-scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-100%);
    }
}

.dashboard-crawler-action {
    color: #fff176;
    font-weight: 700;
    text-decoration: none;
    margin-right: 16px;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.dashboard-crawler-action-icon {
    width: 14px;
    height: 14px;
    color: #fff176;
}

.dashboard-crawler-nav,
.dashboard-crawler-play {
    background: transparent;
    color: white;
    border: none;
    min-width: 32px;
    cursor: pointer;
    font-size: 18px;
}

.dashboard-crawler-counter {
    color: white;
    font-weight: 600;
    min-width: 42px;
    text-align: center;
}

.dashboard-content {
    padding-top: 44px;
}

/* Quick link tabs */
.quick-link-tabs {
    border-bottom: 1px solid #d9d9d9;
    background-color: #fff;
    width: 100%;
    padding: 8px 12px;
    box-sizing: border-box;
    margin: 0;
}

.quick-link-tabs::part(tabs) {
    width: 100%;
}

.quick-link-tabs vaadin-tab {
    font-size: 15px;
    font-weight: 600;
    color: #6b7280;
    justify-content: center;
    flex: 1;
    padding: 12px 16px;
    text-align: center;
}

.quick-link-tabs vaadin-tab[selected] {
    color: #004b87;
}

/* Direct white label styling for white-label-field class */
vaadin-text-field.white-label-field::part(label),
vaadin-combo-box.white-label-field::part(label),
vaadin-multi-select-combo-box.white-label-field::part(label),
vaadin-date-picker.white-label-field::part(label) {
    color: white !important;
}

/* Guide box - light blue background */
.cara-guide {
    background-color: #f3f8ff;
    border: 1px solid #d7e8ff;
    border-radius: 8px;
    padding: 14px;
}

.cara-guide ol {
    margin: 0;
    padding-left: 20px;
}

.cara-guide li {
    margin-bottom: 6px;
}

.cara-guide li:last-child {
    margin-bottom: 0;
}

/* no reserved space when field is valid */
vaadin-password-field.multiline-error-message:not([invalid])::part(helper-text) {
    display: none;
}

/* reserve proper space and allow multiline when invalid */
vaadin-password-field.multiline-error-message[invalid]::part(helper-text) {
    display: block;
    min-height: 0;
    height: auto;
    max-height: none;
    overflow: visible;
}

vaadin-password-field.multiline-error-message[invalid]::part(error-message) {
    display: block;
    white-space: pre-line;
    line-height: 1.35;
    max-height: none;
    overflow: visible;
}