﻿/*BUTTONS */

.gs-btn {
    display: inline-flex;
    vertical-align: middle;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid transparent;
    border-radius: 12px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all .25s ease;
    line-height: 1.5;
    padding: 0.65rem 1rem;
    position: relative;
    /*overflow: hidden;*/
    white-space: nowrap;
    vertical-align: middle;
}

    .gs-btn.gs-btn-sm:not(.gs-btn-outline):not(.gs-btn-dashed):not(.border-hover):not(.border-active):not(.gs-btn-flush):not(.gs-btn-icon),
    .gs-btn-group-sm > .gs-btn:not(.gs-btn-outline):not(.gs-btn-dashed):not(.border-hover):not(.border-active):not(.gs-btn-flush):not(.gs-btn-icon) {

        padding: calc(0.55rem + 1px) calc(1.25rem + 1px);
        font-size: 0.925rem;
        border-radius: 10px;
    }

    .gs-btn i {
        font-size: 13px;
        transition: .25s;
    }

    .gs-btn:hover {
        transform: translateY(-2px);
    }

        .gs-btn:hover i {
            transform: scale(1.1);
        }

    .gs-btn:active {
        transform: translateY(0);
    }

    .gs-btn:disabled {
        opacity: .6;
        cursor: not-allowed;
        transform: none;
    }

.gs-action-btn:hover {
    transform: translateY(-2px);
}

.gs-btn-sm {
    padding: 0 14px;
    font-size: 13px;
    border-radius: 10px;
}

.gs-btn-lg {
    height: 52px;
    padding: 0 24px;
    font-size: 15px;
    border-radius: 14px;
}

.gs-btn-block {
    display: block;
    width: 100%;
}

.gs-btn-sm-block {
    display: block;
}

