﻿.tbl-btn {
    width: 30px;
    height: 30px;
    border-radius: 7px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.15s;
}

    .tbl-btn:hover {
        border-color: #6366f1;
        background: #eef2ff;
    }

    .tbl-btn.del:hover {
        border-color: #ef4444;
        background: #fee2e2;
    }

.action-cell {
    display: flex;
    gap: 6px;
}

.badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
}

.badge-cap {
    background: #ede9fe;
    color: #6d28d9;
}

.badge-rev {
    background: #fef3c7;
    color: #92400e;
}

.badge-dis {
    background: #fee2e2;
    color: #991b1b;
}

.badge-wrt {
    background: #fce7f3;
    color: #9d174d;
}

.badge-sale {
    background: #d1fae5;
    color: #065f46;
}

.amount-cell {
    font-weight: 600;
    color: #0f172a;
}

.table-responsive {
    border-radius: 8px;
    box-shadow: rgba(0, 0, 0, 0.12) 0px 1px 3px, rgba(0, 0, 0, 0.24) 0px 1px 2px;
}
/******pagimnation*****/
.paginationPanel {
    float: right;
    padding: 8px 8px;
    /* border: solid thin #ccc; */
    border-radius: 5px;
    margin-bottom: 7px;
    box-shadow: 0 1px 15px 1px rgba(69, 65, 78, .08);
    border: 1px solid rgba(0, 0, 0, .07);
    font-size: 13px;
}

    .paginationPanel a {
        margin: 0px 1px;
        cursor: pointer;
        background: #f1f1f1;
        width: 18px;
        height: 18px;
        display: inline-block;
        border-radius: 50%;
        text-align: center;
        color: #757575;
        font-size: 11px;
        line-height: 20px;
        font-weight: bold;
    }

        .paginationPanel a:hover, .paginationPanel a.active {
            background: #18AACC;
            color: #fff;
        }

    .paginationPanel .paginationpage {
        max-width: 32px;
        text-align: center;
        height: 21px;
        border: solid thin #ccc;
    }

    .paginationPanel select {
        max-width: 48px;
        text-align: center;
        height: 21px;
        border: solid thin #ccc;
    }

    .paginationPanel a i {
        display: contents;
        line-height: 18px;
    }

    .paginationPanel button {
        background: #18AACC;
        color: #fff;
        border: none;
        border-radius: 3px;
        cursor: pointer;
        font-size: 11px;
        line-height: 19px;
        font-weight: bold;
    }

    .paginationPanel .borderleft {
        border-left: solid thin #dadada;
    }
/******pagimnation*****/

.select2-container--default .select2-selection--single, .select2-selection .select2-selection--single {
    border-radius: 4px;
    background: #fff;
    border: 1px solid #e5e5e5;
}

.form-control {
    border-radius: 4px;
    background: #fff;
    border: 1px solid #e5e5e5;
}

.alert-info {
    margin-bottom: 0px;
}



/* ── Layout ── */
.layout {
    display: flex;
    width: 100%;
    min-height: 100vh;
    margin: 0 auto;
    padding: 20px 20px;
    gap: 24px;
    align-items: flex-start;
}

/* ── Left Panel ── */
.left-panel {
    width: 260px;
    flex-shrink: 0;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.07);
    padding: 28px 20px;
    animation: fadeLeft 0.5s ease both;
    position: sticky;
    top: 40px;
}

.panel-header {
    margin-bottom: 22px;
}

    .panel-header h2 {
        font-size: 0.95rem;
        font-weight: 700;
        color: #0f172a;
        letter-spacing: -0.2px;
    }

    .panel-header p {
        font-size: 0.75rem;
        color: #94a3b8;
        margin-top: 4px;
    }

.panel-divider {
    height: 1px;
    background: #f1f5f9;
    margin: 0 -20px 20px;
}

/* Type items */
.type-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.type-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 13px;
    cursor: pointer;
    border: 1.5px solid transparent;
    background: #f8fafc;
    transition: all 0.22s ease;
    position: relative;
}

    .type-item:hover {
        background: #f0f0ff;
        border-color: #c7d2fe;
        transform: translateX(3px);
    }

    .type-item.active {
        background: #eef2ff;
        border-color: #6366f1;
        box-shadow: 0 4px 14px rgba(99,102,241,0.13);
    }

        .type-item.active::after {
            content: '';
            position: absolute;
            right: -21px;
            top: 50%;
            transform: translateY(-50%);
            width: 0;
            height: 0;
            border-top: 9px solid transparent;
            border-bottom: 9px solid transparent;
            border-left: 10px solid #6366f1;
        }

