/* =====================================================
   Finance Assistant
   Component    : Global Input
   File         : style.css
   Version      : 7.3.0

   Description :
   Reusable Global Input Overlay

   Behavior :
   Full Screen
   No Slide
   No Floating

   Includes :
   - Global Input
   - Custom Select
   - Global Picker
   - Payroll Monthly Condition
   - Edit Input Menu
   - Airdrop Edit Input Reward
   - Global Update Data
===================================================== */


/* =====================================================
   OVERLAY ROOT
===================================================== */

.global-input-overlay {
    position: fixed;
    inset: 0;

    width: 100%;
    height: 100%;

    z-index: 10000;

    visibility: hidden;
    pointer-events: none;

    background: #ffffff;
}


/* =====================================================
   OPEN STATE
===================================================== */

.global-input-overlay.is-open {
    visibility: visible;
    pointer-events: auto;
}


/* =====================================================
   BACKDROP
===================================================== */

.global-input-backdrop {
    position: absolute;
    inset: 0;

    width: 100%;
    height: 100%;

    background: #ffffff;
}


/* =====================================================
   PANEL
===================================================== */

.global-input-panel {
    position: absolute;
    inset: 0;

    width: 100%;
    height: 100%;

    box-sizing: border-box;

    display: flex;
    flex-direction: column;

    overflow: hidden;

    background: #ffffff;
    color: #253f3d;
}


/* =====================================================
   HEADER
===================================================== */

.global-input-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;

    gap: 16px;

    padding: 20px;

    box-sizing: border-box;

    background: #ffffff;

    border-bottom: 1px solid #e5e9e8;

    flex-shrink: 0;
}


/* =====================================================
   HEADING
===================================================== */

.global-input-heading {
    display: flex;
    flex-direction: column;

    gap: 5px;
}


.global-input-heading h2 {
    margin: 0;

    color: #253f3d;

    font-size: 20px;
    line-height: 1.3;
    font-weight: 700;
}


.global-input-heading span {
    color: #7d8988;

    font-size: 12px;
    line-height: 1.4;
}


/* =====================================================
   CLOSE
===================================================== */

.global-input-close {
    width: 36px;
    height: 36px;

    flex-shrink: 0;

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

    padding: 0;

    border: none;
    border-radius: 50%;

    background: #f1f5f4;
    color: #334b4a;

    font-size: 20px;
    line-height: 1;
    font-family: inherit;

    cursor: pointer;
}


.global-input-close:active {
    transform: scale(.94);
}


/* =====================================================
   CONTENT
===================================================== */

.global-input-content {
    flex: 1;
    min-height: 0;

    width: 100%;

    box-sizing: border-box;

    padding: 20px;

    overflow-y: auto;
    overflow-x: hidden;

    background: #ffffff;
}


/* =====================================================
   SESSION
===================================================== */

.global-input-session {
    display: flex;
    flex-direction: column;

    gap: 4px;

    width: 100%;

    margin: 0 0 20px;
}


/* =====================================================
   META ROW
===================================================== */

.global-input-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;

    width: 100%;
    min-height: 40px;

    padding: 8px 0;

    box-sizing: border-box;
}


/* =====================================================
   META LABEL
===================================================== */

.global-input-meta span {
    flex: 1;
    min-width: 0;

    color: #354846;

    font-size: 15px;
    line-height: 1.4;
}


/* =====================================================
   META VALUE
===================================================== */

.global-input-meta strong {
    flex-shrink: 0;
    min-width: 120px;

    text-align: right;

    color: #294845;

    font-size: 15px;
    line-height: 1.4;
    font-weight: 700;
}


/* =====================================================
   DATE
===================================================== */

.global-input-date {
    flex-shrink: 0;

    width: 145px;
    min-height: 40px;

    padding: 8px 10px;

    box-sizing: border-box;

    border: 1px solid #d7dfdd;
    border-radius: 10px;

    background: #ffffff;
    color: #294845;

    font-size: 14px;
    font-family: inherit;

    outline: none;
}


.global-input-date:focus {
    border-color: #6f9994;
}


/* =====================================================
   DYNAMIC FORM
===================================================== */

.global-input-form {
    display: flex;
    flex-direction: column;

    gap: 16px;

    width: 100%;
}


/* =====================================================
   FORM FIELD
===================================================== */

.global-input-field {
    display: flex;
    flex-direction: column;

    gap: 7px;

    width: 100%;
}


/* =====================================================
   FORM LABEL
===================================================== */

.global-input-field label {
    color: #667574;

    font-size: 13px;
    line-height: 1.4;
    font-weight: 600;
}


/* =====================================================
   FORM INPUT
===================================================== */

.global-input-field input,
.global-input-field select,
.global-input-field textarea {
    width: 100%;
    min-height: 46px;

    padding: 10px 12px;

    box-sizing: border-box;

    border: 1px solid #d7dfdd;
    border-radius: 12px;

    background: #ffffff;
    color: #253f3d;

    font-size: 15px;
    font-family: inherit;

    outline: none;
}


/* =====================================================
   TEXTAREA
===================================================== */

.global-input-field textarea {
    min-height: 90px;

    resize: vertical;
}


/* =====================================================
   FORM FOCUS
===================================================== */

.global-input-field input:focus,
.global-input-field select:focus,
.global-input-field textarea:focus {
    border-color: #6f9994;
}


/* =====================================================
   ADD TRANSACTION
===================================================== */

.global-input-action {
    width: 100%;

    margin-top: 20px;

    box-sizing: border-box;
}


.global-input-add {
    width: 100%;
    min-height: 50px;

    padding: 12px 16px;

    box-sizing: border-box;

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

    gap: 8px;

    border: 1px solid #253f3d;
    border-radius: 12px;

    background: #ffffff;
    color: #253f3d;

    font-size: 16px;
    font-weight: 700;
    font-family: inherit;

    cursor: pointer;

    transition:
        background-color .2s ease,
        transform .1s ease;
}


.global-input-add:hover {
    background: #f5f8f7;
}


.global-input-add:active {
    background: #eef3f2;

    transform: scale(.98);
}


/* =====================================================
   CURRENT INPUT SECTION
===================================================== */

.global-input-list-section {
    width: 100%;

    margin-top: 24px;

    box-sizing: border-box;
}


/* =====================================================
   LIST HEADER
===================================================== */

.global-input-list-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 12px;

    width: 100%;

    margin-bottom: 12px;
}


/* =====================================================
   LIST TITLE
===================================================== */

.global-input-list-header h3 {
    margin: 0;

    color: #253f3d;

    font-size: 17px;
    line-height: 1.3;
}


/* =====================================================
   LIST DESCRIPTION
===================================================== */

.global-input-list-header p {
    margin: 4px 0 0;

    color: #81908f;

    font-size: 12px;
    line-height: 1.4;
}


/* =====================================================
   COUNT
===================================================== */

.global-input-count {
    min-width: 32px;
    height: 32px;

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

    flex-shrink: 0;

    border-radius: 50%;

    background: #f1f5f4;
    color: #294845;

    font-size: 13px;
    font-weight: 700;
}


/* =====================================================
   CURRENT INPUT LIST
===================================================== */

.global-input-list {
    display: flex;
    flex-direction: column;

    gap: 12px;

    width: 100%;

    box-sizing: border-box;
}


/* =====================================================
   INPUT LIST ITEM
===================================================== */

.global-input-list-item {
    width: 100%;

    padding: 14px;

    box-sizing: border-box;

    border: 1px solid #dfe6e4;
    border-radius: 12px;

    background: #f7f9f8;
    color: #253f3d;
}


/* =====================================================
   INPUT ITEM CONTENT
===================================================== */