.gs-btn-primary {
    background: linear-gradient(135deg,#3b82f6,#2563eb);
    color: #fff !important;
    box-shadow: 0 6px 18px rgba(37,99,235,.25);
}

    .gs-btn-primary i {
        color: #fff !important;
    }

    .gs-btn-primary:hover {
        box-shadow: 0 10px 24px rgba(37,99,235,.35);
    }


.gs-btn-success {
    background: linear-gradient(135deg,#50cd89,#38b26c);
    color: #fff !important;
    box-shadow: 0 6px 18px rgba(80,205,137,.25);
}

    .gs-btn-success i {
        color: #fff;
    }

    .gs-btn-success:hover {
        box-shadow: 0 10px 24px rgba(80,205,137,.35);
    }


.gs-btn-warning {
    background: linear-gradient(135deg,#fb923c,#ea580c);
    color: #fff !important;
    box-shadow: 0 6px 18px rgba(234,88,12,.25);
}

    .gs-btn-warning i {
        color: #fff;
    }

    .gs-btn-warning:hover {
        box-shadow: 0 10px 24px rgba(234,88,12,.35);
    }



.gs-btn-danger {
    background: linear-gradient(135deg,#ef4444,#dc2626);
    color: #fff !important;
    box-shadow: 0 6px 18px rgba(220,38,38,.25);
}

    .gs-btn-danger i {
        color: #fff;
    }

    .gs-btn-danger:hover {
        box-shadow: 0 10px 24px rgba(220,38,38,.35);
    }


.gs-btn-soft-primary {
    background: #eff6ff;
    color: #2563eb !important;
    border: 1px solid #dbeafe;
}

    .gs-btn-soft-primary i {
        color: #2563eb;
    }

    .gs-btn-soft-primary:hover {
        background: #dbeafe;
        border-color: #bfdbfe;
        box-shadow: 0 6px 18px rgba(37,99,235,.12);
    }


.gs-btn-soft-success {
    background: #ecfdf5;
    color: #16a34a !important;
    border: 1px solid #d1fae5;
}

    .gs-btn-soft-success i {
        color: #16a34a;
    }

    .gs-btn-soft-success:hover {
        background: #d1fae5;
        border-color: #a7f3d0;
        box-shadow: 0 6px 18px rgba(22,163,74,.12);
    }



.gs-btn-soft-warning {
    background: #fff7ed;
    color: #ea580c !important;
    border: 1px solid #fed7aa;
}

    .gs-btn-soft-warning i {
        color: #ea580c;
    }

    .gs-btn-soft-warning:hover {
        background: #ffedd5;
        border-color: #fdba74;
        box-shadow: 0 6px 18px rgba(234,88,12,.12);
    }



.gs-btn-soft-danger {
    background: #fef2f2;
    color: #dc2626 !important;
    border: 1px solid #fee2e2;
}

    .gs-btn-soft-danger i {
        color: #dc2626;
    }

    .gs-btn-soft-danger:hover {
        background: #fee2e2;
        border-color: #fecaca;
        box-shadow: 0 6px 18px rgba(220,38,38,.12);
    }


.gs-btn-neutral {
    background: #ffffff;
    color: #334155 !important;
    border: 1px solid #dbe3ee;
}

    .gs-btn-neutral i {
        color: #64748b;
    }

    .gs-btn-neutral:hover {
        background: #f8fafc;
        border-color: #cbd5e1;
        color: #1e293b !important;
    }

    .gs-btn-neutral:focus,
    .gs-btn-neutral:active {
        background: #f8fafc;
        border-color: #94a3b8;
        color: #1e293b !important;
        box-shadow: none;
    }

.gs-btn-soft-neutral {
    background: #f8fafc;
    color: #475569 !important;
    border: 1px solid #e2e8f0;
}

    .gs-btn-soft-neutral i {
        color: #64748b;
    }

    .gs-btn-soft-neutral:hover {
        background: #f1f5f9;
        border-color: #cbd5e1;
    }


.gs-btn-soft-purple {
    background: #f5f3ff;
    color: #7c3aed !important;
    border: 1px solid #ddd6fe;
}

    .gs-btn-soft-purple i {
        color: #7c3aed;
    }

    .gs-btn-soft-purple:hover {
        background: #ede9fe;
        border-color: #c4b5fd;
        box-shadow: 0 6px 18px rgba(124,58,237,.12);
    }

.gs-btn-soft-info {
    background: #ecfeff;
    color: #0891b2 !important;
    border: 1px solid #bae6fd;
}

    .gs-btn-soft-info i {
        color: #0891b2;
    }

    .gs-btn-soft-info:hover {
        background: #cffafe;
        border-color: #67e8f9;
        box-shadow: 0 6px 18px rgba(8,145,178,.12);
    }


/* ICON AND BADGE ONLY */

.gs-btn-icon {
    display: inline-flex !important;
    width: 36px !important;
    height: 36px !important;
    padding: 0 !important;
}

.gs-action-btn {
    line-height: 3;
    padding: 0 18px;
    border-radius: 14px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0px;
    transition: all .25s ease;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #475569;
}

    .gs-action-btn:hover {
        background: #cdf7e0;
        color: #50cd89;
        border-color: #cdf7e0;
    }


.gs-primary {
    background: #eff6ff;
    color: #2563eb;
    border: 1px solid #dbeafe;
}

    .gs-primary i {
        color: #2563eb;
    }

    .gs-primary:hover {
        background: #dbeafe;
        box-shadow: 0 6px 18px rgba(37,99,235,.15);
    }

.gs-success {
    background: #ecfdf3;
    color: #0f9f6e;
    border: 1px solid #d1fae5;
}

    .gs-success i {
        color: #0f9f6e;
    }

    .gs-success:hover {
        background: #d1fae5;
        box-shadow: 0 6px 18px rgba(16,185,129,.15);
    }

.gs-warning {
    background: #fff7ed;
    color: #ea580c;
    border: 1px solid #fed7aa;
}

    .gs-warning i {
        color: #ea580c;
    }

    .gs-warning:hover {
        background: #ffedd5;
        box-shadow: 0 6px 18px rgba(234,88,12,.15);
    }

.gs-danger {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fee2e2;
}

    .gs-danger i {
        color: #dc2626;
    }

    .gs-danger:hover {
        background: #fee2e2;
        box-shadow: 0 6px 18px rgba(220,38,38,.15);
    }

.gs-neutral {
    background: #f8fafc;
    color: #475569;
    border: 1px solid #e2e8f0;
}

    .gs-neutral i {
        color: #475569;
    }

    .gs-neutral:hover {
        background: #f1f5f9;
        box-shadow: 0 6px 18px rgba(15,23,42,.08);
    }

.gs-action-group {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}


/* =========================
   GS ICONS
========================= */

.gs-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all .25s ease;
}

    .gs-icon i {
        font-size: 15px;
    }

/* Sizes */

.gs-icon-sm {
    width: 32px;
    height: 32px;
    border-radius: 10px;
}

.gs-icon-lg {
    width: 52px;
    height: 52px;
    border-radius: 16px;
}

.gs-icon-xl {
    width: 64px;
    height: 64px;
    border-radius: 18px;
}

/* Colors */

.gs-icon-primary {
    background: rgba(37,99,235,.12);
    color: #2563eb;
}

.gs-icon-success {
    background: rgba(22,163,74,.12);
    color: #16a34a;
}

.gs-icon-warning {
    background: rgba(234,88,12,.12);
    color: #ea580c;
}

.gs-icon-danger {
    background: rgba(220,38,38,.12);
    color: #dc2626;
}

.gs-icon-info {
    background: rgba(8,145,178,.12);
    color: #0891b2;
}

.gs-icon-purple {
    background: rgba(124,58,237,.12);
    color: #7c3aed;
}

.gs-icon-neutral {
    background: #f8fafc;
    color: #64748b;
    border: 1px solid #e2e8f0;
}


/* Primary */
.gs-icon-primary i {
    color: #2563eb;
}

/* Success */
.gs-icon-success i {
    color: #16a34a;
}

/* Warning */
.gs-icon-warning i {
    color: #ea580c;
}

/* Danger */
.gs-icon-danger i {
    color: #dc2626;
}

/* Info */
.gs-icon-info i {
    color: #0891b2;
}

/* Purple */
.gs-icon-purple i {
    color: #7c3aed;
}

/* Neutral */
.gs-icon-neutral i {
    color: #64748b;
}

/* Hover */

.gs-icon-hover:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(15,23,42,.08);
}


/* Dropdown Container */
.gs-dropdown-menu {
    border: 0;
    border-radius: 14px !important;
    padding: 8px;
    min-width: 240px;
    box-shadow: 0 20px 40px rgba(15,23,42,.15), 0 4px 12px rgba(15,23,42,.08);
    background: #fff;
    overflow: visible;
    cursor: pointer;
}

    /* Dropdown Items */
    .gs-dropdown-menu .dropdown-item {
        display: flex;
        align-items: center;
        gap: 12px;
        border-radius: 10px;
        padding: 10px 14px;
        font-size: 13px;
        font-weight: 500;
        color: #334155;
        transition: all .2s ease;
    }

        .gs-dropdown-menu .dropdown-item i {
            width: 18px;
            text-align: center;
            color: #64748b;
            font-size: 14px;
        }

        /* Hover */
        .gs-dropdown-menu .dropdown-item:hover {
            background: #f8fafc;
            color: #0f172a;
            transform: translateX(3px);
        }

            .gs-dropdown-menu .dropdown-item:hover i {
                color: #3b82f6;
            }

        /* Danger Item */
        .gs-dropdown-menu .dropdown-item.text-danger {
            color: #dc2626 !important;
        }

            .gs-dropdown-menu .dropdown-item.text-danger i {
                color: #dc2626;
            }

            .gs-dropdown-menu .dropdown-item.text-danger:hover {
                background: #fef2f2;
            }

    /* Divider */
    .gs-dropdown-menu .dropdown-divider {
        margin: 8px 0;
        border-top: 1px solid #e2e8f0;
    }



.dropdown-toggle-custom::after {
    display: none !important;
}

.gs-action-btn.gs-neutral {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    background: #fff;
    color: #64748b;
    transition: all .25s ease;
}

    .gs-action-btn.gs-neutral:hover {
        background: #f8fafc;
        color: #0f172a;
        border-color: #cbd5e1;
        transform: translateY(-2px);
    }


/* Badges */

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
}

/* Blue */
.status-info {
    background: #eff6ff;
    color: #2563eb;
    border: 1px solid #bfdbfe;
}

/* Green */
.status-success,
.status-signed {
    background: #ecfdf5;
    color: #16a34a;
    border: 1px solid #bbf7d0;
}

/* Orange */
.status-warning,
.status-await {
    background: #fff7ed;
    color: #ea580c;
    border: 1px solid #fed7aa;
}

/* Red */
.status-danger,
.status-rejected {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

/* Purple */
.status-draft {
    background: #f5f3ff;
    color: #7c3aed;
    border: 1px solid #ddd6fe;
}

/* Yellow / Expired */
.status-expired {
    background: #fef3c7;
    color: #b45309;
    border: 1px solid #fde68a;
}

/* Slate / Neutral */
.status-neutral {
    background: #f8fafc;
    color: #475569;
    border: 1px solid #e2e8f0;
}

/* Teal */
.status-teal {
    background: #ecfeff;
    color: #0891b2;
    border: 1px solid #a5f3fc;
}


/* ==========================
   GOATSIGN BADGE
========================== */

.gs-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
}

.gs-badge-soft-success {
    background: #ecfdf3;
    color: #16a34a;
}

.gs-badge-soft-danger {
    background: #fef2f2;
    color: #dc2626;
}

.gs-badge-soft-warning {
    background: #fff7ed;
    color: #ea580c;
}

.gs-badge-soft-info {
    background: #eff6ff;
    color: #2563eb;
}

.gs-badge-soft-neutral {
    background: #f8fafc;
    color: #64748b;
}

/* ==========================
   GOATSIGN INPUTS
========================== */


.gs-form-group {
    margin-bottom: 22px;
}

.gs-label {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #475569;
}

    .gs-label .required {
        color: #ef4444;
        margin-left: 2px;
    }

/* =========================
   INPUT
   ========================= */
.gs-input {
    width: 100%;
    height: 46px;
    padding: 0 16px;
    border: 1px solid #d2d7dd;
    border-radius: 14px;
    background: #fff;
    color: #1e293b;
    font-size: 14px;
    font-weight: 500;
    transition: all .25s ease;
}

    .gs-input:focus {
        border-color: #50cd89;
        box-shadow: 0 0 0 4px rgba(80,205,137,.12);
        outline: none;
    }

.gs-input-sm {
    height: 38px;
    padding: 0 12px !important;
    font-size: 13px;
    border-radius: 10px;
}

/* =========================
   SELECT
   ========================= */

.gs-select {
    width: 100%;
    height: 46px;
    padding: 0 40px 0 14px; /* extra space for arrow */

    border: 1px solid #d2d7dd;
    border-radius: 14px;
    color: #1e293b;
    font-size: 14px;
    font-weight: 500;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-color: #fff;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%237E8299' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 14px center; /* move left from edge */
    background-size: 14px;
    transition: all .25s ease;
}

    .gs-select:focus {
        border-color: #50cd89;
        box-shadow: 0 0 0 4px rgba(80,205,137,.12);
        outline: none;
    }

.gs-select-sm {
    height: 38px;
    padding: 0 12px;
    font-size: 13px;
    border-radius: 10px;
}

/* =========================
   TEXTAREA
   ========================= */
.gs-textarea {
    width: 100%;
    min-height: 120px;
    padding: 14px;
    border: 1px solid #d2d7dd;
    border-radius: 14px;
    background: #fff;
    color: #1e293b;
    font-size: 14px;
    font-weight: 500;
    resize: vertical;
    transition: all .25s ease;
}

    .gs-textarea:focus {
        border-color: #50cd89;
        box-shadow: 0 0 0 4px rgba(80,205,137,.12);
        outline: none;
    }

.gs-textarea-sm {
    min-height: 80px;
    padding: 10px 12px;
    font-size: 13px;
    border-radius: 10px;
}

/* =========================
   Input group
   ========================= */
.gs-input-group {
    position: relative;
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
    width: 100%;
}

    .gs-input-group > .gs-input,
    .gs-input-group > .gs-select {
        position: relative;
        flex: 1 1 auto;
        width: 1%;
        min-width: 0;
    }

.gs-input-group-append,
.gs-input-group-prepend {
    display: flex;
    align-items: stretch;
}

.gs-input-group-text {
    display: flex;
    align-items: center;
    padding: 0 12px;
    background: #f8f9fa;
    border: 1px solid #dce1e7;
    white-space: nowrap;
}

/* Bootstrap-like border merge */
.gs-input-group > :not(:first-child) {
    margin-left: -1px;
    border-top-left-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
}

.gs-input-group > :not(:last-child) {
    border-top-right-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
}

/* Fix focus overlap */
.gs-input-group .gs-input:focus,
.gs-input-group .gs-select:focus {
    z-index: 3;
}


/* Disabled GS Input */
.gs-input:disabled,
.gs-input[readonly] {
    background: #f5f8fa;
    color: #7e8299;
    border-color: #e4e6ef;
    cursor: not-allowed;
    opacity: 1; /* Prevent browser fade */
    box-shadow: none;
}

    /* Placeholder */
    .gs-input:disabled::placeholder,
    .gs-input[readonly]::placeholder {
        color: #a1a5b7;
    }

    /* Remove focus effect */
    .gs-input:disabled:focus,
    .gs-input[readonly]:focus {
        border-color: #e4e6ef;
        box-shadow: none;
        outline: none;
    }

/* Optional: disabled input inside gs-input-group */
.gs-input-group:has(.gs-input:disabled) {
    background: #f5f8fa;
}

.gs-input-group .gs-btn:disabled {
    background: #eef1f5;
    color: #a1a5b7;
    border-color: #e4e6ef;
    cursor: not-allowed;
    opacity: 1;
}

/* =========================
   SELECT2
   ========================= */

.select2-container {
    width: 100% !important;
}

.select2-container--default .select2-selection--single {
    height: 46px !important;
    border: 1px solid #d2d7dd !important;
    border-radius: 14px !important;
    background: #fff !important;
    transition: all .25s ease;
}

.select2-container--default .select2-selection__rendered {
    line-height: 20px !important;
    padding-left: 14px !important;
    color: #1e293b !important;
    font-size: 14px !important;
    font-weight: 500 !important;
}

.select2-container--default .select2-selection__arrow {
    height: 44px !important;
    right: 12px !important;
}

.select2-container--default.select2-container--focus
.select2-selection--single {
    border-color: #50cd89 !important;
    box-shadow: 0 0 0 4px rgba(80,205,137,.12) !important;
}

/* ==========================
   GS TAGIFY
   ========================== */

.tagify.gs-tagify {
    min-height: 46px;
    padding: 6px 10px;
    border: 1px solid #d2d7dd;
    border-radius: 14px;
    background: #fff;
    transition: all .25s ease;
    box-shadow: none;
    width: 100%;
}

    .tagify.gs-tagify:hover {
        border-color: #b8c2cc;
    }

    .tagify.gs-tagify.tagify--focus {
        border-color: #50cd89;
        box-shadow: 0 0 0 4px rgba(80,205,137,.12);
    }


    .tagify.gs-tagify .tagify__tag {
        margin: 4px;
    }

        .tagify.gs-tagify .tagify__tag > div {
            border: 1px solid #c8f1da;
            border-radius: 10px;
            color: #15803d;
            font-size: 13px;
            font-weight: 600;
            padding: 4px 8px;
            transition: all .2s ease;
        }

        .tagify.gs-tagify .tagify__tag:hover > div {
            background: #dff7ea;
        }


    .tagify.gs-tagify .tagify__tag__removeBtn {
        color: #15803d;
        opacity: .7;
    }

        .tagify.gs-tagify .tagify__tag__removeBtn:hover {
            opacity: 1;
        }

    .tagify.gs-tagify .tagify__input {
        margin: 0;
        padding: 6px;
        font-size: 14px;
        color: #1e293b;
    }

.tagify__dropdown {
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(15,23,42,.12);
}

.tagify__dropdown__item {
    padding: 12px 16px;
    font-size: 14px;
    color: #334155;
    transition: all .15s ease;
}

    .tagify__dropdown__item--active,
    .tagify__dropdown__item:hover {
        background: #f0fdf4;
        color: #16a34a;
    }

.tagify.gs-tagify.is-invalid {
    border-color: #ef4444 !important;
    background: #fef2f2;
    box-shadow: 0 0 0 4px rgba(239,68,68,.10);
}

.tagify.gs-tagify.is-valid {
    border-color: #22c55e !important;
    background: #f0fdf4;
}


.tagify.gs-tagify-sm {
    min-height: 38px;
    padding: 4px 8px;
    border-radius: 10px;
}

    .tagify.gs-tagify-sm .tagify__input {
        font-size: 13px;
        padding: 4px;
    }

    .tagify.gs-tagify-sm .tagify__tag > div {
        font-size: 12px;
        padding: 2px 6px;
    }

/* ==========================
   INVALID STATE
   ========================== */

.gs-input.is-invalid,
.gs-select.is-invalid,
.select2-container--default.is-invalid .select2-selection--single,
.select2-container--default .select2-selection--single.is-invalid {
    border-color: #ef4444 !important;
    background: #fef2f2 !important;
    box-shadow: 0 0 0 4px rgba(239,68,68,.10) !important;
}

    /* Focus on invalid */
    .gs-input.is-invalid:focus,
    .gs-select.is-invalid:focus {
        border-color: #dc2626 !important;
        box-shadow: 0 0 0 4px rgba(239,68,68,.15) !important;
    }

/* Validation message */
.gs-validation-error,
.invalid-feedback {
    display: block;
    margin-top: 6px;
    color: #dc2626;
    font-size: 12px;
    font-weight: 500;
}

/* Placeholder */

.gs-input::placeholder {
    color: #94a3b8;
    font-weight: 400;
}

.gs-input-icon {
    position: absolute;
    left: 28px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    z-index: 5;
    pointer-events: none;
}

.gs-input-search {
    padding-left: 42px !important;
}

/* ==================================
   GOATSIGN TOOLBAR
================================== */

.gs-toolbar {
    background: #fff;
    border: 1px solid #edf2f7;
    border-radius: 18px;
    padding: 20px;
    margin-bottom: 24px;
    box-shadow: 0 4px 24px rgba(15,23,42,.04);
}

.gs-toolbar-inner {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.gs-toolbar-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}


/* ==================================
   GOATSIGN TABLE
================================== */

.gs-table-wrapper {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    border-radius: 18px;
    -webkit-overflow-scrolling: touch;
}

.gs-table {
    width: 100%;
    min-width: 700px;
    border-collapse: separate;
    border-spacing: 0;
    background: #fff;
    border: 1px solid #eef2f7;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 4px 18px rgba(15,23,42,.04);
}

    .gs-table thead {
        background: linear-gradient(180deg,#fafbfd,#f8fafc);
    }

        .gs-table thead th {
            padding: 16px 20px;
            font-size: 12px;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: .05em;
            color: #64748b;
            border-bottom: 1px solid #eef2f7;
            white-space: nowrap;
        }

    .gs-table tbody td {
        padding: 16px 20px;
        font-size: 14px;
        color: #334155;
        border-bottom: 1px solid #f1f5f9;
        vertical-align: middle;
        transition: all .2s ease;
    }

    .gs-table tbody tr:last-child td {
        border-bottom: none;
    }

    .gs-table tbody tr {
        transition: all .2s ease;
    }

        .gs-table tbody tr:hover {
            background: #f8fffb;
        }

            .gs-table tbody tr:hover td {
                color: #0f172a;
            }

        .gs-table tbody tr:nth-child(even) {
            background: #fcfcfd;
        }



/* ==================================
   ADVANCED FILTER POPUP
================================== */

#kt-toolbar-filter {
    border: none !important;
    border-radius: 18px !important;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(15,23,42,.18);
}

    #kt-toolbar-filter .menu-content {
        font-weight: 700;
        color: #0f172a;
    }

    #kt-toolbar-filter .form-select {
        border-radius: 12px;
        height: 46px;
        border: 1px solid #e2e8f0;
    }

    #kt-toolbar-filter .btn-primary {
        border-radius: 12px;
        padding: 10px 20px;
    }


