
p {
    margin-bottom: 0.3rem;
}

.thead {
    font-size: 13px;
}

.btn-xs {
    padding: 3px 6px;
    font-size: 12px;
    margin: 2px;
}

.twitter-typeahead,
.twitter-typeahead input {
    width: 100%;
}

.tt-menu {
    width: 100%;
    margin-top: 0;
    background: #fff;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

#cards-list .table tbody td {
    cursor: default;
    color: black;
    text-align: center;
    vertical-align: middle;
    font-size: 0.8rem;
}

#cards-list .table thead th {
    white-space: nowrap;
}

.expo-card-row-item {
    font-size: 13px;
    height: 75px;
}

.expo-card-grid-item {
    display: flex;
    flex-direction: column;
    flex: 1; /* stretch to fill height of the row */
    height: 100%;
    border-radius: 18px;
    background: #fff;
    overflow: visible;
    border: 1px solid #e5e7eb;
    box-shadow: 0 2px 10px rgba(0,0,0,0.04);

}
.expo-card-grid-item img {
    border-top-left-radius: 18px;
    border-top-right-radius: 18px;
}
.preview-picture {
    width: 64px;
    height: 64px;
    border-radius: 5px;
    border: 1px solid rgba(0,0,0,0.1);
    background: rgba(0,0,0,0.05);
}

.app-header {
    width: 100%;
    flex-wrap: wrap;
    gap: 15px;
    padding: 15px 15px 15px 15px;
    display: flex;
    background: #fff;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.app-table-header {
    display: flex;
    padding: 15px;
    width: 100%;
    background: #fff;
    margin-bottom: 10px;
}

.expo-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;

    flex-wrap: wrap;

    padding: 30px;
    margin-bottom: 20px;

    background: #fff;
}

.expo-toolbar-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.expo-toolbar-right {
    display: flex;
    align-items: center;
    gap: 12px;
}


.view-switch {
    display: flex;
    align-items: center;
    gap: 8px;
}

.toolbar-pill {
    height: 60px;

    border: none;
    border-radius: 999px;

    background: #1f7aff;
    color: white;

    padding: 0 26px;

    display: flex;
    align-items: center;
    gap: 10px;

    font-size: 15px;
    font-weight: 700;

    transition: .25s;
}

.toolbar-pill:hover {
    background: #0f68ea;
}

.toolbar-icon-btn {
    width: 42px;
    height: 42px;

    border-radius: 999px;

    border: 1px solid #e5e7eb;
    background: white;

    color: #374151;
}

.toolbar-icon-btn:hover {
    background: #f5f5f5;
}


.toolbar-filter .btn.dropdown-toggle {
    height: 52px !important;


    border-radius: 999px !important;

    border: 2px solid #EBEBEB !important;

    background: #fff !important;

    padding-left: 18px !important;
    padding-right: 14px !important;

    font-size: 14px !important;

    color: #1f2937 !important;

    box-shadow: none !important;

    display: flex !important;
    align-items: center !important;
    gap: 6px !important;

}

.toolbar-filter .bootstrap-select .filter-option {
    flex: 0 0 auto !important;
    width: auto !important;
}

.toolbar-filter .btn.dropdown-toggle:hover {
    background: #fafafa !important;
}


.toolbar-search {
    width: 260px;
}

.toolbar-search input {
    height: 42px;

    border-radius: 999px;

    border: 1px solid #e5e7eb;

    box-shadow: none;
}

.toolbar-search input:focus {
    border-color: #1f7aff;
    box-shadow: none;
}


.area-filter {
    min-width: 180px;
}

.area-filter button,
.area-filter .btn {
    height: 42px !important;
    border-radius: 999px !important;
}


.clear-filters-btn {
    height: 42px;

    border: none;
    background: transparent;

    color: #6b7280;

    font-size: 14px;
    font-weight: 500;

    display: flex;
    align-items: center;
    gap: 8px;
}

.clear-filters-btn:hover {
    color: #111827;
}


.sort-label {
    color: #6b7280;
    font-size: 14px;
    font-weight: 500;
}

.sort-select {
    width: 170px;
    height: 42px;

    border-radius: 999px;

    border: 1px solid #e5e7eb;

    box-shadow: none;
}

.sort-select:focus {
    border-color: #1f7aff;
    box-shadow: none;
}



.bootstrap-select {
    width: auto !important;
}

.bootstrap-select > .dropdown-toggle {
    min-width: 140px;
}

.bootstrap-select .dropdown-menu {
    border: none;
    border-radius: 14px;

    overflow: hidden;

    box-shadow:
            0 12px 30px rgba(0,0,0,.08);
}