.global-input-list-item > div {
    width: 100%;

    box-sizing: border-box;

    color: #4f5f5d;

    font-size: 14px;
    line-height: 1.5;
}


/* =====================================================
   INPUT ITEM TITLE
===================================================== */

.global-input-list-item strong {
    display: block;

    margin-bottom: 5px;

    color: #294845;

    font-size: 15px;
    line-height: 1.4;
    font-weight: 700;
}


/* =====================================================
   INPUT ITEM ACTIONS
===================================================== */

.global-input-item-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;

    width: 100%;

    margin-top: 12px;
    padding-top: 10px;

    box-sizing: border-box;

    border-top: 1px solid #e1e7e5;
}


/* =====================================================
   DELETE BUTTON
===================================================== */

.global-input-item-actions button {
    min-height: 30px;

    padding: 4px 2px;

    border: none;

    background: transparent;
    color: #a85b5b;

    font-size: 13px;
    line-height: 1.4;
    font-weight: 600;
    font-family: inherit;

    cursor: pointer;
}


.global-input-item-actions button:hover {
    color: #8f4545;
}


.global-input-item-actions button:active {
    transform: scale(.96);
}


/* =====================================================
   FOOTER
===================================================== */

.global-input-footer {
    width: 100%;

    flex-shrink: 0;

    padding: 14px 20px 20px;

    box-sizing: border-box;

    background: #ffffff;

    border-top: 1px solid #e5e9e8;
}


/* =====================================================
   CONFIRM BUTTON
===================================================== */

.global-input-confirm {
    width: 100%;
    min-height: 50px;

    padding: 12px 16px;

    border: none;
    border-radius: 12px;

    background: #253f3d;
    color: #ffffff;

    font-size: 16px;
    font-weight: 700;
    font-family: inherit;

    cursor: pointer;
}


.global-input-confirm:active {
    transform: scale(.98);
}


/* =====================================================
   BODY LOCK
===================================================== */

body.input-open {
    overflow: hidden;
}


/* =====================================================
   HIDDEN
===================================================== */

.hidden {
    display: none !important;
}


/* =====================================================
   CUSTOM SELECT WRAPPER
===================================================== */

.global-input-custom-select-wrapper {
    position: relative;

    width: 100%;
}


/* =====================================================
   CUSTOM SELECT BUTTON
===================================================== */

.global-input-custom-select {
    width: 100%;
    min-height: 56px;

    padding: 14px 18px;

    border: 1px solid #d6dcdc;
    border-radius: 16px;

    background: #ffffff;
    color: #263f3c;

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

    gap: 12px;

    font-size: 16px;
    font-family: inherit;
    text-align: left;

    cursor: pointer;

    transition:
        border-color .2s ease,
        box-shadow .2s ease,
        background .2s ease;
}


.global-input-custom-select:hover {
    border-color: #9aabaa;
}


.global-input-custom-select:focus {
    outline: none;

    border-color: #284b47;

    box-shadow:
        0 0 0 3px rgba(40, 75, 71, .10);
}


.global-input-custom-select.has-value {
    color: #263f3c;
}


.global-input-custom-value {
    flex: 1;
    min-width: 0;

    overflow: hidden;

    text-overflow: ellipsis;
    white-space: nowrap;
}


.global-input-custom-arrow {
    flex-shrink: 0;

    color: #687875;

    font-size: 16px;
    line-height: 1;

    transition:
        transform .2s ease;
}


.global-input-custom-select:focus .global-input-custom-arrow {
    transform: rotate(180deg);
}


/* =====================================================
   FIELD NOTE
===================================================== */

.global-input-field-note {
    display: block;

    margin-top: 8px;

    color: #7b8987;

    font-size: 14px;
    line-height: 1.45;
}


/* =====================================================
   PICKER ROOT
===================================================== */

.global-input-picker {
    position: fixed;
    inset: 0;

    z-index: 99999;

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

    visibility: hidden;
    opacity: 0;

    transition:
        opacity .2s ease,
        visibility .2s ease;
}


.global-input-picker.is-open {
    visibility: visible;
    opacity: 1;
}


.global-input-picker-backdrop {
    position: absolute;
    inset: 0;

    background: rgba(0, 0, 0, .38);
}


.global-input-picker-panel {
    position: relative;

    z-index: 1;

    width: min(100%, 560px);

    max-height: 75vh;

    margin: 0 12px 12px;

    overflow: hidden;

    background: #ffffff;

    border-radius: 24px;

    box-shadow:
        0 20px 60px rgba(0, 0, 0, .22);

    transform: translateY(24px);

    transition:
        transform .25s ease;
}


.global-input-picker.is-open
.global-input-picker-panel {
    transform: translateY(0);
}


.global-input-picker-header {
    min-height: 64px;

    padding: 16px 20px;

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

    gap: 16px;

    border-bottom: 1px solid #e5e9e8;
}


.global-input-picker-header strong {
    color: #263f3c;

    font-size: 18px;
    line-height: 1.3;
}


.global-input-picker-close {
    width: 40px;
    height: 40px;

    border: 0;
    border-radius: 50%;

    background: #eef3f2;
    color: #263f3c;

    font-size: 24px;
    line-height: 1;

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

    cursor: pointer;
}


.global-input-picker-list {
    max-height: calc(75vh - 64px);

    overflow-y: auto;

    overscroll-behavior: contain;
}


.global-input-picker-option {
    position: relative;

    width: 100%;
    min-height: 68px;

    padding: 16px 20px;

    border: 0;
    border-bottom: 1px solid #edf0ef;

    background: #ffffff;
    color: #263f3c;

    display: grid;

    grid-template-columns: 1fr auto;

    align-items: center;

    column-gap: 16px;

    text-align: left;
    font-family: inherit;

    cursor: pointer;

    transition:
        background .15s ease;
}


.global-input-picker-option:hover {
    background: #f4f7f6;
}


.global-input-picker-option.selected {
    background: #f0f5f4;
}


.global-input-picker-option-content {
    min-width: 0;

    font-size: 17px;
    line-height: 1.4;
}


.global-input-picker-radio {
    width: 28px;
    height: 28px;

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

    flex-shrink: 0;

    color: #8b9694;

    font-size: 28px;
    line-height: 1;
}


.global-input-picker-option.selected
.global-input-picker-radio {
    color: #e88ca2;
}


.global-input-picker-option-note {
    grid-column: 1 / -1;

    margin-top: 4px;

    color: #7b8987;

    font-size: 13px;
    line-height: 1.4;
}



/* =====================================================
   EDIT INPUT MENU
===================================================== */

.global-edit-input-list {
    display: flex;
    flex-direction: column;

    gap: 12px;

    width: 100%;
}


.global-edit-input-item {
    width: 100%;
    min-height: 92px;

    padding: 16px;

    box-sizing: border-box;

    border: 0;
    border-radius: 18px;

    background: #ffffff;
    color: #253f3d;

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

    gap: 14px;

    font-family: inherit;
    text-align: left;

    cursor: pointer;

    transition:
        background-color .2s ease,
        transform .1s ease;
}


.global-edit-input-item-left {
    display: flex;
    align-items: center;

    gap: 14px;

    min-width: 0;
}


.global-edit-input-item-icon {
    width: 48px;
    height: 48px;

    flex-shrink: 0;

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

    border-radius: 14px;

    background: #eef3ff;

    font-size: 24px;
    line-height: 1;
}


.global-edit-input-item-content {
    display: flex;
    flex-direction: column;

    gap: 4px;

    min-width: 0;
}


.global-edit-input-item-title {
    color: #253f3d;

    font-size: 15px;
    line-height: 1.35;
    font-weight: 700;
}


.global-edit-input-item-description {
    color: #7d8988;

    font-size: 13px;
    line-height: 1.4;
}


