.container{
    padding: 56px 40px !important;
    max-width: 100% !important;
}

.portfolios-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    padding: 16px;
}

.portfolio-card {
    background: white;
    border-radius: 3px;
    padding: 24px 24px 0 24px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    height: 280px;
    cursor: pointer;
    border: 1px solid #e5e7eb;
    overflow: hidden;
}
.select-checkbox {
    position: absolute;
    top: 10px;
    right: 22px;
    width: 20px;
    height: 20px;
    border: 1px solid #000;
    border-radius: 4px;
    background-color: white;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}
    .select-checkbox.checked {
        background-color: #22c55e;
        border-color: #22c55e;
    }
    .select-checkbox.checked .select-checkbox__icon {
        opacity: 1;
        transform: scale(1);
    }
    .select-checkbox__icon {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        height: 100%;
        opacity: 0;
        transform: scale(0.5);
        transition: all 0.2s ease;
    }
    .select-checkbox__icon svg {
        width: 12px;
        height: 12px;
        stroke: white;
        stroke-width: 2;
    }
    .select-checkbox input[type="checkbox"],
    .select-checkbox .checkmark {
        display: none;
    }

.multiple-select-mode .portfolio-card {
    cursor: pointer;
}

.multiple-select-mode .portfolio-card > div:not(.select-checkbox) {
    padding-top: 24px;
}

.multiple-select-mode .portfolio-card .portfolio-header {
    margin-top: 0;
}
.select-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.btn-cancel-select, .btn-confirm-select, .portfolio-select-btn {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 14px;
    background: white;
    border: 1px solid #E5E7EB;
    padding: 8px 16px;
    border-radius: 20px;
    color: #111827;
    font-size: 13px;
    cursor: pointer;
    font-weight: 500;
}


.portfolio-select-btn:hover, .btn-cancel-select:hover {
    background-color: #F9FAFB;
}

.btn-confirm-select {
    background: #22c55e;
    color: white;
}

    .btn-confirm-select:disabled {
        opacity: 0.5;
        cursor: not-allowed;
    }

.portfolio-header {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
}


.portfolio-name-container-header {
    display: flex;
    flex-direction: column;
}

.actions-container {
    display: flex;
    gap: 8px;
}

.bookmark-icon {
    width: 28px;
    height: 28px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    background: transparent;
    border: none;
    padding: 0;
}

.bookmark-icon svg {
    width: 28px;
    height: 28px;
}

.portfolio-label {
    color: #6E7279;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.2;
}

.menu-dots {
    width: 26px;
    height: 26px;
    border: 1px solid #E5E7EB;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    background: transparent;
}

    .menu-dots:hover {
        background: #f3f4f6;
    }
.menu-container-portfolio {
    position: relative;
}

.menu-dropdown-portfolio {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    right: 0;
    background: white;
    border: 1px solid #E5E7EB;
    border-radius: 4px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    width: 160px;
}

.menu-item-portfolio {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px;
    cursor: pointer;
}

.edit-icon{
    width: 12px !important;
    height: 12px !important;
}

    .menu-item-portfolio:hover {
        background-color: #F3F4F6;
    }

    .menu-item-portfolio img {
        width: 16px;
        height: 16px;
        opacity: 0.6;
    }

    .menu-item-portfolio span {
        font-size: 14px;
        color: #374151;
    }

.portfolio-name-container {
    max-width: 100%;
    display: flex;
    align-items: center;
    margin-bottom: 32px;
    position: relative;
}