/*GS Drawer */

.gs-drawer-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15,23,42,.35);
    backdrop-filter: blur(2px);
    opacity: 0;
    visibility: hidden;
    transition: .3s;
    z-index: 1050;
}

    .gs-drawer-backdrop.show {
        opacity: 1;
        visibility: visible;
    }

.gs-drawer {
    position: fixed;
    top: 0;
    right: -650px;
    width: 650px;
    max-width: 95vw;
    height: 100vh;
    background: #fff;
    box-shadow: -10px 0 40px rgba(15,23,42,.12);
    transition: .35s cubic-bezier(.4,0,.2,1);
    z-index: 1051;
    display: flex;
    flex-direction: column;
}

    .gs-drawer.show {
        right: 0;
    }

.gs-drawer-header {
    height: 80px;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #eef2f7;
    background: linear-gradient( 135deg, #f8fffb, #ffffff );
}

.gs-drawer-title-wrap {
    display: flex;
    align-items: center;
    gap: 14px;
}

.gs-drawer-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: rgba(80,205,137,.12);
    color: #50cd89;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.gs-drawer-title-wrap h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
}

.gs-drawer-title-wrap span {
    color: #94a3b8;
    font-size: 13px;
}


.gs-section {
    padding: 18px;
    background: #fafbfc;
    border: 1px solid #eef2f7;
    border-radius: 16px;
    margin-bottom: 18px;
}