.global-edit-input-item-arrow {
    flex-shrink: 0;

    color: #9aa3a2;

    font-size: 24px;
    line-height: 1;
}


.global-edit-input-item:active {
    background: #f4f7f6;

    transform: scale(.985);
}


/* =====================================================
   AIRDROP EDIT REWARD
   LEGACY COMPATIBILITY
===================================================== */

.airdrop-edit-reward-overlay {
    position: fixed;
    inset: 0;

    z-index: 9999;

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

    background: rgba(15, 23, 42, .45);

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transition:
        opacity .2s ease,
        visibility .2s ease;
}


.airdrop-edit-reward-overlay.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}


.airdrop-edit-reward-panel {
    position: relative;

    width: 100%;
    max-width: 680px;

    max-height: 90vh;

    box-sizing: border-box;

    overflow: hidden;

    background: #ffffff;

    border-radius: 28px 28px 0 0;

    box-shadow:
        0 20px 60px rgba(0, 0, 0, .25);

    transform: translateY(30px);

    transition:
        transform .25s ease;
}


.airdrop-edit-reward-overlay.is-open
.airdrop-edit-reward-panel {
    transform: translateY(0);
}


.airdrop-edit-reward-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 16px;

    padding: 24px 24px 18px;

    border-bottom: 1px solid #e5e7eb;

    flex-shrink: 0;
}


.airdrop-edit-reward-header h2 {
    margin: 0;

    color: #111827;

    font-size: 24px;
    line-height: 1.3;
    font-weight: 700;
}


.airdrop-edit-reward-close {
    width: 40px;
    height: 40px;

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

    flex-shrink: 0;

    padding: 0;

    border: 0;
    border-radius: 50%;

    background: transparent;
    color: #111827;

    font-size: 30px;
    line-height: 1;

    cursor: pointer;
}


.airdrop-edit-reward-close:active {
    transform: scale(.94);
}


.airdrop-edit-reward-content {
    padding: 20px 24px 28px;

    max-height: calc(90vh - 90px);

    overflow-y: auto;
    overscroll-behavior: contain;
}


.airdrop-edit-reward-picker {
    display: flex;
    flex-direction: column;

    gap: 14px;
}


.airdrop-reward-title {
    margin: 0 0 2px;

    color: #111827;

    font-size: 17px;
    line-height: 1.4;
    font-weight: 700;
}


.airdrop-reward-project-list {
    display: flex;
    flex-direction: column;

    gap: 10px;

    width: 100%;

    max-height: 350px;

    overflow-y: auto;

    padding-right: 3px;

    overscroll-behavior: contain;
}


.airdrop-reward-project {
    width: 100%;
    min-height: 66px;

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

    gap: 14px;

    padding: 14px 16px;

    box-sizing: border-box;

    border: 1px solid #e5e7eb;
    border-radius: 14px;

    background: #ffffff;
    color: #111827;

    text-align: left;
    font-family: inherit;

    cursor: pointer;

    transition:
        background .15s ease,
        border-color .15s ease,
        transform .15s ease;
}


.airdrop-reward-project:hover {
    background: #f9fafb;
}


.airdrop-reward-project:active {
    transform: scale(.99);
}


.airdrop-reward-project.selected {
    border-color: #2563eb;

    background: #eff6ff;
}


.airdrop-reward-project-name {
    min-width: 0;

    color: #111827;

    font-size: 16px;
    line-height: 1.4;
    font-weight: 600;

    overflow: hidden;

    text-overflow: ellipsis;
    white-space: nowrap;
}


.airdrop-reward-project small {
    flex-shrink: 0;

    color: #6b7280;

    font-size: 13px;
    line-height: 1.4;
}


.airdrop-reward-empty {
    padding: 20px;

    border-radius: 14px;

    background: #f9fafb;
    color: #6b7280;

    text-align: center;

    font-size: 14px;
    line-height: 1.5;
}


.airdrop-edit-reward-selected-container {
    margin-top: 20px;
}


.airdrop-reward-selected {
    display: flex;
    flex-direction: column;

    gap: 14px;

    padding: 18px;

    border: 1px solid #e5e7eb;
    border-radius: 18px;

    background: #f9fafb;
}


.airdrop-reward-info {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 16px;
}


.airdrop-reward-info span {
    color: #6b7280;

    font-size: 14px;
    line-height: 1.4;
}


.airdrop-reward-info strong {
    min-width: 0;

    color: #111827;

    font-size: 15px;
    line-height: 1.4;

    text-align: right;

    overflow-wrap: anywhere;
}


.airdrop-reward-info.locked {
    opacity: .75;
}


.airdrop-reward-status,
.airdrop-reward-amount {
    display: flex;
    flex-direction: column;

    gap: 7px;
}


.airdrop-reward-status label,
.airdrop-reward-amount label {
    color: #374151;

    font-size: 14px;
    line-height: 1.4;
    font-weight: 600;
}


.airdrop-edit-reward-panel
.global-input-action-button {
    width: 100%;
    min-height: 48px;

    margin-top: 4px;

    padding: 12px 16px;

    box-sizing: border-box;

    border: 0;
    border-radius: 14px;

    background: #111827;
    color: #ffffff;

    font-size: 16px;
    line-height: 1.4;
    font-weight: 600;
    font-family: inherit;

    cursor: pointer;
}


.airdrop-edit-reward-panel
.global-input-action-button:disabled {
    opacity: .45;

    cursor: not-allowed;
}


.airdrop-edit-reward-pending {
    display: flex;
    flex-direction: column;

    gap: 12px;

    margin-top: 24px;

    padding-top: 20px;

    border-top: 1px solid #e5e7eb;
}


.airdrop-edit-reward-pending-title {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 12px;
}


.airdrop-edit-reward-pending-title h3 {
    margin: 0;

    color: #111827;

    font-size: 17px;
    line-height: 1.4;
    font-weight: 700;
}


.airdrop-edit-reward-pending-count {
    min-width: 28px;
    height: 28px;

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

    padding: 0 8px;

    box-sizing: border-box;

    border-radius: 999px;

    background: #eef3f2;
    color: #294845;

    font-size: 12px;
    font-weight: 700;
}


.airdrop-edit-reward-pending-list {
    display: flex;
    flex-direction: column;

    gap: 10px;

    width: 100%;
}


.airdrop-edit-reward-pending-item {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 12px;

    width: 100%;

    padding: 12px 14px;

    box-sizing: border-box;

    border: 1px solid #e5e7eb;
    border-radius: 14px;

    background: #f9fafb;
}


.airdrop-edit-reward-pending-item-info {
    min-width: 0;

    display: flex;
    flex-direction: column;

    gap: 3px;
}


.airdrop-edit-reward-pending-item-info strong {
    color: #111827;

    font-size: 14px;
    line-height: 1.4;
    font-weight: 700;

    overflow-wrap: anywhere;
}


.airdrop-edit-reward-pending-item-info span {
    color: #6b7280;

    font-size: 12px;
    line-height: 1.4;
}


.airdrop-edit-reward-pending-remove {
    flex-shrink: 0;

    min-height: 32px;

    padding: 5px 8px;

    border: 0;

    background: transparent;
    color: #a85b5b;

    font-size: 13px;
    line-height: 1.4;
    font-weight: 600;
    font-family: inherit;

    cursor: pointer;
}


.airdrop-edit-reward-confirm {
    width: 100%;

    margin-top: 20px;
}


.airdrop-edit-reward-confirm button {
    width: 100%;
    min-height: 50px;

    padding: 12px 16px;

    box-sizing: border-box;

    border: 0;
    border-radius: 14px;

    background: #253f3d;
    color: #ffffff;

    font-size: 16px;
    line-height: 1.4;
    font-weight: 700;
    font-family: inherit;

    cursor: pointer;
}


