#cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    width: 100vp;
}

.card-item {
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    width: 300px;
    padding: 20px;
    text-align: center;
    margin: 20px;
    box-shadow: 0 2px 6px #007BFF;
}
.card-item h2 {
    margin: 0 0 10px;
    font-size: 1.5em;
    color: #333;
}
.card-item p {
    font-size: 1em;
    margin: 0 0 20px;
    color: blue;
}
.card-item button {
    background-color: #007BFF;
    border: 1px solid #fff;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    width: 100%;
    color: #fff;
}
.card-item button:hover {
    background-color: #0056b3;
}

.salon-location-card-copy {
    color: #0d6efd;
}

.salon-locations-page {
    padding: 12px 0 12px;
}

.salon-location-page-header {
    margin-bottom: 10px;
}

.salon-location-page-header h2 {
    margin: 0;
    font-size: 1.4rem;
    color: #1b2a41;
}

.salon-location-page-header p {
    margin: 4px 0 0;
    color: #50627a;
}

.salon-location-toolbar {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    margin-bottom: 10px;
    background-color: #fff;
    padding: 6px 0;
    border-bottom: 1px solid #e4ebf5;
}

.salon-location-filter-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
    width: 100%;
}

.salon-location-filter-group label {
    margin: 0;
}

.salon-location-filter-group select {
    height: 38px;
    border: 1px solid #b8c2cc;
    border-radius: 6px;
    padding: 4px 8px;
}

.salon-columns-dropdown {
    position: relative;
}

.salon-columns-dropdown-summary {
    list-style: none;
    border: 1px solid #b8c2cc;
    border-radius: 6px;
    padding: 8px 10px;
    background-color: #fff;
    cursor: pointer;
    user-select: none;
}

.salon-columns-dropdown summary::-webkit-details-marker {
    display: none;
}

.salon-columns-dropdown[open] .salon-columns-dropdown-summary {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.salon-columns-dropdown-list {
    border: 1px solid #b8c2cc;
    border-top: none;
    border-bottom-left-radius: 6px;
    border-bottom-right-radius: 6px;
    background-color: #fff;
    max-height: 240px;
    overflow-y: auto;
    padding: 6px 8px;
}

.salon-columns-option {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 4px 0;
    font-weight: normal;
}

.salon-columns-option input {
    width: auto;
}

.salon-location-count {
    font-weight: bold;
    color: #0d6efd;
    text-align: left;
}

.salon-location-table-wrap {
    overflow-x: auto;
    overflow-y: auto;
    flex: 1;
    min-height: 0;
    border: 1px solid #dbe4ee;
    border-radius: 8px;
    background-color: #fff;
}

.salon-location-cards-wrap {
    border: 1px solid #dbe4ee;
    border-radius: 8px;
    background-color: #fff;
    padding: 12px;
}

.salon-location-cards-container {
    min-width: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.salon-data-card {
    border: 1px solid #dbe4ee;
    border-radius: 8px;
    padding: 12px;
    background-color: #fff;
}

.salon-data-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 0;
    cursor: pointer;
    user-select: none;
}

.salon-data-card-header h3 {
    margin: 0;
    font-size: 1rem;
    color: #1b2a41;
    flex: 1;
}

.salon-data-card-toggle {
    font-size: 0.85rem;
    color: #0d6efd;
    white-space: nowrap;
    padding-left: 8px;
}

.salon-data-card.is-expanded .salon-data-card-header {
    margin-bottom: 12px;
}

.salon-data-card-body {
    display: none;
}

.salon-data-card.is-expanded .salon-data-card-body {
    display: block;
}

.salon-inline-value {
    display: inline;
}

.salon-inline-actions {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-left: 6px;
    vertical-align: middle;
}

.salon-inline-icon-btn,
.salon-inline-icon-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border: 1px solid #0d6efd;
    border-radius: 4px;
    background: #fff;
    color: #0d6efd;
    font-size: 0.85rem;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    padding: 0;
    margin-left: 6px;
    vertical-align: middle;
}

.salon-copy-icon-btn {
    position: relative;
    font-size: 0.95rem;
}

.salon-copy-glyph {
    position: relative;
    width: 12px;
    height: 12px;
    display: inline-block;
}

.salon-copy-glyph::before,
.salon-copy-glyph::after {
    content: "";
    position: absolute;
    width: 9px;
    height: 9px;
    border: 1.5px solid currentColor;
    border-radius: 3px;
    background: transparent;
}

.salon-copy-glyph::before {
    top: 0;
    left: 3px;
}

.salon-copy-glyph::after {
    top: 3px;
    left: 0;
}

.salon-copy-icon-btn.is-copied::before {
    content: attr(data-copied-label);
    position: absolute;
    bottom: calc(100% + 4px);
    left: 50%;
    transform: translateX(-50%);
    color: #6b7280;
    background: #f3f4f6;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    font-size: 0.7rem;
    line-height: 1;
    padding: 2px 6px;
    white-space: nowrap;
    z-index: 2;
}

.salon-call-icon-link {
    color: #0d6efd;
}

.salon-inline-icon-btn:hover,
.salon-inline-icon-btn:focus,
.salon-inline-icon-link:hover,
.salon-inline-icon-link:focus {
    background: #0d6efd;
    color: #fff;
}

.salon-call-icon-link:hover,
.salon-call-icon-link:focus {
    color: #fff;
}

.salon-inline-icon-btn:disabled {
    border-color: #198754;
    color: #198754;
    cursor: default;
}

/* Phone call / copy actions */
.salon-phone-number {
    display: block;
    font-weight: 500;
    margin-bottom: 4px;
}

.salon-phone-actions {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.salon-phone-btn {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 0.78rem;
    padding: 2px 8px;
    border-radius: 4px;
    border: 1px solid #0d6efd;
    background: #fff;
    color: #0d6efd;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
}

.salon-phone-btn:hover,
.salon-phone-btn:focus {
    background: #0d6efd;
    color: #fff;
}

.salon-phone-btn:disabled {
    border-color: #198754;
    color: #198754;
    background: #fff;
    cursor: default;
}

.salon-data-card-footer {
    margin-top: 10px;
    display: flex;
    justify-content: flex-start;
}

.salon-data-card-grid {
    display: grid;
    grid-template-columns: minmax(120px, 160px) minmax(0, 1fr);
    gap: 8px 12px;
    align-items: start;
}

.salon-data-card-label {
    font-weight: bold;
    color: #22344d;
    white-space: normal;
    align-self: center;
}

.salon-data-card-value {
    min-width: 0;
    color: #1f2937;
    overflow-wrap: anywhere;
}

.salon-data-card-value a {
    color: #0d6efd;
    text-decoration: none;
}

.salon-data-card-value a:hover {
    text-decoration: underline;
}

.salon-edit-field {
    min-width: 0;
    width: 100%;
    font-size: 0.95rem;
}

.salon-location-no-data {
    text-align: center;
    color: #666;
    font-style: italic;
    padding: 16px;
}

.salon-location-empty-state {
    text-align: center;
    padding: 40px 20px;
}

@media (max-width: 768px) {
    .salon-locations-page {
        padding: 8px 0;
    }

    .salon-location-cards-wrap {
        padding: 8px;
    }

    .salon-data-card {
        padding: 10px;
    }

    .salon-data-card-grid {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .salon-data-card-label {
        margin-top: 4px;
    }

    .salon-data-card-value {
        margin-bottom: 4px;
    }
}