.gs-drawer-body {
    padding: 24px;
    overflow-y: auto;
    background: #fafbfd;
}

.gs-drawer-footer {
    position: sticky;
    bottom: 0;
    background: #fff;
    border-top: 1px solid #eef2f7;
    padding: 16px 24px;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 15px;
}

.gs-drawer-content {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
}


.gs-drawer.sm {
    width: 450px;
}

.gs-drawer.md {
    width: 650px;
}

.gs-drawer.lg {
    width: 900px;
}

.gs-drawer.xl {
    width: 1200px;
}


/* =========================
   GS CARD
   ========================= */

.gs-card {
    background: #fff;
    border: 1px solid #eef2f7;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(15,23,42,.04);
    overflow: auto;
}

/* Header */

.gs-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 20px;
    border-bottom: 1px solid #eef2f7;
}

.gs-card-title {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
}

.gs-card-subtitle {
    display: block;
    margin-top: 2px;
    font-size: 13px;
    color: #94a3b8;
}

/* Toolbar */

.gs-card-toolbar {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Body */

.gs-card-body {
    padding: 20px;
}

/* Footer */

.gs-card-footer {
    padding: 16px 20px;
    border-top: 1px solid #eef2f7;
}

/* Compact version */

.gs-card-sm .gs-card-header,
.gs-card-sm .gs-card-body,
.gs-card-sm .gs-card-footer {
    padding: 12px 16px;
}

/* Hover card */

.gs-card-hover {
    transition: all .25s ease;
}

    .gs-card-hover:hover {
        border-color: #50cd89;
        box-shadow: 0 10px 24px rgba(80,205,137,.12);
        transform: translateY(-2px);
    }


/* Info Badge */

.info-card-modern {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 18px;
    background: #fff;
    border-radius: 14px;
    border: 1px solid #eef2f7;
    transition: all .25s ease;
    height: 100%;
    position: relative;
    overflow: hidden;
}

    .info-card-modern:hover {
        transform: translateY(-4px);
        box-shadow: 0 10px 25px rgba(0,0,0,.08);
    }

    .info-card-modern:before {
        content: "";
        position: absolute;
        left: 0;
        top: 0;
        width: 4px;
        height: 100%;
    }

.info-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.info-card-content {
    flex: 1;
}

.info-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #94a3b8;
    margin-bottom: 4px;
    font-weight: 600;
}