.airdrop-edit-reward-confirm button:disabled {
    opacity: .45;

    cursor: not-allowed;
}


.airdrop-reward-project-list::-webkit-scrollbar,
.airdrop-edit-reward-content::-webkit-scrollbar {
    width: 5px;
}


.airdrop-reward-project-list::-webkit-scrollbar-track,
.airdrop-edit-reward-content::-webkit-scrollbar-track {
    background: transparent;
}


.airdrop-reward-project-list::-webkit-scrollbar-thumb,
.airdrop-edit-reward-content::-webkit-scrollbar-thumb {
    border-radius: 999px;

    background: #d5dddb;
}


/* =====================================================
   GLOBAL UPDATE DATA
   ROOT
===================================================== */

.global-update-data-overlay {
    position: fixed;
    inset: 0;

    z-index: 11000;

    width: 100%;
    height: 100%;

    box-sizing: border-box;

    display: flex;
    flex-direction: column;

    visibility: hidden;
    opacity: 0;
    pointer-events: none;

    background: #ffffff;

    transition:
        opacity .2s ease,
        visibility .2s ease;
}


.global-update-data-overlay.is-open {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}


/* =====================================================
   BACKDROP
===================================================== */

.global-update-data-backdrop {
    position: absolute;
    inset: 0;

    width: 100%;
    height: 100%;

    background: #ffffff;
}


/* =====================================================
   PANEL
===================================================== */

.global-update-data-panel {
    position: relative;
    z-index: 1;

    width: 100%;
    height: 100%;

    box-sizing: border-box;

    display: flex;
    flex-direction: column;

    overflow: hidden;

    background: #ffffff;
    color: #253f3d;
}


/* =====================================================
   HEADER
===================================================== */

.global-update-data-header {
    width: 100%;

    flex-shrink: 0;

    display: flex;
    align-items: flex-start;
    justify-content: space-between;

    gap: 16px;

    padding: 20px;

    box-sizing: border-box;

    background: #ffffff;

    border-bottom: 1px solid #e5e9e8;
}


.global-update-data-heading {
    min-width: 0;

    display: flex;
    flex-direction: column;

    gap: 5px;
}


.global-update-data-heading h2 {
    margin: 0;

    color: #253f3d;

    font-size: 20px;
    line-height: 1.3;
    font-weight: 700;

    overflow-wrap: anywhere;
}


.global-update-data-heading span {
    color: #7d8988;

    font-size: 12px;
    line-height: 1.4;

    overflow-wrap: anywhere;
}


.global-update-data-close {
    width: 36px;
    height: 36px;

    flex-shrink: 0;

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

    padding: 0;

    border: none;
    border-radius: 50%;

    background: #f1f5f4;
    color: #334b4a;

    font-size: 20px;
    line-height: 1;
    font-family: inherit;

    cursor: pointer;

    transition:
        background-color .15s ease,
        transform .1s ease;
}


.global-update-data-close:hover {
    background: #e9efed;
}


.global-update-data-close:active {
    transform: scale(.94);
}


/* =====================================================
   CONTENT
===================================================== */

.global-update-data-content {
    flex: 1;
    min-height: 0;

    width: 100%;

    box-sizing: border-box;

    padding: 20px;

    overflow-y: auto;
    overflow-x: hidden;

    overscroll-behavior: contain;

    background: #ffffff;
}


/* =====================================================
   PICKER
===================================================== */

.global-update-data-picker {
    width: 100%;

    margin: 0;

    box-sizing: border-box;
}


.global-update-data-picker-label {
    display: block;

    margin: 0 0 8px;

    color: #667574;

    font-size: 13px;
    line-height: 1.4;
    font-weight: 600;
}


.global-update-data-picker-button {
    width: 100%;
    min-height: 56px;

    padding: 14px 16px;

    box-sizing: border-box;

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

    gap: 12px;

    border: 1px solid #d6dcdc;
    border-radius: 16px;

    background: #ffffff;
    color: #263f3c;

    font-size: 16px;
    line-height: 1.4;
    font-family: inherit;
    text-align: left;

    cursor: pointer;

    transition:
        border-color .2s ease,
        box-shadow .2s ease,
        background .2s ease;
}


.global-update-data-picker-button:hover {
    border-color: #9aabaa;

    background: #fbfcfc;
}


.global-update-data-picker-button:focus {
    outline: none;

    border-color: #284b47;

    box-shadow:
        0 0 0 3px rgba(40, 75, 71, .10);
}


.global-update-data-picker-button:disabled {
    opacity: .55;

    cursor: not-allowed;
}


.global-update-data-picker-value {
    flex: 1;
    min-width: 0;

    overflow: hidden;

    text-overflow: ellipsis;
    white-space: nowrap;
}


.global-update-data-picker-arrow {
    flex-shrink: 0;

    color: #687875;

    font-size: 16px;
    line-height: 1;

    transition:
        transform .2s ease;
}


.global-update-data-picker-button.is-open
.global-update-data-picker-arrow {
    transform: rotate(180deg);
}


/* =====================================================
   PICKER PANEL
===================================================== */

.global-update-data-picker-panel {
    position: relative;

    width: 100%;

    margin-top: 10px;

    box-sizing: border-box;

    overflow: hidden;

    border: 1px solid #dfe6e4;
    border-radius: 18px;

    background: #ffffff;

    box-shadow:
        0 12px 32px rgba(37, 63, 61, .10);
}


.global-update-data-picker-search {
    width: 100%;
    min-height: 46px;

    padding: 10px 14px;

    box-sizing: border-box;

    border: 0;
    border-bottom: 1px solid #e5e9e8;

    background: #ffffff;
    color: #253f3d;

    font-size: 14px;
    line-height: 1.4;
    font-family: inherit;

    outline: none;
}


.global-update-data-picker-search::placeholder {
    color: #9aa5a3;
}


.global-update-data-picker-search:focus {
    background: #fbfcfc;
}


/* =====================================================
   PICKER LIST
   Approximately 5 records
===================================================== */

.global-update-data-picker-list {
    width: 100%;

    max-height: 340px;

    overflow-y: auto;
    overflow-x: hidden;

    overscroll-behavior: contain;
}


/* =====================================================
   PICKER OPTION
===================================================== */

.global-update-data-picker-option {
    width: 100%;
    min-height: 66px;

    padding: 13px 16px;

    box-sizing: border-box;

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

    gap: 14px;

    border: 0;
    border-bottom: 1px solid #edf0ef;

    background: #ffffff;
    color: #263f3c;

    text-align: left;
    font-family: inherit;

    cursor: pointer;

    transition:
        background-color .15s ease;
}


.global-update-data-picker-option:last-child {
    border-bottom: 0;
}


.global-update-data-picker-option:hover {
    background: #f7f9f8;
}


.global-update-data-picker-option:active,
.global-update-data-picker-option.selected {
    background: #f0f5f4;
}


.global-update-data-picker-option-content {
    min-width: 0;

    flex: 1;

    display: flex;
    flex-direction: column;

    gap: 3px;
}


.global-update-data-picker-option-content strong {
    display: block;

    color: #253f3d;

    font-size: 15px;
    line-height: 1.4;
    font-weight: 700;

    overflow-wrap: anywhere;
}


.global-update-data-picker-option-content span {
    display: block;

    color: #7d8988;

    font-size: 12px;
    line-height: 1.4;

    overflow-wrap: anywhere;
}


.global-update-data-picker-option-arrow {
    flex-shrink: 0;

    color: #9aa3a2;

    font-size: 20px;
    line-height: 1;
}