@media (max-width: 1200px) {

    .expo-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .expo-toolbar-right {
        justify-content: flex-end;
    }
}

@media (max-width: 768px) {

    .expo-toolbar-left {
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 10px;
    }

    .toolbar-search {
        min-width: 220px;
    }
}
.app-box {
    margin-left: 5px;
    width: 100%;
    height: calc(100vh - 250px);
    background: #fff;
}

.popupAlert {
    background-color: #fff !important;
}

/*.area-picker-dropdown {
    top: 60px;
    right: 0;
    max-height: calc(100vh - 120px);
    height: auto;
    width: auto;
    max-width: calc(100vw - 120px);
    left: auto
}*/

@media (min-width: 1600px) {
    #cards-list .row > .expo-card.col {
        flex: 0 0 16.666667%;
        max-width: 16.666667%;
    }
}

@media (min-width: 950px) and (max-width: 1100px) {
    .expo-card-price {
        font-size: 14px;
    }
}

/* Image column */
#cards-list .table tbody td.design-image-cell {
    width: 110px;
    min-width: 70px;
    max-width: 133px;
    padding: 4px 6px;
}

#cards-list .table tbody td.design-image-cell img {
    width: 100%;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    display: block;
}

/* Name column — wrap at all sizes */
#cards-list .table tbody td.design-name-cell {
    word-break: break-word;
    max-width: 200px;
}

/* Hide columns on small screens */
@media (max-width: 767px) {
    .col-hide-sm,
    th.col-hide-sm {
        display: none !important;
    }
}

@media (max-width: 575px) {
    .col-hide-xs,
    th.col-hide-xs {
        display: none !important;
    }
}

/* Action buttons: full on md+, dropdown below md */
.row-actions-full { display: none; }
.row-actions-dropdown { display: block; }

@media (min-width: 768px) {
    .row-actions-full { display: flex; }
    .row-actions-dropdown { display: none; }
}
.expo-card-content {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 16px;
}
.expo-card-title {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 10px;

}

.expo-card-meta p {
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 6px;
}
.expo-card-meta-row {
    display: flex;
    gap: 14px;
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 10px;
}
.meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
}
.expo-card-desc {
    font-size: 12px;
    color: #9ca3af;
}
.expo-card-bottom {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 14px;
}
.expo-card-top-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.expo-card-price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.expo-card-price {
    font-size: 18px;
    font-weight: 700;
    color: #111827;
    white-space: nowrap;
}

.expo-card-bottom .btn {
    border-radius: 10px;
    font-size: 12px;
    padding: 6px 10px;
}
.expo-card-spacer {
    flex: 1;
}

.expo-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
}

.expo-card-price {
    font-size: 22px;
    font-weight: 700;
    color: #111827;
    white-space: nowrap;
}

.expo-card-actions {
    display: flex;
    gap: 8px;
}
.action-dropdown-btn {
    background: transparent;
    border: 1px solid #5a6268;
    height: auto !important;
    width: 99px !important;
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 6px;
    color: #111;
}

.action-dropdown-btn:hover  {
    background: #f5f5f5;
}
.action-dropdown-btn:focus,
.action-dropdown-btn:active,
.action-dropdown-btn:focus:active,
.action-dropdown-btn:focus-visible {
    outline: none !important;
    box-shadow: none !important;
}
.dropdown-menu {
    border-radius: 10px;
    border: 1px solid rgba(0,0,0,0.08);
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    padding: 6px;
    z-index: 9999 !important;
}

.dropdown-item {
    font-size: 13px;
    border-radius: 6px;
    padding: 8px 10px;
}


#cards-list {
    padding: 0 30px;
}

.expo-card-content h6 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
}

.expo-card-content p {
    color: #6b7280;
    font-size: 13px;
}

#view-design-button {
    gap: 8px;
}

#view-design-button span {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
}

#view-design-button i {
    flex-shrink: 0;
}
@media (max-width: 768px) {


    .expo-toolbar {
        padding: 12px;
        gap: 10px;

    }
    .expo-toolbar-left {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        gap: 10px;

    }


    .expo-toolbar-right {
        width: 100%;
        justify-content: space-between;
    }


    .expo-toolbar-left {
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 8px;
    }

    .toolbar-filter,
    .toolbar-search {
        min-width: 180px;
        flex-shrink: 0;
    }

    .toolbar-search {
        width: 100%;
        min-width: unset;
    }

    .sort-select {
        width: 100%;
    }


    .toolbar-pill {
        height: 42px;
        padding: 0 16px;
        font-size: 13px;
    }


    .sort-label {
        display: none;
    }
}