.info-value {
    font-size: 15px;
    font-weight: 700;
    color: #1e293b;
}


.info-primary:before {
    background: #50cd89;
}

.info-primary .info-card-icon {
    background: rgba(80,205,137,.12);
    color: #50cd89;
}


.info-info:before {
    background: #009ef7;
}

.info-info .info-card-icon {
    background: rgba(0,158,247,.12);
    color: #009ef7;
}

.info-success:before {
    background: #50cd89;
}

.info-success .info-card-icon {
    background: rgba(80,205,137,.12);
    color: #50cd89;
}

.info-warning:before {
    background: #f59e0b;
}

.info-warning .info-card-icon {
    background: rgba(245,158,11,.12);
    color: #f59e0b;
}

.info-danger:before {
    background: #f1416c;
}

.info-danger .info-card-icon {
    background: rgba(241, 65, 108, .12);
    color: #f1416c;
}


/* User Card */

.gs-user {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    margin-top: 10px;
    border: 1px solid #eef2f7;
    border-radius: 16px;
    background: #fff;
    transition: all .25s ease;
}

    .gs-user:hover {
        border-color: #50cd89;
        background: #f8fffb;
        box-shadow: 0 6px 18px rgba(80,205,137,.10);
    }

.gs-user-avatar {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    border-radius: 50%;
    background: #50cd89;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .gs-user-avatar i {
        color: #FFFFFF !important;
    }