.global-update-data-empty {
    width: 100%;

    padding: 24px 16px;

    box-sizing: border-box;

    color: #7d8988;

    text-align: center;

    font-size: 14px;
    line-height: 1.5;
}


/* =====================================================
   DETAIL
===================================================== */

.global-update-data-detail {
    width: 100%;

    margin-top: 20px;

    box-sizing: border-box;
}


.global-update-data-detail-card {
    width: 100%;

    padding: 18px;

    box-sizing: border-box;

    border: 1px solid #dfe6e4;
    border-radius: 18px;

    background: #f7f9f8;
}


.global-update-data-detail-title {
    margin: 0 0 14px;

    color: #253f3d;

    font-size: 17px;
    line-height: 1.4;
    font-weight: 700;
}


.global-update-data-detail-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;

    gap: 16px;

    width: 100%;

    padding: 9px 0;

    box-sizing: border-box;

    border-bottom: 1px solid #e4eae8;
}


.global-update-data-detail-row:last-child {
    border-bottom: 0;
}


.global-update-data-detail-row span {
    flex: 0 0 auto;

    color: #7d8988;

    font-size: 13px;
    line-height: 1.4;
}


.global-update-data-detail-row strong {
    min-width: 0;

    color: #294845;

    font-size: 14px;
    line-height: 1.4;
    font-weight: 700;

    text-align: right;

    overflow-wrap: anywhere;
}


/* =====================================================
   FIELDS
===================================================== */

.global-update-data-fields {
    display: flex;
    flex-direction: column;

    gap: 16px;

    width: 100%;

    margin-top: 20px;
}


.global-update-data-field {
    display: flex;
    flex-direction: column;

    gap: 7px;

    width: 100%;
}


.global-update-data-field label {
    color: #667574;

    font-size: 13px;
    line-height: 1.4;
    font-weight: 600;
}


.global-update-data-field input,
.global-update-data-field select,
.global-update-data-field textarea {
    width: 100%;
    min-height: 46px;

    padding: 10px 12px;

    box-sizing: border-box;

    border: 1px solid #d7dfdd;
    border-radius: 12px;

    background: #ffffff;
    color: #253f3d;

    font-size: 15px;
    line-height: 1.4;
    font-family: inherit;

    outline: none;

    transition:
        border-color .15s ease,
        box-shadow .15s ease,
        background-color .15s ease;
}


.global-update-data-field textarea {
    min-height: 90px;

    resize: vertical;
}


.global-update-data-field input:focus,
.global-update-data-field select:focus,
.global-update-data-field textarea:focus {
    border-color: #6f9994;

    box-shadow:
        0 0 0 2px rgba(111, 153, 148, .08);
}


.global-update-data-field input:disabled,
.global-update-data-field select:disabled,
.global-update-data-field textarea:disabled {
    background: #f1f4f3;
    color: #7d8988;

    cursor: not-allowed;
}


.global-update-data-field-note {
    display: block;

    color: #7d8988;

    font-size: 12px;
    line-height: 1.45;

    overflow-wrap: anywhere;
}


/* =====================================================
   CUSTOM FIELD SELECT
===================================================== */

.global-update-data-field-select {
    width: 100%;
    min-height: 52px;

    padding: 13px 15px;

    box-sizing: border-box;

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

    gap: 12px;

    border: 1px solid #d6dcdc;
    border-radius: 14px;

    background: #ffffff;
    color: #263f3c;

    font-size: 15px;
    line-height: 1.4;
    font-family: inherit;
    text-align: left;

    cursor: pointer;

    transition:
        border-color .2s ease,
        box-shadow .2s ease,
        background-color .2s ease;
}


.global-update-data-field-select:hover {
    border-color: #9aabaa;

    background: #fbfcfc;
}


.global-update-data-field-select:focus {
    outline: none;

    border-color: #284b47;

    box-shadow:
        0 0 0 3px rgba(40, 75, 71, .10);
}


.global-update-data-field-select:disabled {
    background: #f1f4f3;
    color: #7d8988;

    cursor: not-allowed;

    opacity: .75;
}


.global-update-data-field-select-value {
    flex: 1;
    min-width: 0;

    overflow: hidden;

    text-overflow: ellipsis;
    white-space: nowrap;
}


.global-update-data-field-select-arrow {
    flex-shrink: 0;

    color: #687875;

    font-size: 15px;
    line-height: 1;
}


/* =====================================================
   ACTION
===================================================== */

.global-update-data-action {
    width: 100%;

    margin-top: 20px;

    box-sizing: border-box;
}


.global-update-data-add {
    width: 100%;
    min-height: 50px;

    padding: 12px 16px;

    box-sizing: border-box;

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

    gap: 8px;

    border: 0;
    border-radius: 14px;

    background: #253f3d;
    color: #ffffff;

    font-size: 16px;
    line-height: 1.4;
    font-weight: 700;

    font-family: inherit;

    cursor: pointer;

    transition:
        opacity .15s ease,
        transform .1s ease,
        background-color .15s ease;
}


.global-update-data-add:hover {
    background: #1f3634;
}


.global-update-data-add:disabled {
    opacity: .45;

    cursor: not-allowed;
}


.global-update-data-add:not(:disabled):active {
    transform: scale(.98);
}


/* =====================================================
   PENDING
===================================================== */

.global-update-data-pending {
    width: 100%;

    margin-top: 28px;
    padding-top: 20px;

    box-sizing: border-box;

    border-top: 1px solid #e5e9e8;
}


.global-update-data-pending-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 12px;

    width: 100%;

    margin-bottom: 12px;
}


.global-update-data-pending-header h3 {
    margin: 0;

    color: #253f3d;

    font-size: 17px;
    line-height: 1.4;
    font-weight: 700;
}


.global-update-data-pending-count {
    min-width: 28px;
    height: 28px;

    padding: 0 8px;

    box-sizing: border-box;

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

    border-radius: 999px;

    background: #f1f5f4;
    color: #294845;

    font-size: 12px;
    font-weight: 700;
}


.global-update-data-pending-list {
    display: flex;
    flex-direction: column;

    gap: 10px;

    width: 100%;
}


.global-update-data-pending-item {
    width: 100%;

    padding: 13px 14px;

    box-sizing: border-box;

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

    gap: 12px;

    border: 1px solid #dfe6e4;
    border-radius: 14px;

    background: #f7f9f8;
}


.global-update-data-pending-item-content {
    min-width: 0;

    flex: 1;

    display: flex;
    flex-direction: column;

    gap: 3px;
}


.global-update-data-pending-item-content strong {
    color: #294845;

    font-size: 14px;
    line-height: 1.4;
    font-weight: 700;

    overflow-wrap: anywhere;
}


.global-update-data-pending-item-content span {
    color: #7d8988;

    font-size: 12px;
    line-height: 1.4;

    overflow-wrap: anywhere;
}


.global-update-data-remove {
    flex-shrink: 0;

    min-height: 32px;

    padding: 5px 8px;

    border: 0;

    background: transparent;
    color: #a85b5b;

    font-size: 13px;
    line-height: 1.4;
    font-weight: 600;
    font-family: inherit;

    cursor: pointer;

    transition:
        color .15s ease,
        transform .1s ease;
}


.global-update-data-remove:hover {
    color: #8f4545;
}


.global-update-data-remove:active {
    transform: scale(.96);
}


/* =====================================================
   CONFIRM
===================================================== */

.global-update-data-confirm {
    width: 100%;

    margin-top: 20px;

    padding: 0 20px 20px;

    box-sizing: border-box;

    flex-shrink: 0;

    background: #ffffff;

    border-top: 1px solid #e5e9e8;
}