.portfolio-name {
    font-size: 20px;
    font-weight: 500;
    color: #111827;
    margin-right: 4px;
    max-width: 10vw;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: block;
    line-height: 1.3;
}



    .value-section .label {
        color: #6E7279;
        font-size: 14px;
        font-weight: normal !important;
        margin-bottom: 8px;
    }

    .value-section .amount {
        font-size: 26px !important;
        color: #111827;
        line-height: 1.2;
        font-weight: normal !important;
        margin-top: 10px;
        font-family: 'Inter' !important;
    }

    .section-container-summary{
        height:100%;
        display: flex;
        flex-direction: column;
    }

    .daily-section {
        background-color: #FCFCFC;
        display: flex;
        justify-content: space-between;
        align-items: center;
        border-top: 1px solid #E5E7EB;
        padding: 20px 24px;
        margin: auto -24px 0;
    }

    .daily-section .label {
        color: #6E7279;
        font-size: 14px;
        font-weight: 500;
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .daily-section .values {
        display: flex;
        align-items: center;
        gap: 12px;
    }

    .daily-section .amount {
        font-size: 14px;
        font-weight: 400;
        color: #000000;
    }

    .daily-section .percentage {
        font-size: 14px;
        font-weight: 600;
        display: flex;
        align-items: center;
        gap: 4px;
    }

    .daily-section .percentage.positive {
        color: #166534;
    }

    .daily-section .percentage.negative {
        color: #dc2626;
    }

    .daily-section .percentage.zero {
        color: #6b7280;
    }

.create-portfolio {
    background: white;
    border-radius: 3px;
    border: 1px solid #E5E7EB;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    cursor: pointer;
    height: 280px; 
}

.plus-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #22c55e;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 4px;
}

.create-portfolio-text {
    color: #111827;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.3;
}
.portfolio-summary-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 16px;
}

.portfolio-summary-title h1 {
    font-size: 24px;
    color: #111827;
    margin: 0;
}

.currency-select-btn {
    background: transparent;
    border: none;
    font-size: 20px;
    cursor: pointer;
    border-radius: 6px;
    color: #108522;
    font-weight: 300;
}

.total-summary-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding: 0 16px;
    margin-bottom: 32px;
}

.summary-card {
    background: white;
    border-radius: 8px;
    padding: 24px;
    border: 1px solid #e5e7eb;
}

.summary-label {
    font-size: 16px !important;
    color: #6b7280;
    font-weight: 500;
    line-height: 1.4;
}

.summary-value {
    font-size: 28px !important;
    color: #111827;
    font-family: 'Inter';
    font-weight: 400 !important;
}

.total-daily-percentage {
    font-size: 32px !important;
    font-family: 'Inter';
    margin-top: 5px;
}

.total-daily-percentage.positive {
    color: #166534;
}

.total-daily-percentage.negative {
    color: #dc2626;
}

.total-daily-percentage.zero {
    color: #6b7280;
}

.portfolios-section {
    border-top: 1px solid #e5e7eb;
    padding-top: 24px;
}

.portfolios-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 0 16px;
    margin-bottom: 20px;
}

.portfolio-title-group {
    display: flex;
    flex-direction: column;
}

.portfolios-header h2 {
    font-size: 22px;
    font-weight: 500;
    margin: 0;
    margin-bottom: 4px;
    color: #111827;
}

.subtitle {
    font-size: 16px;
    color: #6E7279;
}


.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background-color: white;
    padding: 24px;
    border-radius: 8px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

    .modal-header h2 {
        font-size: 20px;
        font-weight: 500;
        margin: 0;
    }

.close-modal {
    font-size: 24px;
    cursor: pointer;
    color: #6b7280;
}

.form-group {
    margin-bottom: 20px;
}

    .form-group label {
        display: block;
        margin-bottom: 8px;
        color: #374151;
        font-size: 14px;
    }

    .form-group input[type="text"] {
        width: 100%;
        padding: 8px 12px;
        border: 1px solid #e5e7eb;
        border-radius: 4px;
        font-size: 14px;
    }

.portfolio-type-selector {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 8px;
}

    .portfolio-type-selector input[type="radio"] {
        display: none;
    }

#createPortfolioModal {
    font-family: 'Space Grotesk', sans-serif;
}