.type-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
    transition: background 0.22s;
}

.ic-cap {
    background: #ede9fe;
}

.ic-rev {
    background: #fef3c7;
}

.ic-dis {
    background: #fee2e2;
}

.ic-wrt {
    background: #fce7f3;
}

.ic-sale {
    background: #d1fae5;
}

.type-item.active .ic-cap {
    background: #c4b5fd;
}

.type-item.active .ic-rev {
    background: #fde68a;
}

.type-item.active .ic-dis {
    background: #fca5a5;
}

.type-item.active .ic-wrt {
    background: #fbcfe8;
}

.type-item.active .ic-sale {
    background: #6ee7b7;
}

.type-text .name {
    font-size: 0.82rem;
    font-weight: 600;
    color: #334155;
    line-height: 1.3;
}

.type-text .sub {
    font-size: 0.7rem;
    color: #94a3b8;
    margin-top: 1px;
}

.type-item.active .type-text .name {
    color: #4338ca;
}

/* ── Right Panel ── */
.right-panel {
    flex: 1;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.07);
    padding: 36px 40px;
    animation: fadeRight 0.5s ease 0.1s both;
    min-height: 500px;
}

/* Placeholder */
.placeholder-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 380px;
    text-align: center;
    animation: fadeUp 0.4s ease both;
}

    .placeholder-state .big-icon {
        font-size: 3.5rem;
        margin-bottom: 16px;
        opacity: 0.6;
    }

    .placeholder-state h3 {
        font-size: 1.05rem;
        font-weight: 600;
        color: #475569;
        margin-bottom: 6px;
    }

    .placeholder-state p {
        font-size: 0.82rem;
        color: #94a3b8;
        max-width: 280px;
        line-height: 1.6;
    }

/* Dynamic form */
.dynamic-form {
    display: none;
}

    .dynamic-form.visible {
        display: block;
        animation: fadeUp 0.38s ease both;
    }

.form-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f1f5f9;
}

.form-header-icon {
    width: 48px;
    height: 48px;
    border-radius: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
}

.fh-cap {
    background: #ede9fe;
}

.fh-rev {
    background: #fef3c7;
}

.fh-dis {
    background: #fee2e2;
}

.fh-wrt {
    background: #fce7f3;
}

.fh-sale {
    background: #d1fae5;
}

.form-header-text h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #0f172a;
}

.form-header-text p {
    font-size: 0.78rem;
    color: #64748b;
    margin-top: 3px;
    margin-bottom: 0px;
}

/* Form grid */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

    .form-group.full {
        grid-column: 1 / -1;
    }

label {
    font-size: 0.77rem;
    font-weight: 600;
    color: #475569;
    letter-spacing: 0.2px;
    margin-bottom: -3px;
}

    label span.req {
        color: #ef4444;
        margin-left: 2px;
    }



input:focus, textarea:focus {
    border-color: #6366f1;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(99,102,241,0.1);
}

input::placeholder, textarea::placeholder {
    color: #cbd5e1;
}

textarea {
    resize: vertical;
    min-height: 82px;
}

.input-prefix-wrap {
    position: relative;
}

    .input-prefix-wrap .prefix {
        position: absolute;
        left: 12px;
        top: 50%;
        transform: translateY(-50%);
        font-size: 0.82rem;
        color: #94a3b8;
        font-weight: 600;
        pointer-events: none;
    }

    .input-prefix-wrap input {
        padding-left: 28px;
    }

/* Action row */
.action-row {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 30px;
    padding-top: 22px;
    border-top: 1px solid #f1f5f9;
}



.btn-ghost {
    background: #f1f5f9;
    color: #475569;
}

    .btn-ghost:hover {
        background: #e2e8f0;
    }

.btn-primary {
    background: #6366f1;
    color: #fff;
    box-shadow: 0 4px 12px rgba(99,102,241,0.3);
}

    .btn-primary:hover {
        background: #4f46e5;
        transform: translateY(-1px);
        box-shadow: 0 6px 18px rgba(99,102,241,0.4);
    }

    .btn-primary:active {
        transform: scale(0.97);
    }

