/* ============================================
   CASIERI MANAGER - Configurare
   ============================================ */
.cm-wrap {
    margin-bottom: 24px;
}

.cm-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding: 12px 18px;
    background: var(--bg-white, #fff);
    border-radius: var(--radius, 10px);
    border: 1px solid var(--border, #e2e8f0);
}

.cm-stats {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-light, #94a3b8);
}

.cm-stat strong {
    color: var(--text-dark, #1e293b);
    font-size: 16px;
}

.cm-stat-sep {
    color: #cbd5e1;
}

.cm-btn {
    padding: 8px 18px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s;
}

.cm-btn-add {
    background: #f0fdfa;
    color: #0f766e;
    border: 1.5px solid #99f6e4;
    box-shadow: none;
}

.cm-btn-add:hover {
    background: #ccfbf1;
    border-color: #5eead4;
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08);
}

/* Localitate cards */
.cm-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cm-loc {
    background: var(--bg-white, white);
    border: 1px solid var(--border, #e2e8f0);
    border-radius: var(--radius, 10px);
    overflow: hidden;
    transition: box-shadow 0.2s, border-color 0.2s;
}

.cm-loc:hover {
    border-color: var(--primary-border, #99f6e4);
    box-shadow: var(--shadow-sm, 0 1px 3px rgba(0,0,0,0.06));
}

.cm-loc-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 16px;
    background: var(--text-dark, #1e293b);
    color: white;
}

.cm-loc-left {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
}

.cm-loc-icon {
    font-size: 15px;
    flex-shrink: 0;
}

.cm-loc-name {
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.8px;
    cursor: default;
}

.cm-loc-edit {
    background: rgba(255, 255, 255, 0.12);
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    color: white;
    padding: 4px 10px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.8px;
    outline: none;
    width: 200px;
    font-family: inherit;
    transition: border-color 0.2s;
}

.cm-loc-edit:focus {
    border-color: rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.18);
}

.cm-loc-count {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.4);
    font-weight: 500;
    white-space: nowrap;
}

.cm-loc-actions {
    display: flex;
    gap: 2px;
}

.cm-btn-icon {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 13px;
    padding: 4px 5px;
    border-radius: 5px;
    transition: all 0.15s;
    line-height: 1;
    opacity: 0.5;
}

.cm-btn-icon:hover {
    opacity: 1;
}

.cm-btn-edit:hover {
    background: rgba(255, 255, 255, 0.12);
}

.cm-btn-del:hover {
    background: rgba(239, 68, 68, 0.25);
}

/* Casieri list */
.cm-casieri {
    padding: 6px 16px 12px;
}

.cm-table {
    width: 100%;
    border-collapse: collapse;
}

.cm-cas-row td {
    padding: 6px 4px;
    font-size: 13px;
    color: var(--text-dark, #334155);
    vertical-align: middle;
}

.cm-cas-row + .cm-cas-row {
    border-top: 1px solid var(--border-light, #f1f5f9);
}

.cm-cas-row:hover {
    background: var(--bg-main, #f8fafc);
}

.cm-cas-nr {
    width: 28px;
    color: var(--text-light, #94a3b8);
    font-size: 11px;
    font-weight: 600;
}

.cm-cas-name {
    font-weight: 500;
}

.cm-cas-name span {
    cursor: default;
}

.cm-cas-edit {
    width: 100%;
    padding: 4px 8px;
    border: 1.5px solid var(--primary, #0d9488);
    border-radius: 5px;
    font-size: 13px;
    font-weight: 600;
    outline: none;
    font-family: inherit;
    background: var(--primary-light, #f0fdfa);
    color: var(--text-dark, #1e293b);
}

.cm-cas-edit:focus {
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.12);
}

.cm-cas-actions {
    width: 50px;
    text-align: right;
    white-space: nowrap;
}

.cm-btn-edit-sm,
.cm-btn-del-sm {
    background: none;
    border: none;
    cursor: pointer;
    padding: 2px 3px;
    font-size: 13px;
    opacity: 0;
    transition: opacity 0.15s;
    line-height: 1;
}

.cm-cas-row:hover .cm-btn-edit-sm,
.cm-cas-row:hover .cm-btn-del-sm {
    opacity: 0.4;
}

.cm-btn-edit-sm:hover,
.cm-btn-del-sm:hover {
    opacity: 1 !important;
}

.cm-btn-del-sm:hover {
    color: #dc2626;
}

/* Add casier button */
.cm-btn-add-casier {
    display: block;
    width: 100%;
    margin-top: 8px;
    padding: 7px;
    border: 1.5px dashed var(--border, #cbd5e1);
    border-radius: 6px;
    background: transparent;
    color: var(--text-light, #94a3b8);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s;
}

.cm-btn-add-casier:hover {
    border-color: var(--primary, #0d9488);
    color: var(--primary, #0d9488);
    background: var(--primary-light, #f0fdfa);
}

/* Empty state */
.cm-empty {
    text-align: center;
    padding: 48px 20px;
    color: var(--text-light, #94a3b8);
}

.cm-empty-icon {
    font-size: 40px;
    display: block;
    margin-bottom: 12px;
    opacity: 0.35;
}

.cm-empty p {
    font-size: 14px;
    margin-bottom: 4px;
}

.cm-empty-hint {
    font-size: 12px !important;
    font-style: italic;
}