.global-update-data-confirm button {
    width: 100%;
    min-height: 50px;

    margin-top: 14px;

    padding: 12px 16px;

    box-sizing: border-box;

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

    gap: 8px;

    border: 0;
    border-radius: 14px;

    background: #253f3d;
    color: #ffffff;

    font-size: 16px;
    line-height: 1.4;
    font-weight: 700;
    font-family: inherit;

    cursor: pointer;

    transition:
        opacity .15s ease,
        transform .1s ease,
        background-color .15s ease;
}


.global-update-data-confirm button:hover {
    background: #1f3634;
}


.global-update-data-confirm button:disabled {
    opacity: .45;

    cursor: not-allowed;
}


.global-update-data-confirm button:not(:disabled):active {
    transform: scale(.98);
}


/* =====================================================
   LOADING
===================================================== */

.global-update-data-loading {
    width: 100%;

    padding: 16px;

    box-sizing: border-box;

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

    gap: 10px;

    color: #667574;

    font-size: 14px;
    line-height: 1.4;
}


.global-update-data-loading-spinner {
    width: 18px;
    height: 18px;

    flex-shrink: 0;

    border: 2px solid #d7dfdd;
    border-top-color: #253f3d;

    border-radius: 50%;

    animation:
        global-update-data-spin .7s linear infinite;
}


@keyframes global-update-data-spin {

    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }

}


/* =====================================================
   RESULT
===================================================== */

.global-update-data-result {
    width: 100%;

    margin-top: 20px;

    padding: 18px;

    box-sizing: border-box;

    border: 1px solid #dfe6e4;
    border-radius: 16px;

    background: #f7f9f8;

    color: #294845;

    font-size: 14px;
    line-height: 1.5;

    text-align: center;

    overflow-wrap: anywhere;
}


.global-update-data-result.success {
    border-color: #d6e5df;

    background: #f3f8f6;

    color: #294845;
}


.global-update-data-result.error {
    border-color: #ead9d9;

    background: #fbf6f6;

    color: #8f4545;
}


/* =====================================================
   ACCESSIBILITY
===================================================== */

.global-update-data-picker-option:focus {
    outline: none;

    background: #f0f5f4;

    box-shadow:
        inset 0 0 0 2px rgba(40, 75, 71, .08);
}


.global-update-data-picker-option[aria-disabled="true"] {
    opacity: .55;

    cursor: not-allowed;
}


/* =====================================================
   SCROLLBAR
===================================================== */

.global-update-data-content::-webkit-scrollbar,
.global-update-data-picker-list::-webkit-scrollbar {
    width: 5px;
}


.global-update-data-content::-webkit-scrollbar-track,
.global-update-data-picker-list::-webkit-scrollbar-track {
    background: transparent;
}


.global-update-data-content::-webkit-scrollbar-thumb,
.global-update-data-picker-list::-webkit-scrollbar-thumb {
    border-radius: 999px;

    background: #d5dddb;
}


/* =====================================================
   MOBILE
===================================================== */

@media (max-width: 600px) {

    .global-update-data-header {
        padding: 18px;
    }


    .global-update-data-content {
        padding: 18px;
    }


    .global-update-data-heading h2 {
        font-size: 20px;
    }


    .global-update-data-picker-list {
        max-height: 300px;
    }


    .global-update-data-picker-option {
        min-height: 64px;

        padding: 13px 14px;
    }


    .global-update-data-detail-card {
        padding: 16px;
    }


    .global-update-data-pending-item {
        align-items: flex-start;
    }


    .global-update-data-confirm {
        padding:
            0 18px 18px;
    }

}


/* =====================================================
   MOBILE SMALL
===================================================== */

@media (max-width: 480px) {

    .global-update-data-picker-button {
        min-height: 54px;

        padding: 13px 15px;
    }


    .global-update-data-field input,
    .global-update-data-field select,
    .global-update-data-field textarea {
        font-size: 15px;
    }


    .global-update-data-detail-row {
        gap: 12px;
    }


    .global-update-data-detail-row strong {
        max-width: 62%;
    }


    .global-update-data-pending-item {
        padding: 12px 13px;
    }

}


/* =====================================================
   VERY SMALL SCREEN
===================================================== */

@media (max-width: 360px) {

    .global-update-data-header {
        padding: 16px;
    }


    .global-update-data-content {
        padding: 16px;
    }


    .global-update-data-picker-list {
        max-height: 280px;
    }


    .global-update-data-picker-option {
        padding: 13px 14px;
    }


    .global-update-data-detail-card {
        padding: 15px;
    }


    .global-update-data-detail-row {
        flex-direction: column;

        gap: 3px;
    }


    .global-update-data-detail-row strong {
        max-width: 100%;

        text-align: left;
    }


    .global-update-data-pending-item {
        flex-direction: column;

        align-items: stretch;
    }


    .global-update-data-remove {
        align-self: flex-end;
    }


    .global-update-data-confirm {
        padding:
            0 16px 16px;
    }

}


/* =====================================================
   REDUCE MOTION
===================================================== */

@media (prefers-reduced-motion: reduce) {

    .global-update-data-overlay,
    .global-update-data-close,
    .global-update-data-picker-button,
    .global-update-data-picker-arrow,
    .global-update-data-picker-option,
    .global-update-data-field input,
    .global-update-data-field select,
    .global-update-data-field textarea,
    .global-update-data-field-select,
    .global-update-data-add,
    .global-update-data-remove,
    .global-update-data-confirm button {
        transition: none;
    }


    .global-update-data-loading-spinner {
        animation: none;
    }

}

/* =====================================================
   GLOBAL UPDATE DATA
   DIRECT RECORD LIST
   Version : 1.2.0

   Concept :
   - Direct card list
   - Search above list
   - Internal scrolling
   - No record picker
   - Detail after selection
   - Edit fields
   - Tambahkan
   - Pending
   - Konfirmasi
===================================================== */


/* =====================================================
   RECORD SECTION
===================================================== */

.global-update-data-record-section{
    width:100%;
    margin:0 0 20px;
}


.global-update-data-record-header{
    display:flex;
    align-items:center;
    justify-content:space-between;
    margin:0 0 10px;
}


.global-update-data-record-title{
    margin:0;
    font-size:18px;
    line-height:1.3;
    font-weight:700;
}


/* =====================================================
   SEARCH
===================================================== */

.global-update-data-record-search-wrap{
    position:relative;
    width:100%;
    margin-bottom:12px;
}


.global-update-data-record-search-icon{
    position:absolute;
    left:15px;
    top:50%;
    transform:translateY(-50%);
    pointer-events:none;
    font-size:16px;
    line-height:1;
    opacity:.65;
}


.global-update-data-record-search{
    width:100%;
    min-height:48px;
    box-sizing:border-box;
    padding:0 15px 0 43px;
    border:1px solid #d6dddd;
    border-radius:14px;
    background:#fff;
    color:#263b3b;
    font-size:16px;
    outline:none;
    transition:
        border-color .2s ease,
        box-shadow .2s ease,
        background .2s ease;
}


.global-update-data-record-search::placeholder{
    color:#899494;
}


.global-update-data-record-search:focus{
    border-color:#9aabab;
    box-shadow:0 0 0 3px rgba(100,120,120,.10);
}


/* =====================================================
   DIRECT RECORD LIST
===================================================== */

.global-update-data-record-list{
    width:100%;
    max-height:350px;
    overflow-y:auto;
    overflow-x:hidden;
    box-sizing:border-box;
    padding:2px;
    border-radius:16px;
    overscroll-behavior:contain;
    -webkit-overflow-scrolling:touch;
}


.global-update-data-record-list::-webkit-scrollbar{
    width:6px;
}


.global-update-data-record-list::-webkit-scrollbar-track{
    background:transparent;
}


