/* TRITON IPC Quantity Workspace Pro */
#add-ab-claim-line.ipc-qw-dialog {
    width: calc(100vw - 12px) !important;
    max-width: none !important;
    height: calc(100dvh - 12px) !important;
    max-height: none !important;
    margin: auto !important;
    border-radius: 18px !important;
}

#add-ab-claim-line.ipc-qw-dialog .ipc-qw-form {
    height: 100%;
    max-height: none !important;
}

#add-ab-claim-line .ipc-qw-scroll {
    position: relative;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
    scrollbar-width: thin;
    scrollbar-color: #b9c7da #eef3f8;
}

#add-ab-claim-line .ipc-qw-scroll::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

#add-ab-claim-line .ipc-qw-scroll::-webkit-scrollbar-track {
    background: #eef3f8;
}

#add-ab-claim-line .ipc-qw-scroll::-webkit-scrollbar-thumb {
    border: 2px solid #eef3f8;
    border-radius: 999px;
    background: #b9c7da;
}

#add-ab-claim-line .ipc-qw-table {
    min-width: 1160px !important;
    table-layout: auto;
}

#add-ab-claim-line .ipc-qw-table thead th {
    white-space: nowrap;
}

#add-ab-claim-line .ipc-qw-table thead th:first-child {
    position: sticky;
    left: 0;
    z-index: 35;
    width: 390px;
    min-width: 390px;
    max-width: 390px;
    background: #f8fafc;
    box-shadow: 1px 0 0 #e2e8f0, 12px 0 18px -20px #0f172a;
}

#add-ab-claim-line .ipc-qw-table tr[data-ipc-item] td:first-child {
    position: sticky;
    left: 0;
    z-index: 8;
    width: 390px;
    min-width: 390px;
    max-width: 390px;
    background: #fff;
    box-shadow: 1px 0 0 #e2e8f0, 12px 0 18px -20px #0f172a;
}

#add-ab-claim-line .ipc-qw-table tr[data-ipc-item]:hover td:first-child,
#add-ab-claim-line .ipc-qw-table tr.ipc-qw-row-active td:first-child {
    background: #f7fbff;
}

#add-ab-claim-line .ipc-qw-table tr.ipc-qw-row-active {
    background: #f7fbff;
}

#add-ab-claim-line .ipc-qw-table tr.ipc-qw-row-invalid,
#add-ab-claim-line .ipc-qw-table tr.ipc-qw-row-invalid td:first-child {
    background: #fff7f7;
}

#add-ab-claim-line .ipc-qw-table tr.ipc-qw-row-complete,
#add-ab-claim-line .ipc-qw-table tr.ipc-qw-row-complete td:first-child {
    background: #f7faf9;
}

#add-ab-claim-line .ipc-qw-table tr[data-ipc-item] td {
    vertical-align: middle;
}

#add-ab-claim-line .ipc-qw-table [data-qty-input] {
    width: 116px !important;
    min-width: 116px;
    height: 42px;
    padding-left: 10px;
    padding-right: 10px;
}

#add-ab-claim-line .ipc-qw-input-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
}

#add-ab-claim-line .ipc-qw-max-btn {
    display: inline-flex;
    min-height: 32px;
    align-items: center;
    justify-content: center;
    border: 1px solid #d7e1ee;
    border-radius: 9px;
    background: #fff;
    padding: 0 8px;
    color: #1d3c6a;
    font-size: 10px;
    font-weight: 800;
    white-space: nowrap;
    transition: .15s ease;
}

#add-ab-claim-line .ipc-qw-max-btn:hover {
    border-color: #a9bfd9;
    background: #f4f8fd;
}

#add-ab-claim-line .ipc-qw-group-toggle {
    display: inline-flex;
    width: 26px;
    height: 26px;
    margin-right: 8px;
    align-items: center;
    justify-content: center;
    border: 1px solid #d9e4f0;
    border-radius: 8px;
    background: rgba(255,255,255,.8);
    color: #1d3c6a;
    font-size: 12px;
    font-weight: 900;
    vertical-align: middle;
    transition: .15s ease;
}

#add-ab-claim-line .ipc-qw-group-toggle:hover {
    background: #fff;
    border-color: #a9bfd9;
}

#add-ab-claim-line tr.ipc-qw-group-collapsed .ipc-qw-group-toggle {
    transform: rotate(-90deg);
}

#add-ab-claim-line .ipc-qw-pro-controls {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

#add-ab-claim-line .ipc-qw-filter-select {
    min-height: 42px;
    border: 1px solid #d7e1ee;
    border-radius: 12px;
    background: #fff;
    padding: 0 34px 0 12px;
    color: #334155;
    font-size: 12px;
    font-weight: 700;
}

#add-ab-claim-line .ipc-qw-tool-btn {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    border: 1px solid #d7e1ee;
    border-radius: 12px;
    background: #fff;
    padding: 0 12px;
    color: #1d3c6a;
    font-size: 11px;
    font-weight: 800;
    white-space: nowrap;
    transition: .15s ease;
}

#add-ab-claim-line .ipc-qw-tool-btn:hover {
    border-color: #a9bfd9;
    background: #f4f8fd;
}

#add-ab-claim-line .ipc-qw-unsaved {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    background: #fff7ed;
    padding: 5px 9px;
    color: #c2410c;
    font-size: 10px;
    font-weight: 900;
}

#add-ab-claim-line .ipc-qw-unsaved[hidden] {
    display: none !important;
}

#add-ab-claim-line .ipc-qw-paste-panel {
    position: absolute;
    z-index: 80;
    top: 148px;
    right: 22px;
    width: min(420px, calc(100% - 32px));
    overflow: hidden;
    border: 1px solid #cfdceb;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 22px 55px rgba(15, 23, 42, .22);
}

#add-ab-claim-line .ipc-qw-paste-panel[hidden] {
    display: none !important;
}

#add-ab-claim-line .ipc-qw-paste-panel textarea {
    width: 100%;
    min-height: 180px;
    resize: vertical;
    border: 1px solid #d7e1ee;
    border-radius: 12px;
    padding: 10px 12px;
    outline: none;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 12px;
    line-height: 1.5;
}

#add-ab-claim-line .ipc-qw-paste-panel textarea:focus {
    border-color: #4b87d9;
    box-shadow: 0 0 0 3px rgba(59,130,246,.12);
}

#add-ab-claim-line .ipc-qw-key-hint {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #64748b;
    font-size: 10px;
    font-weight: 700;
}

#add-ab-claim-line .ipc-qw-key-hint kbd {
    border: 1px solid #dbe3ee;
    border-bottom-width: 2px;
    border-radius: 6px;
    background: #fff;
    padding: 2px 5px;
    color: #334155;
    font-size: 9px;
    font-weight: 800;
}

@media (max-width: 900px) {
    #add-ab-claim-line.ipc-qw-dialog {
        width: calc(100vw - 8px) !important;
        height: calc(100dvh - 8px) !important;
        border-radius: 14px !important;
    }

    #add-ab-claim-line .ipc-qw-table thead th:first-child,
    #add-ab-claim-line .ipc-qw-table tr[data-ipc-item] td:first-child {
        width: 280px;
        min-width: 280px;
        max-width: 280px;
    }

    #add-ab-claim-line .ipc-qw-paste-panel {
        top: 118px;
        right: 12px;
    }
}