.type-card {
    display: flex !important;
    align-items: center;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    height: 70px;
    gap: 8px;
    padding: 8px;
}

.type-card > .type-icon {
    margin: 0 !important;
}

.type-icon {
    margin-bottom: 12px;
    color: #6b7280;
    transition: all 0.2s ease;
}

.type-text {
    font-size: 14px;
    font-weight: 500;
    color: #374151;
}

.type-card:hover {
    border-color: #22c55e;
    background-color: #f0fdf4;
}

    .type-card:hover .type-icon {
        color: #22c55e;
    }

input[type="radio"]:checked + .type-card {
    border-color: #22c55e;
    background-color: #f0fdf4;
}

    input[type="radio"]:checked + .type-card .type-icon {
        color: #22c55e;
    }

.modal-content {
    background-color: white;
    padding: 32px;
    border-radius: 12px;
    width: 100%;
    max-width: 480px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
}

.modal-header {
    border-bottom: 0 !important;
    margin-bottom: 0 !important;
}

.modal-footer {
    margin-top: 0 !important;
    border-top: 0 !important;
    justify-content: flex-start !important;
    padding: 0 !important;
}

.modal-footer button {
    width: 100% !important;
}

    .modal-header h2 {
        font-size: 20px;
        font-weight: 600;
        color: #111827;
    }

.form-group label {
    font-weight: 500;
    color: #374151;
    margin-bottom: 12px;
}

.form-group input[type="text"] {
    padding: 12px;
    font-size: 15px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    transition: border-color 0.2s ease;
}

    .form-group input[type="text"]:focus {
        outline: none;
        border-color: #22c55e;
    }

.btn-create {
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.close-modal {
    font-size: 22px;
    border: none;
    background: none;
    cursor: pointer;
    color: white;
    background-color: #000;
    border-radius: 50%;
    width: 24px;
    height: 24px;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 24px;
}

.btn-create {
    padding: 8px 16px;
    background-color: #22c55e;
    border: none;
    border-radius: 4px;
    color: white;
    cursor: pointer;
}

.btn-create:hover {
    background-color: #16a34a;
}

.portfolios-empty {
    display: grid;
    place-items: center;
    margin-top: -48px;

    .empty-icon-container {
        display: grid;
        place-items: center;
        background: linear-gradient(180deg, #11BF2B -181.43%, #FFFFFF 90.2%);
        border-radius: 100%;
        width: 160px;
        height: 160px;
        margin-top: 64px;

        img {
            color: #11BF2B;
            width: 90px;
            height: 90px;
        }
    }

    .title {
        font-size: 18px;
        text-align: center;
        line-height: 100%;
    }

    .description {
        font-size: 14px;
        line-height: 166%;
        text-align: center;
        color: #0000008A
    }    

    .sg-button {
        max-width: 450px;
        width: 100%;
    }
}

.currency-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    font-family: 'Space Grotesk', sans-serif;
}

.currency-modal-content {
    background-color: white;
    border-radius: 12px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
    overflow: hidden;
}

.currency-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 24px 0 24px;
}
    .currency-modal-header button {
        font-size: 22px;
        background-color: #000;
        border: none;
        cursor: pointer;
        color: white;
        width: 24px;
        height: 24px;

    }

