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

/* Set Global Variable */
:root {
    --component-sizes-button-h-padding-icon: 16px; /*button padding with icon*/

    --Border-Border-radius-S: 4px; /* Small border radius */

    --Error-Error: #CA150C; /* Error color */
    --Warning-Warning: #003A73; /* Warning color */
    --Stroke-Overlay-border: #E6EAEF; /* Stroke overlay border color */
    --Text-Invert-Text: #F5F9FF; /* Inverted text color */

    /* Design tokens / color aliases (used by components and theme classes) */
    --primary-primary-10: #EDF3F8; /* light primary background */
    --shades-primary-contrast-10: #CCDDED; /* subtle border color */
}

/* Typography */

/* Label header - username */
.jmix-user-indicator-label {
    color: var(--Text-Invert-Text);
    font-size: 16px;
    font-style: normal;
    font-weight: 500;
    line-height: 161.104%; /* 25.777px */
}

/* Text white color */
.text-white {
    color: #FFFFFF !important;
}

/* Text dark blue color */
.text-dark-blue {
    color: #003A73;
}

/* Text very dark blue color */
.text-darker-blue {
    color: #192434;
}

.text-gray {
    color: var(--Text-Tertiary-Text, rgba(27, 43, 65, 0.52));
}

.text-dark-gray {
    color: #4A4A4A;
}

vaadin-grid-cell-content a.text-dark-blue {
    color: #003A73;
    opacity: 1 !important;
    font-weight: 500;
    text-decoration: underline;
}

.title-white {
    color: #FFFFFF;
    font-size: 24px;
    font-style: normal;
    font-weight: 600;
    line-height: 150%; /* 36px */
}

/* Badge styles for status rendering */
[theme~="badge"] {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    background: #f0f2f5;
    color: #0b2540;
    line-height: 1;
}
[theme~="badge"][theme~="success"] {
    background: #e6f4ea;
    color: #1f7a3a;
}
[theme~="badge"][theme~="primary"] {
    background: #e9f2ff;
    color: #0b5ed7;
}
[theme~="badge"][theme~="error"] {
    background: #ffecec;
    color: #b22222;
}
[theme~="badge"][theme~="contrast"] {
    background: #f7f7f7;
    color: #333333;
}