.gs-user-body {
    flex: 1;
    min-width: 0;
}

.gs-user-name {
    font-size: 14px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 2px;
}

.gs-user-subtitle {
    font-size: 13px;
    color: #64748b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gs-user-action {
    flex-shrink: 0;
}

.gs-user-selectable.selected .gs-user-action {
    display: flex;
}

.gs-user-selectable {
    cursor: pointer;
}

.gs-user-action i {
    color: #ffffff
}

.gs-user-selectable.selected {
    border-color: #50cd89;
    background: #f0fdf4;
    box-shadow: 0 0 0 3px rgba(80,205,137,.12);
}

.gs-user-selectable .gs-user-action {
    opacity: 0;
    transform: scale(.8);
    transition: all .2s ease;
}

.gs-user-selectable.selected .gs-user-action {
    opacity: 1;
    transform: scale(1);
    color: #16a34a;
}

.gs-user-mini {
    display: flex;
    align-items: center;
    gap: 12px;
}

    .gs-user-mini .gs-user-avatar {
        width: 38px;
        height: 38px;
        border-radius: 50%;
        background: #50cd89;
        color: #fff;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 13px;
        font-weight: 700;
        flex-shrink: 0;
    }


/* ==================================
   GOATSIGN NAV TABS
================================== */

.gs-tabs-wrapper {
    background: #f8fafc;
    border: 1px solid #edf2f7;
    border-radius: 12px 12px 0 0;
    padding: 12px;
    margin-bottom: 0px;
    overflow-x: auto;
}

.gs-nav-tabs {
    display: flex;
    gap: 10px;
    flex-wrap: nowrap;
    min-width: max-content;
}

    .gs-nav-tabs .nav-link {
        border: none !important;
        border-radius: 12px;
        padding: 12px 22px;
        font-weight: 600;
        color: #64748b;
        background: transparent;
        transition: all .25s ease;
        white-space: nowrap;
    }

        .gs-nav-tabs .nav-link:hover {
            background: #eef2f7;
            color: #0f172a;
        }

        .gs-nav-tabs .nav-link.active {
            background: #22c55e;
            color: white !important;
            box-shadow: 0 4px 15px rgba(34,197,94,.25);
        }

            .gs-nav-tabs .nav-link.active i {
                color: white;
            }

        .gs-nav-tabs .nav-link i {
            color: #94a3b8;
        }

.gs-tab-content {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-top: none;
    border-radius: 0 0 18px 18px;
    padding: 25px;
    /*box-shadow: 0 8px 24px rgba(15,23,42,.04);*/
}

    /* Animation */

    .gs-tab-content .tab-pane {
        animation: fadeTab .10s ease;
    }