.currency-modal-header h3 {
    font-size: 20px !important;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.currency-modal-body {
    padding: 16px;
}

.currency-option {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    border-bottom: 1px solid #ECECEC;
}

.currency-option:first-child {
    border-top: 0px solid #ECECEC;
}


.currency-option input[type="radio"] {
    width: 20px;
    height: 20px;
    accent-color: #22c55e;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    background: white !important;
}

.currency-option input[type="radio"]:checked {
    width: 20px;
    height: 20px;
    background-color: #22c55e;
    border: 2px solid white;
}


.currency-option input[type="radio"]:checked::after {
    content: '';
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: #22c55e;
    border: 2px solid white;
    position: absolute;
  }

  .currency-option label {
    font-size: 18px;
    font-weight: 500;
    color: #374151;
    cursor: pointer;
}

.currency-modal-footer {
    padding: 16px;
}

.btn-apply {
    width: 100%;
    padding: 12px 24px;
    background-color: #22c55e;
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.btn-apply:hover {
    background-color: #16a34a;
}

.edit-name-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.edit-name-modal-content {
    background-color: white;
    border-radius: 12px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
    overflow: hidden;
}

.edit-name-modal-header {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 24px;
    border-bottom: 1px solid #e5e7eb;
}

.edit-name-modal-header h3 {
    font-size: 20px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.edit-name-modal-body {
    padding: 24px;
}

.edit-name-modal-body .form-group {
    margin-bottom: 0;
}

.edit-name-modal-body .form-group label {
    display: block;
    margin-bottom: 8px;
    color: #374151;
    font-size: 14px;
    font-weight: 500;
}

.edit-name-modal-body .form-group input[type="text"] {
    width: 100%;
    padding: 12px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.2s ease;
}

.edit-name-modal-body .form-group input[type="text"]:focus {
    outline: none;
    border-color: #22c55e;
}

.edit-name-modal-footer {
    padding: 16px 24px;
    border-top: 1px solid #e5e7eb;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.btn-cancel {
    padding: 10px 20px;
    background-color: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    color: #374151;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-cancel:hover {
    background-color: #f9fafb;
}

.btn-save {
    padding: 10px 20px;
    background-color: #22c55e;
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-save:hover {
    background-color: #16a34a;
}

#tblSummary_wrapper .dt-buttons .dt-button,
#tblSummary_wrapper .dt-buttons .dt-button:focus,
#tblSummary_wrapper .dt-buttons .dt-button:active,
#tblSummary_wrapper .dt-buttons .dt-button:hover,
#tblSummary_wrapper .dt-buttons .dt-button:visited {
    outline: none !important;
    box-shadow: none !important;
    border: none !important;
    -webkit-box-shadow: none !important;
    -moz-box-shadow: none !important;
}

#tblSummary_wrapper .dt-buttons .dt-button button,
#tblSummary_wrapper .dt-buttons .dt-button button:focus,
#tblSummary_wrapper .dt-buttons .dt-button button:active,
#tblSummary_wrapper .dt-buttons .dt-button button:hover,
#tblSummary_wrapper .dt-buttons .dt-button button:visited {
    outline: none !important;
    box-shadow: none !important;
    border: none !important;
    -webkit-box-shadow: none !important;
    -moz-box-shadow: none !important;
}

#tblSummary_wrapper .dt-buttons .dt-button *,
#tblSummary_wrapper .dt-buttons .dt-button *:focus,
#tblSummary_wrapper .dt-buttons .dt-button *:active,
#tblSummary_wrapper .dt-buttons .dt-button *:hover,
#tblSummary_wrapper .dt-buttons .dt-button *:visited {
    outline: none !important;
    box-shadow: none !important;
    -webkit-box-shadow: none !important;
    -moz-box-shadow: none !important;
}

.dt-button,
.dt-button:focus,
.dt-button:active,
.dt-button:hover,
.dt-button:visited {
    outline: none !important;
    box-shadow: none !important;
    border: none !important;
    -webkit-box-shadow: none !important;
    -moz-box-shadow: none !important;
}

.dataTables_wrapper .dt-buttons .dt-button,
.dataTables_wrapper .dt-buttons .dt-button:focus,
.dataTables_wrapper .dt-buttons .dt-button:active,
.dataTables_wrapper .dt-buttons .dt-button:hover,
.dataTables_wrapper .dt-buttons .dt-button:visited {
    outline: none !important;
    box-shadow: none !important;
    border: none !important;
    -webkit-box-shadow: none !important;
    -moz-box-shadow: none !important;
}