/* Badge styles for status rendering (using classes now) */
.status-badge {
    display: inline-flex;
    width: fit-content;
    max-width: max-content;
    white-space: nowrap;
    align-self: flex-start;
    flex: 0 0 auto;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    background: #f0f2f5;
    color: #0b2540;
    line-height: 1;
}
.status-success { background: #e6f4ea; color: #1f7a3a; }
.status-primary { background: #e9f2ff; color: #0b5ed7; }
.status-warning { background: #fff4e5; color: #b26a00; }
.status-error { background: #ffecec; color: #b22222; }
.status-contrast { background: #f7f7f7; color: #333333; }

/* Shared action button layout */
.action-button {
    display: flex;
    height: 36px;
    padding: 6px var(--component-sizes-button-h-padding-icon);
    justify-content: center;
    align-items: center;
    gap: 2px;
    background: #ffffff;
    border-radius: var(--Border-Border-radius-S);
    border: 1px solid var(--Stroke-Overlay-border);
    font-weight: 600;
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
}

/* Action/edit button styling (text + icon) */
.action-edit {
    /* inherits layout from .action-button */
    border: 1px solid #E6EAEF;
    color: var(--Warning-Warning);
    align-items: center;
}
/* vaadin-button exposes parts: icon and label — set order so label comes first and icon second */
.action-edit [part="label"] {
    order: 1 !important;
}
.action-edit [part="icon"] {
    order: 2 !important;
    margin-left: 8px !important;
}

/* Stronger enforcement: ensure label before icon inside vaadin-button */
.action-edit vaadin-button::part(label) {
    order: 1 !important;
}
.action-edit vaadin-button::part(icon) {
    order: 2 !important;
    margin-left: 8px !important;
}

/* Fallback for icons rendered as elements */
.action-edit svg,
.action-edit iron-icon,
.action-edit vaadin-icon {
    order: 2 !important;
    margin-left: 8px !important;
}

/* Place icon to the right of the text */
.icon-right {
    flex-direction: row; /* icon will appear after the label */
}

/* Ensure inner button element is flex and supports icon ordering for Jmix/Vaadin button wrappers */
.action-button,
.action-edit,
.action-edit vaadin-button,
.action-edit button,
.action-edit .jmix-button,
.action-delete,
.action-delete vaadin-button,
.action-delete button,
.action-delete .jmix-button {
    display: inline-flex !important;
    align-items: center !important;
}

/* If icon-right class is set on the outer or inner element, set the direction on the actual flex container */
.action-edit.icon-right,
.action-edit.icon-right vaadin-button,
.action-edit.icon-right button,
.action-edit.icon-right .jmix-button,
.action-edit .icon-right,
.action-edit vaadin-button.icon-right,
.action-edit button.icon-right,
.action-edit .jmix-button.icon-right,
.action-delete.icon-right,
.action-delete.icon-right vaadin-button,
.action-delete.icon-right button,
.action-delete.icon-right .jmix-button,
.action-delete .icon-right,
.action-delete vaadin-button.icon-right,
.action-delete button.icon-right,

/* Also detect when only the inner element has icon-right (e.g., set by framework) */
.action-edit vaadin-button.icon-right [part="label"],
.action-edit button.icon-right .label,
.action-edit .jmix-button.icon-right .label {
    order: 1;
}
.action-edit vaadin-button.icon-right [part="icon"],
.action-edit button.icon-right .icon,
.action-edit .jmix-button.icon-right .icon {
    order: 2;
    margin-left: 8px;
}


.action-edit [part="icon"],
.action-edit vaadin-button::part(icon),
.action-edit svg,
.action-edit iron-icon,
.action-edit vaadin-icon {
    margin-left: 0 !important;
}

/* Fallback for plain button or jmix-button that expose label/icon as descendants */
.action-edit button .label,
.action-edit .jmix-button .label {
    order: 1;
}
.action-edit button .icon,
.action-edit .jmix-button .icon {
    order: 2;
    margin-left: 8px;
}

/* Action/delete button styling (text + icon) */
.action-delete {
    /* inherits layout from .action-button */
    border: 1px solid var(--Error-Error);
    color: var(--Error-Error);
    align-items: center;
}

/* vaadin-button exposes parts: icon and label — set order so label comes first and icon second */
.action-delete [part="label"] {
    order: 1 !important;
}
.action-delete [part="icon"] {
    order: 2 !important;
    margin-left: 8px !important;
}

/* Stronger enforcement: ensure label before icon inside vaadin-button */
.action-delete vaadin-button::part(label) {
    order: 1 !important;
}
.action-delete vaadin-button::part(icon) {
    order: 2 !important;
    margin-left: 8px !important;
}

/* Remove extra left margin for delete action icons */
.action-delete [part="icon"],
.action-delete vaadin-button::part(icon),
.action-delete svg,
.action-delete iron-icon,
.action-delete vaadin-icon {
  margin-left: 0 !important;
}


/* Ensure inner button element is flex and supports icon ordering for Jmix/Vaadin button wrappers */
.action-delete,
.action-delete vaadin-button,
.action-delete button,
.action-delete .jmix-button {
    display: inline-flex !important;
    align-items: center !important;
}

/* If icon-right class is set on the outer or inner element, set the direction on the actual flex container */
.action-delete.icon-right,
.action-delete.icon-right vaadin-button,
.action-delete.icon-right button,
.action-delete.icon-right .jmix-button,
.action-delete .icon-right,
.action-delete vaadin-button.icon-right,
.action-delete button.icon-right,
.action-delete .jmix-button.icon-right {
    flex-direction: row !important;
}

/* Also detect when only the inner element has icon-right (e.g., set by framework) */
.action-delete vaadin-button.icon-right [part="label"],
.action-delete button.icon-right .label,
.action-delete .jmix-button.icon-right .label {
    order: 1;
}
.action-delete vaadin-button.icon-right [part="icon"],
.action-delete button.icon-right .icon,
.action-delete .jmix-button.icon-right .icon {
    order: 2;
    margin-left: 8px;
}

/* Fallback for plain button or jmix-button that expose label/icon as descendants */
.action-delete button .label,
.action-delete .jmix-button .label {
    order: 1;
}
.action-delete button .icon,
.action-delete .jmix-button .icon {
    order: 2;
    margin-left: 8px;
}

/* Tabsheet header reusable style */
.tabsheet-header-style {
    border-radius: 8px 8px 0 0;
    border-bottom: 1px solid var(--shades-primary-contrast-10);
    background: var(--primary-primary-10);
}

/* Bold tab label */
.bold-tab-label {
    color: #0054A5 !important;
    font-weight: 600 !important;
}

/* Peringatan (warning) alert box — dark navy background with white text */
.peringatan-alert {
    background-color: #003A73;
    border-radius: 8px;
    padding: var(--lumo-space-m);
}

/* 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;
}

/* Document requirement card — white background with light border */
.dokumen-card {
    background: #FFFFFF;
    border: 1px solid #CCDDED;
    border-radius: 8px;
    padding: var(--lumo-space-m);
}

/* Card container styles */

/* Payment method card layout */
.payment-method-card {
    display: flex;
    padding: var(--component-sizes-button-h-padding-icon, 16px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    flex: 1 1 0;
    min-width: 0;
}

/*==============================
        CUSTOM BACKGROUND
===============================*/
.warning-card-bg {
    border: 1px solid #AAC6E1;
    background: #FFCC00;
}

.bg-white {
    background-color: white !important;
}

/*==============================
        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: 28px 28px;
    gap: 36px;
}
.divider-footer {
    width: 1px;
    background-color: var(--shades-primary-contrast-10, #CCDDED);
}

/* when screen is 1280px and below */
@media (max-width: 1280px) {
    .centralize {
        justify-content: center !important;
    }
    .hide {
        display: none !important;
    }
}
#footer {
    background-color: #00386E;
    margin: 0;
    width: 100%;
    position: relative;
    bottom: 0;
    right: 0;
    left: 0;
}
/* when screen is 1536px and above */
@media (min-width: 1536px) {
    .content-footer {
            padding: 100px 162px;
            gap: 48px;
       }
}


.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: 40px;
    height: 40px;
    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;
}

@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;
    /* Kept below Vaadin's mobile drawer overlay (z-index: 2) so the banner doesn't cover the nav drawer on small screens */
    z-index: 1;

    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;
}

.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;
}

.dashboard-crawler-action::after {
    content: " →";
    margin-left: 6px;
}

.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;
}

.compact-form-layout {
     --vaadin-form-layout-column-spacing: var(--lumo-space-s);
     --vaadin-form-layout-row-spacing: var(--lumo-space-s);
 }

 .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;
 }

 .m-p-disabled {
     margin: 0;
     padding: 0;
 }
.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;
}