.global-update-data-record-list::-webkit-scrollbar-thumb{
    background:#c4cece;
    border-radius:20px;
}


/* =====================================================
   RECORD CARD
===================================================== */

.global-update-data-record-item{
    width:100%;
    min-height:68px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    box-sizing:border-box;
    padding:13px 14px;
    margin:0 0 8px;
    border:1px solid #dce3e3;
    border-radius:15px;
    background:#fff;
    color:#263b3b;
    text-align:left;
    cursor:pointer;
    appearance:none;
    -webkit-appearance:none;
    transition:
        transform .16s ease,
        border-color .16s ease,
        background .16s ease,
        box-shadow .16s ease;
}


.global-update-data-record-item:last-child{
    margin-bottom:2px;
}


.global-update-data-record-item:hover{
    border-color:#aebbbb;
    box-shadow:0 3px 12px rgba(40,60,60,.07);
}


.global-update-data-record-item:active{
    transform:scale(.99);
}


.global-update-data-record-item.selected{
    border-color:#879b9b;
    background:#f2f6f6;
    box-shadow:0 3px 12px rgba(40,60,60,.08);
}


.global-update-data-record-item-content{
    min-width:0;
    flex:1;
    display:flex;
    flex-direction:column;
    gap:3px;
}


.global-update-data-record-item-title{
    display:block;
    min-width:0;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
    font-size:16px;
    line-height:1.35;
    font-weight:700;
}


.global-update-data-record-item-meta{
    display:block;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
    font-size:13px;
    line-height:1.35;
    color:#687777;
}


.global-update-data-record-item-id{
    display:block;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
    font-size:11px;
    line-height:1.3;
    color:#929c9c;
}


.global-update-data-record-item-arrow{
    flex:0 0 auto;
    font-size:26px;
    line-height:1;
    color:#7c8989;
}


/* =====================================================
   EMPTY
===================================================== */

.global-update-data-empty{
    width:100%;
    box-sizing:border-box;
    padding:22px 16px;
    border:1px dashed #cfd8d8;
    border-radius:14px;
    text-align:center;
    font-size:14px;
    line-height:1.5;
    color:#7d8989;
    background:#fafcfc;
}


/* =====================================================
   DETAIL
===================================================== */

.global-update-data-detail{
    width:100%;
    margin:18px 0 0;
}


.global-update-data-detail-card{
    width:100%;
    box-sizing:border-box;
    padding:16px;
    border:1px solid #dce3e3;
    border-radius:16px;
    background:#fff;
}


.global-update-data-detail-title{
    margin:0 0 12px;
    font-size:17px;
    line-height:1.35;
    font-weight:700;
}


.global-update-data-detail-row{
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    gap:14px;
    padding:10px 0;
    border-top:1px solid #edf1f1;
}


.global-update-data-detail-row:first-of-type{
    border-top:0;
}


.global-update-data-detail-label{
    flex:0 0 105px;
    color:#748080;
    font-size:14px;
    line-height:1.4;
}


.global-update-data-detail-value-wrap{
    min-width:0;
    flex:1;
    display:flex;
    justify-content:flex-end;
    align-items:flex-start;
    gap:7px;
    text-align:right;
}


.global-update-data-detail-value{
    max-width:100%;
    overflow-wrap:anywhere;
    color:#263b3b;
    font-size:14px;
    line-height:1.4;
}


.global-update-data-detail-lock{
    flex:0 0 auto;
    font-size:12px;
    line-height:1.4;
}


/* =====================================================
   FIELDS
===================================================== */

.global-update-data-fields{
    width:100%;
    margin:16px 0 0;
}


.global-update-data-field{
    width:100%;
    margin:0 0 15px;
}


.global-update-data-field-label{
    display:block;
    margin:0 0 7px;
    color:#556565;
    font-size:14px;
    line-height:1.35;
    font-weight:600;
}


.global-update-data-field-control{
    width:100%;
    min-height:48px;
    box-sizing:border-box;
    padding:0 14px;
    border:1px solid #d3dddd;
    border-radius:13px;
    background:#fff;
    color:#263b3b;
    font-size:16px;
    outline:none;
    transition:
        border-color .2s ease,
        box-shadow .2s ease;
}


.global-update-data-field-control:focus{
    border-color:#9aabab;
    box-shadow:0 0 0 3px rgba(100,120,120,.10);
}


.global-update-data-field-select{
    padding-right:38px;
    appearance:auto;
    -webkit-appearance:auto;
}


.global-update-data-field-number{
    appearance:textfield;
    -moz-appearance:textfield;
}


.global-update-data-field-number::-webkit-inner-spin-button,
.global-update-data-field-number::-webkit-outer-spin-button{
    margin:0;
}


.global-update-data-field-textarea{
    min-height:100px;
    padding-top:12px;
    padding-bottom:12px;
    resize:vertical;
}


.global-update-data-field-note{
    display:block;
    margin-top:5px;
    color:#879191;
    font-size:12px;
    line-height:1.4;
}


/* =====================================================
   ACTION / TAMBAHKAN
===================================================== */

.global-update-data-action{
    width:100%;
    margin:4px 0 20px;
}


.global-update-data-add{
    width:100%;
    min-height:54px;
    border:0;
    border-radius:15px;
    background:#263b3b;
    color:#fff;
    font-size:16px;
    font-weight:700;
    cursor:pointer;
    transition:
        opacity .2s ease,
        transform .16s ease,
        background .2s ease;
}


.global-update-data-add:not(:disabled):active{
    transform:scale(.99);
}


.global-update-data-add:disabled{
    opacity:.42;
    cursor:not-allowed;
}


/* =====================================================
   PENDING
===================================================== */

.global-update-data-pending{
    width:100%;
    margin:8px 0 20px;
    padding:15px;
    box-sizing:border-box;
    border:1px solid #dce3e3;
    border-radius:16px;
    background:#fafcfc;
}


.global-update-data-pending-header{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:10px;
    margin-bottom:10px;
}


.global-update-data-pending-header h3{
    margin:0;
    font-size:16px;
    line-height:1.35;
    font-weight:700;
}


.global-update-data-pending-count{
    min-width:25px;
    height:25px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    padding:0 7px;
    box-sizing:border-box;
    border-radius:20px;
    background:#e5ebeb;
    color:#455555;
    font-size:12px;
    font-weight:700;
}


.global-update-data-pending-list{
    width:100%;
}


.global-update-data-pending-item{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:10px;
    padding:11px 0;
    border-top:1px solid #e5ebeb;
}


.global-update-data-pending-item:first-child{
    border-top:0;
}


.global-update-data-pending-item-content{
    min-width:0;
    flex:1;
    display:flex;
    flex-direction:column;
    gap:3px;
}


.global-update-data-pending-item-title{
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
    color:#2e4141;
    font-size:14px;
    line-height:1.35;
}


.global-update-data-pending-item-meta{
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
    color:#7a8686;
    font-size:12px;
    line-height:1.35;
}


.global-update-data-remove{
    flex:0 0 auto;
    min-height:34px;
    padding:0 11px;
    border:1px solid #d3dddd;
    border-radius:10px;
    background:#fff;
    color:#657272;
    font-size:12px;
    font-weight:600;
    cursor:pointer;
}


/* =====================================================
   CONFIRM
===================================================== */

.global-update-data-confirm{
    width:100%;
    box-sizing:border-box;
    padding:12px 16px 16px;
    border-top:1px solid #e1e7e7;
    background:#fff;
}


.global-update-data-confirm button{
    width:100%;
    min-height:54px;
    border:0;
    border-radius:15px;
    background:#263b3b;
    color:#fff;
    font-size:16px;
    font-weight:700;
    cursor:pointer;
    transition:
        opacity .2s ease,
        transform .16s ease;
}


