﻿

a {
    color: black;
    text-decoration: none;
}

input, select {
    box-sizing: border-box;
}

.truncate {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.number {
    white-space: nowrap;
    text-align: right;
}

.page-wrapper-600 {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 600px;
}

.page-wrapper-900 {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 900px;
}

.page-header {
    display: flex;
    align-items: center;
    gap: 10px;
}



button.btn-naked {
    appearance: none;
    -webkit-appearance: none;
    border: none !important;
    background: none !important;
    padding: 0 !important;
    margin: 0 !important;
    font: inherit;
    color: inherit;
    cursor: pointer;
}

.btn-exit {
    display: flex;
    align-items: flex-end;
    padding: 10px;
    border: none;
    color: black;
    font-weight: 600;
    cursor: pointer;
}

    .btn-exit:hover {
        background-color: #E0E0E0;
    }

/*.grid-item {
    cursor: pointer;
    overflow: visible !important;
    display: block;
}*/


/* ============================
   NAV
   ============================ */

.nav-list {
    background-color: white;
    padding-top: 20px;
    width: 150px;
}


    .nav-list .item {
        display: block;
        padding: 4px 7px 2px 4px;
        border-bottom: 1px solid darkgray;
        /*z-index: 20;*/
    }


@media(pointer:fine) {
    .nav-list .item:hover {
        background-color: #EFEFEF;
    }
}

@media(pointer:coarse) {
    .nav-list .item {
        padding: 10px;
    }
}

/* ============================
   LIST GRID
   ============================ */

.ico svg {
    stroke: gray;
    stroke-width: 1px;
}


/*@media(pointer:coarse) {

    .mat-list {
        display: flex;
        flex-direction: column;
        gap: 5px;
    }

        .mat-list .item {
            min-height: 44px;
            border-bottom: 1px solid gray;
        }

            .mat-list .item .item-content {
                display: grid;
                grid-template-columns: 1fr;
                grid-column-gap:10px;
                height: 100%;
                margin: auto 0;
            }


}*/



/* ============================
    DASHBOARDS
    =========================== */

.dashboard-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.dashboard-card {
    background: #f7f7f7;
    padding: 1.2rem;
    border-radius: 8px;
    border: 1px solid #ddd;
    cursor: pointer;
    transition: all 0.15s ease-in-out;
}

    .dashboard-card:hover {
        background: #eaeaea;
        transform: translateY(-2px);
    }

    .dashboard-card h3 {
        margin-top: 0;
        margin-bottom: 0.5rem;
    }

    .dashboard-card p {
        margin: 0;
        color: #555;
    }

/* ???  */

.cm-target {
    font-weight: 600;
}

@media(pointer:coarse) {
    .grid-item {
        padding: 12px 0;
    }
}



/* ============================
   SWIPE CELL (replaced on MatComponents)
   ============================ */

/*.swipe-cell {
    width: 100%;
}

.swipe-cell-right-actions:has(.swipe-actions-column) {
    align-items: flex-start;
}

.swipe-actions-column {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
}

    .swipe-actions-column .swipe-action {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 10px 0;
        border-bottom: 1px solid gray;
    }
*/