@keyframes fadeTab {
    from {
        opacity: 0;
        transform: translateY(6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==================================
   GOATSIGN RADIO 
================================== */
.gs-radio-group {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.gs-radio-card {
    flex: 1;
    min-width: 220px;
    cursor: pointer;
    margin: 0;
}

    .gs-radio-card input {
        display: none;
    }

.gs-radio-content {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px;
    border: 2px solid #eef2f7;
    border-radius: 16px;
    background: #fff;
    transition: all .25s ease;
    position: relative;
}

    .gs-radio-content:hover {
        border-color: #50cd89;
        transform: translateY(-2px);
        box-shadow: 0 8px 24px rgba(80,205,137,.12);
    }

.gs-radio-icon {
    width: 50px;
    height: 50px;
    border-radius: 14px;
    background: rgba(80,205,137,.12);
    color: #50cd89;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.gs-radio-title {
    font-size: 15px;
    font-weight: 700;
    color: #1e293b;
}

.gs-radio-subtitle {
    font-size: 12px;
    color: #94a3b8;
    margin-top: 2px;
}

.gs-radio-card input:checked + .gs-radio-content {
    border-color: #50cd89;
    background: #f8fffb;
    box-shadow: 0 0 0 4px rgba(80,205,137,.12);
}

    .gs-radio-card input:checked + .gs-radio-content::after {
        content: '\f00c';
        font-family: "Font Awesome 5 Free";
        font-weight: 900;
        position: absolute;
        top: 12px;
        right: 12px;
        width: 24px;
        height: 24px;
        border-radius: 50%;
        background: #50cd89;
        color: #fff;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 11px;
    }

.gs-info-card {
    background: #fff;
    border: 1px solid #e9edf3;
    border-radius: 14px;
    padding: 18px 20px;
    height: 100%;
    transition: all .2s ease;
}

    .gs-info-card:hover {
        border-color: #50cd89;
        box-shadow: 0 4px 14px rgba(80,205,137,.12);
    }

.gs-info-label {
    font-size: 12px;
    font-weight: 600;
    color: #7e8299;
    text-transform: uppercase;
    letter-spacing: .5px;
    margin-bottom: 8px;
}

.gs-info-value {
    font-size: 16px;
    font-weight: 600;
    color: #181c32;
}

.gs-subscription-overview .btn-link {
    text-decoration: none;
    font-weight: 600;
}

/* ==================================
   STEPPER
================================== */

.gs-stepper .stepper-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 80px;
    margin-bottom: 2rem;
    position: relative;
}

.gs-stepper .stepper-item {
    display: flex;
    align-items: center;
    position: relative;
    z-index: 2;
}

    .gs-stepper .stepper-item:not(:last-child)::after {
        content: "";
        position: absolute;
        left: calc(100% + 15px);
        top: 22px;
        width: 65px;
        height: 2px;
        background: #e2e8f0;
    }

.gs-stepper .gs-stepper-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #f8fafc;
    border: 2px solid #dbe2ea;
    color: #64748b;
    font-weight: 700;
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .25s ease;
}

.gs-stepper .gs-stepper-content {
    margin-left: 12px;
}

.gs-stepper .stepper-title {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    color: #475569;
}

.gs-stepper .stepper-desc {
    display: block;
    font-size: 12px;
    color: #94a3b8;
}

.gs-stepper .stepper-item.current .gs-stepper-icon,
.gs-stepper .stepper-item.completed .gs-stepper-icon {
    background: linear-gradient(135deg, #34c759 0%, #28A745 100%);
    border-color: #28A745;
    color: #fff;
    box-shadow: 0 0 0 5px rgba(40, 167, 69, 0.15);
}

.gs-stepper .stepper-item.current .stepper-title {
    color: #28A745;
}

.gs-stepper .stepper-item.completed::after {
    background: #28A745;
}

.gs-stepper .stepper-item.completed .stepper-title {
    color: #28A745;
}

/* ==================================
   DROPZONE 
================================== */

.gs-dropzone {
    min-height: auto;
    border: 2px #50cd89 dashed !important;
    background-color: #f5ffce !important;
    border-radius: 0.475rem !important;
}




/* ==========================================
   GoatSign Professional Stepper
========================================== */

.kt-custom-stepper .stepper-nav {
    min-width: 260px;
    padding-right: 20px;
}

.kt-custom-stepper .stepper-item {
    position: relative;
    display: flex;
    align-items: center;
    margin-bottom: 11px;
    transition: all .25s ease;
}

.kt-custom-stepper .stepper-line {
    position: absolute !important;
    left: 22px !important;
    top: 44px !important;
    width: 2px !important;
    height: 52px !important;
    background: #dbe4dc !important;
}

.kt-custom-stepper .stepper-item:last-child .stepper-line {
    display: none;
}

/* Icon */

.kt-custom-stepper .stepper-icon {
    width: 44px !important;
    height: 44px !important;
    min-width: 44px;
    border-radius: 12px;
    border: 2px solid #dbe4dc;
    background: #ffffff;
    color: #6c757d;
    font-weight: 700;
    font-size: 15px;
    transition: all .25s ease;
}

/* Label */

.kt-custom-stepper .stepper-title {
    font-size: 15px;
    font-weight: 600;
    color: #495057;
    margin-bottom: 0;
}

.kt-custom-stepper .stepper-desc {
    font-size: 12px;
    color: #98a2b3;
}

/* Current */

.kt-custom-stepper .stepper-item.current .stepper-icon {
    background: #28A745;
    border-color: #28A745;
    color: #fff;
    box-shadow: 0 0 0 6px rgba(40,167,69,.12);
}

.kt-custom-stepper .stepper-item.current .stepper-title {
    color: #28A745;
    font-weight: 700;
}

/* Completed */

.kt-custom-stepper .stepper-item.completed .stepper-icon {
    background: #28A745;
    border-color: #28A745;
    color: #fff;
}

.kt-custom-stepper .stepper-item.completed .stepper-line {
    background: #28A745;
}

.kt-custom-stepper .stepper-item.completed .stepper-title {
    color: #1e7e34;
}

/* Hover */

.kt-custom-stepper .stepper-item:hover .stepper-icon {
    transform: translateY(-2px);
}


/* Switch */
.gs-setting-toggle {
    display: flex;
    /*align-items: center;*/
    justify-content: space-between;
    gap: 15px;
    padding: 14px 18px;
    border: 1px solid #e4e6ef;
    border-radius: 12px;
    background: #fafbfc;
}

.gs-setting-info {
    flex: 1;
    min-width: 0;
}

.gs-setting-title {
    font-size: 14px;
    font-weight: 600;
    color: #181c32;
    display: flex;
    align-items: center;
}

.gs-setting-subtitle {
    font-size: 12px;
    color: #7e8299;
    margin-top: 2px;
    line-height: 1.4;
}

/* Switch */
.gs-switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 26px;
    flex-shrink: 0;
}

    .gs-switch input {
        opacity: 0;
        width: 0;
        height: 0;
    }

.gs-slider {
    position: absolute;
    inset: 0;
    cursor: pointer;
    background: #dfe4ea;
    transition: .25s;
    border-radius: 50px;
}

    .gs-slider:before {
        content: "";
        position: absolute;
        height: 20px;
        width: 20px;
        left: 3px;
        top: 3px;
        background: #fff;
        border-radius: 50%;
        transition: .25s;
        box-shadow: 0 2px 6px rgba(0,0,0,.15);
    }

.gs-switch input:checked + .gs-slider {
    background: #28A745;
}

    .gs-switch input:checked + .gs-slider:before {
        transform: translateX(22px);
    }

/* ==================================
   RESPONSIVE ENHANCEMENTS
================================== */
/* Large Tablet */
@media (max-width: 991px) {
    .gs-toolbar {
        padding: 16px;
    }

    .gs-toolbar-inner,
    .gs-toolbar-actions {
        flex-wrap: wrap;
    }

    .gs-card-header,
    .gs-card-body,
    .gs-card-footer {
        padding: 16px;
    }

    .gs-drawer {
        width: 100%;
        max-width: 100%;
    }

    .gs-action-group {
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .gs-user {
        padding: 12px;
    }

    .kt-custom-stepper .stepper-nav {
        display: flex;
        overflow-x: auto;
        padding-bottom: 15px;
        min-width: auto;
    }

    .kt-custom-stepper .stepper-item {
        min-width: 180px;
        margin-right: 20px;
        margin-bottom: 0;
    }

    .kt-custom-stepper .stepper-line {
        display: none;
    }
}

/* Tablet */
@media (max-width: 768px) {

    html {
        font-size: 14px;
    }

    .gs-toolbar {
        padding: 14px;
    }

    .gs-toolbar-inner {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .gs-toolbar-actions {
        width: 100%;
    }

    .gs-card-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .gs-card-toolbar {
        width: 100%;
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .gs-user {
        gap: 12px;
    }

    .gs-user-avatar {
        width: 40px;
        height: 40px;
    }

    .gs-input,
    .gs-select {
        height: 42px;
    }

    .gs-drawer-header {
        padding: 0 16px;
    }

    .gs-drawer-body,
    .gs-drawer-content {
        padding: 16px;
    }

    .gs-drawer-footer {
        padding: 12px 16px;
        flex-wrap: wrap;
    }

    .gs-table {
        min-width: 650px;
    }


    .gs-nav-tabs {
        flex-direction: column;
        width: 100%;
    }

        .gs-nav-tabs .nav-item {
            width: 100%;
        }

        .gs-nav-tabs .nav-link {
            width: 100%;
            text-align: left;
        }

    .gs-radio-group {
        flex-direction: column;
    }
}

/* Mobile */
@media (max-width: 576px) {

    html {
        font-size: 13px;
    }

    .gs-toolbar,
    .gs-card-body,
    .gs-card-header,
    .gs-card-footer {
        padding: 12px;
    }

    .gs-card-title {
        font-size: 15px;
    }

    .gs-card-subtitle {
        font-size: 12px;
    }

    .gs-user {
        padding: 10px 12px;
        gap: 10px;
    }

    .gs-user-avatar {
        width: 36px;
        height: 36px;
        font-size: 13px;
    }

    .gs-user-name {
        font-size: 13px;
    }

    .gs-user-subtitle {
        font-size: 12px;
    }

    .gs-input,
    .gs-select,
    .select2-container--default .select2-selection--single {
        height: 40px !important;
    }

    .gs-textarea {
        min-height: 100px;
    }

    .status-pill {
        font-size: 11px;
        padding: 5px 10px;
    }

    .info-card-modern {
        padding: 14px;
    }

    .info-card-icon {
        width: 42px;
        height: 42px;
        font-size: 18px;
    }

    .gs-drawer-title-wrap h3 {
        font-size: 16px;
    }

    .gs-drawer-icon {
        width: 40px;
        height: 40px;
    }



    .gs-setting-toggle {
        padding: 12px;
        gap: 10px;
    }

    .gs-setting-title {
        font-size: 13px;
    }

    .gs-setting-subtitle {
        font-size: 11px;
    }

    .gs-switch {
        width: 44px;
        height: 24px;
    }

    .gs-slider:before {
        width: 18px;
        height: 18px;
    }

    .gs-switch input:checked + .gs-slider:before {
        transform: translateX(20px);
    }
}

/* Extra Small Devices */
@media (max-width: 360px) {

    .gs-user {
        flex-wrap: wrap;
    }

    .gs-action-group {
        width: 100%;
    }

   /* .gs-btn,
    .gs-action-btn {
        width: auto;
    }*/

    .gs-card-header,
    .gs-toolbar {
        padding: 10px;
    }
}