.global-update-data-confirm button:not(:disabled):active{
    transform:scale(.99);
}


.global-update-data-confirm button:disabled{
    opacity:.45;
    cursor:not-allowed;
}


/* =====================================================
   RESULT
===================================================== */

.global-update-data-result{
    width:100%;
    box-sizing:border-box;
    margin:4px 0 12px;
    padding:12px 14px;
    border-radius:12px;
    font-size:13px;
    line-height:1.45;
}


.global-update-data-result.success{
    background:#eef7f1;
    color:#46634e;
    border:1px solid #d5e9da;
}


.global-update-data-result.error{
    background:#faf0f0;
    color:#765050;
    border:1px solid #ecd7d7;
}


/* =====================================================
   LOADING
===================================================== */

.global-update-data-loading{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:9px;
    width:100%;
    box-sizing:border-box;
    margin:12px 0;
    padding:12px;
    border-radius:12px;
    background:#f5f8f8;
    color:#657272;
    font-size:13px;
}


.global-update-data-loading-spinner{
    width:17px;
    height:17px;
    box-sizing:border-box;
    border:2px solid #c8d1d1;
    border-top-color:#536666;
    border-radius:50%;
    animation:globalUpdateDataSpin .8s linear infinite;
}


@keyframes globalUpdateDataSpin{

    from{
        transform:rotate(0deg);
    }

    to{
        transform:rotate(360deg);
    }

}


/* =====================================================
   MOBILE
===================================================== */

@media (max-width:600px){

    .global-update-data-record-list{
        max-height:350px;
    }


    .global-update-data-record-item{
        min-height:66px;
        padding:12px;
    }


    .global-update-data-detail-card{
        padding:14px;
    }


    .global-update-data-detail-label{
        flex-basis:95px;
    }

}


@media (max-width:480px){

    .global-update-data-record-list{
        max-height:340px;
    }


    .global-update-data-record-item-title{
        font-size:15px;
    }


    .global-update-data-record-item-meta{
        font-size:12px;
    }


    .global-update-data-record-item-id{
        font-size:10px;
    }


    .global-update-data-detail-row{
        gap:10px;
    }


    .global-update-data-detail-label{
        flex-basis:90px;
        font-size:13px;
    }


    .global-update-data-detail-value{
        font-size:13px;
    }

}


@media (max-width:360px){

    .global-update-data-record-list{
        max-height:320px;
    }


    .global-update-data-record-item{
        padding:10px;
    }


    .global-update-data-record-item-arrow{
        font-size:22px;
    }


    .global-update-data-detail-label{
        flex-basis:78px;
    }

}


/* =====================================================
   REDUCED MOTION
===================================================== */

@media (prefers-reduced-motion:reduce){

    .global-update-data-record-item,
    .global-update-data-record-search,
    .global-update-data-add,
    .global-update-data-confirm button{

        transition:none;

    }


    .global-update-data-loading-spinner{

        animation:none;

    }

}

/* =====================================================
   CONDITION FIELD
===================================================== */

.global-input-condition-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px 28px;
    margin-top: 18px;
}

/* =====================================================
   PAYROLL MONTHLY CONDITION
===================================================== */

.global-input-condition-list {

    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    column-gap: 24px;

    row-gap: 14px;

    width: 100%;

    margin-top: 4px;

}


/* =====================================================
   MASTER TOGGLE
===================================================== */

.global-input-condition-master {

    display: flex;

    align-items: center;

    gap: 10px;

    width: fit-content;

    margin: 4px 0 12px;

    cursor: pointer;

    font-size: 16px;

    line-height: 1.4;

    font-weight: 600;

    color: #526362;

}


/* =====================================================
   MASTER CHECKBOX
===================================================== */

.global-input-condition-master
input[type="checkbox"] {

    appearance: none;

    -webkit-appearance: none;

    width: 18px;

    height: 18px;

    min-width: 18px;

    min-height: 18px;

    margin: 0;

    padding: 0;

    box-sizing: border-box;

    border: 2px solid #9aa5a4;

    border-radius: 5px;

    background: #ffffff;

    display: grid;

    place-content: center;

    cursor: pointer;

    flex-shrink: 0;

}


/* =====================================================
   MASTER CHECKMARK
===================================================== */

.global-input-condition-master
input[type="checkbox"]::before {

    content: "";

    width: 10px;

    height: 10px;

    transform: scale(0);

    transition:
        transform .12s ease;

    background: #ffffff;

    clip-path: polygon(
        14% 44%,
        0 58%,
        39% 100%,
        100% 18%,
        85% 5%,
        38% 68%
    );

}


.global-input-condition-master
input[type="checkbox"]:checked {

    background: #244b47;

    border-color: #244b47;

}


.global-input-condition-master
input[type="checkbox"]:checked::before {

    transform: scale(1);

}


/* =====================================================
   CONDITION ITEM
===================================================== */

.global-input-condition-item {

    display: flex;

    align-items: center;

    justify-content: space-between;

    width: 100%;

    min-height: 40px;

    margin: 0;

    padding: 2px 0;

    box-sizing: border-box;

    cursor: pointer;

    font-size: 16px;

    line-height: 1.4;

    font-weight: 600;

    color: #657270;

}


.global-input-condition-item span {

    order: 1;

    flex: 1;

    min-width: 0;

}


/* =====================================================
   CONDITION CHECKBOX
===================================================== */

.global-input-condition-item
input[type="checkbox"] {

    appearance: none;

    -webkit-appearance: none;

    order: 2;

    width: 18px;

    height: 18px;

    min-width: 18px;

    min-height: 18px;

    margin: 0 0 0 10px;

    padding: 0;

    box-sizing: border-box;

    border: 2px solid #9aa5a4;

    border-radius: 5px;

    background: #ffffff;

    display: grid;

    place-content: center;

    cursor: pointer;

    flex-shrink: 0;

}


/* =====================================================
   CONDITION CHECKMARK
===================================================== */

.global-input-condition-item
input[type="checkbox"]::before {

    content: "";

    width: 10px;

    height: 10px;

    transform: scale(0);

    transition:
        transform .12s ease;

    background: #ffffff;

    clip-path: polygon(
        14% 44%,
        0 58%,
        39% 100%,
        100% 18%,
        85% 5%,
        38% 68%
    );

}


.global-input-condition-item
input[type="checkbox"]:checked {

    background: #244b47;

    border-color: #244b47;

}


.global-input-condition-item
input[type="checkbox"]:checked::before {

    transform: scale(1);

}


/* =====================================================
   CONDITION DISABLED
===================================================== */

/*
   Master belum dicentang.

   Checkbox kondisi dibuat abu-abu
   tetapi tetap terlihat sebagai pilihan
   yang tersedia setelah master diaktifkan.
*/

.global-input-condition-list
.global-input-condition-item
input[type="checkbox"]:disabled {

    background: #918E8A;

    border-color: #aab7b5;

    cursor: default;

}


/* =====================================================
   CONDITION DISABLED ITEM
===================================================== */

.global-input-condition-list
.global-input-condition-item:has(
    input[type="checkbox"]:disabled
) {

    cursor: default;

}


/* =====================================================
   CONDITION ENABLED
===================================================== */

/*
   Master sudah dicentang.

   Checkbox kembali putih.
*/

.global-input-condition-list:not(
    .global-input-condition-disabled
)
.global-input-condition-item
input[type="checkbox"]:not(:disabled) {

    background: #ffffff;

    border-color: #9aa5a4;

    cursor: pointer;

}


/* =====================================================
   CONDITION NOTE
===================================================== */

.global-input-condition-list
+ .global-input-field-note {

    margin-top: 12px;

}
    