/* Animations */
@keyframes fadeLeft {
    from {
        opacity: 0;
        transform: translateX(-16px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeRight {
    from {
        opacity: 0;
        transform: translateX(16px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(14px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .layout {
        flex-direction: column;
        padding: 20px 14px;
    }

    .left-panel {
        width: 100%;
        position: static;
    }

    .type-list {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .type-item.active::after {
        display: none;
    }

    .right-panel {
        padding: 24px 20px;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }
}

#addPanel .calendaricon {
    right: 9px;
    top: 29px;
}

.calendaricon {
    right: 20px;
    top: 9px;
}

.pageFooterFixed {
    position: fixed;
    background: #fff;
    right: 0px;
    left: 50px;
    bottom: 0px;
    z-index: 999;
    padding: 5px 10px;
    border-top: solid thin #ccc;
}

.statApprove {
    background-color: #daf5e6;
    color: #378f5c;
    padding: 1px 6px;
    border-radius: 5px;
    border: 1px dashed #378f5c;
    font-weight: bold;
    display: inline-block;
    min-width: 84px;
    text-align: center;
    font-size: 12px;
}

.statUnapprove {
    background-color: #ffe3e3;
    color: #ec2226cc;
    padding: 1px 6px;
    border-radius: 5px;
    border: dashed 1px #ec2226cc;
    font-weight: bold;
    display: inline-block;
    min-width: 84px;
    text-align: center;
    font-size: 12px;
}

:root {
    --primary: #18AACC;
    --primary-light: rgba(24,170,204,0.08);
    --primary-mid: rgba(24,170,204,0.18);
}


.card-glass {
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(24,170,204,0.18);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(24,170,204,0.10), 0 2px 8px rgba(0,0,0,0.06);
}

.section-header {
    background: linear-gradient(135deg, var(--primary) 0%, #0e7fa0 100%);
    border-radius: 12px 12px 0 0;
    color: #fff;
    padding: 14px 22px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.3px;
}

    .section-header .badge-tag {
        background: rgba(255,255,255,0.22);
        border-radius: 20px;
        padding: 2px 10px;
        font-size: 0.75rem;
        font-weight: 500;
        margin-left: auto;
    }

.field-group {
    padding: 18px 22px;
}

.field-row {
    display: flex;
    align-items: center;
    padding: 10px 14px;
    border-radius: 10px;
    margin-bottom: 6px;
    transition: background 0.2s;
    gap: 12px;
}

    .field-row:hover {
        background: var(--primary-light);
    }

.field-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.field-label {
    flex: 1;
    font-size: 12px;
    color: #6b7280;
    font-weight: 500;
}

.field-value {
    font-size: 0.95rem;
    font-weight: 600;
    color: #1a2332;
    text-align: right;
    min-width: 130px;
}

    .field-value.profit {
        color: #16a34a;
    }

    .field-value.loss {
        color: #dc2626;
    }

    .field-value.highlight {
        background: var(--primary-mid);
        color: var(--primary);
        padding: 3px 10px;
        border-radius: 8px;
    }

.divider-soft {
    border: none;
    border-top: 1px dashed rgba(24,170,204,0.25);
    margin: 8px 14px;
}

.sub-section-label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--primary);
    padding: 6px 14px 2px;
    opacity: 0.75;
}

.select-field {
    border: 1.5px solid rgba(24,170,204,0.35);
    border-radius: 8px;
    padding: 7px 12px;
    font-size: 0.875rem;
    color: #374151;
    background: #fff;
    min-width: 220px;
    outline: none;
    transition: border 0.2s, box-shadow 0.2s;
}

    .select-field:focus {
        border-color: var(--primary);
        box-shadow: 0 0 0 3px rgba(24,170,204,0.12);
    }

.profit-loss-row {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border: 1px solid #bbf7d0;
    border-radius: 10px;
    padding: 12px 14px;
    margin: 6px 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

    .profit-loss-row.loss-row {
        background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
        border-color: #fecaca;
    }

.fade-in {
    animation: fadeSlideUp 0.45s ease both;
}

@keyframes fadeSlideUp {
    from {
        opacity: 0;
        transform: translateY(18px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card-glass {
    animation: fadeSlideUp 0.4s ease both;
}

.defultVlauelabel {
    margin-top: 6px;
    font-size: 15px;
    color: #000;
}

.EditDepr {
    cursor:pointer!important;
}

.DeleteDepr {
    cursor: pointer !important;
}
.calendaricon {
    right: 20px;
    top: 6px !important;
}