/* =========================================
   PRODUSE MANAGER - CSS OPTIMIZAT V2.0
      CurÃ„Æ’Ãˆâ€ºat Ãˆâ„¢i reorganizat pentru performanÃˆâ€ºÃ„Æ’
   ========================================= */

/* =========================
   1. VARIABILE & RESET
   ========================= */
:root {
    --pm-primary: #4f46e5;
    --pm-primary-hover: #4338ca;
    --pm-blue: #0d6efd;
    --pm-purple: #6610f2;
    --pm-success: #0f5132;
    --pm-success-bg: #e6f4ea;
    --pm-border: #d0d7de;
    --pm-gray-50: #f6f7f7;
    --pm-gray-100: #fafafa;
    --pm-gray-600: #6b7280;
    --pm-text: #1d2327;
    --pm-shadow: 0 10px 30px rgba(0,0,0,0.06);
    --pm-radius: 6px;
    --pm-transition: all 0.15s ease-in-out;
}

/* =========================
   2. LAYOUT GENERAL
   ========================= */
.pm-wrapper {
    width: 100%;
    overflow-x: auto;
    position: relative;
    min-height: 200px;
}

.pm-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}
.pm-badge-qty {
    background: #fef3c7;
    color: #92400e;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
}
/* =========================
   2.5. STATISTICI BANNER
   ========================= */
.pm-stats-banner {
    margin-bottom: 24px;
    padding: 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.pm-stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.pm-stat-item {
    display: flex;
    flex-direction: column;
    padding: 20px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.pm-stat-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, rgba(255,255,255,0.5) 0%, rgba(255,255,255,0.8) 100%);
}

.pm-stat-item:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.pm-stat-item > div:first-child {
    display: flex;
    align-items: center;
    gap: 12px;
}

.pm-stat-icon {
    font-size: 32px;
    line-height: 1;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

.pm-stat-content {
    flex: 1;
}

.pm-stat-value {
    font-size: 36px;
    font-weight: 800;
    color: #fff;
    line-height: 1;
    margin-bottom: 6px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.pm-stat-label {
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Culori specifice */
.pm-stat-total {
    background: rgba(59, 130, 246, 0.2);
}

.pm-stat-facturate {
    background: rgba(16, 185, 129, 0.2);
}

.pm-stat-nefacturate {
    background: rgba(239, 68, 68, 0.2);
}

.pm-stat-procent {
    background: rgba(168, 85, 247, 0.2);
}

/* Progress bar pentru procent */
.pm-progress-bar {
    margin-top: 12px;
    height: 8px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    overflow: hidden;
}

.pm-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #10b981 0%, #34d399 100%);
    border-radius: 4px;
    transition: width 0.6s ease;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.5);
}

/* AnimaÃƒË†Ã¢â‚¬Âºie la ÃƒÆ’Ã‚Â®ncÃƒâ€žÃ†â€™rcare */
@keyframes statFadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.pm-stat-item {
    animation: statFadeIn 0.4s ease-out backwards;
}

.pm-stat-item:nth-child(1) { animation-delay: 0.1s; }
.pm-stat-item:nth-child(2) { animation-delay: 0.2s; }
.pm-stat-item:nth-child(3) { animation-delay: 0.3s; }
.pm-stat-item:nth-child(4) { animation-delay: 0.4s; }

/* =========================
   3. LOADING STATES
   ========================= */
.pm-loading {
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0.85);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.pm-loading.active {
    display: flex;
}

.pm-spinner {
    width: 36px;
    height: 36px;
    border: 3px solid #e5e7eb;
    border-top-color: var(--pm-primary);
    border-radius: 50%;
    animation: pm-spin 0.8s linear infinite;
}

@keyframes pm-spin {
    to { transform: rotate(360deg); }
}

/* =========================
   4. TOOLBAR & FILTERS
   ========================= */
.pm-toolbar {
    margin-bottom: 24px;
}

.pm-toolbar-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    padding: 1rem;
    background: var(--pm-gray-50);
    border-radius: 8px;
    margin-bottom: 1rem;
}

.pm-filters {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
    flex-wrap: wrap;
}

.pm-filter {
    display: flex;
    align-items: center;
}

/* Input & Select uniformizate */
.pm-filter input[type="date"],
.pm-filter select,
.pm-toolbar-top input[type="date"],
.pm-toolbar-top select {
    height: 40px;
    padding: 0.5rem 0.75rem;
    font-size: 1rem;
    border: 1px solid var(--pm-border);
    border-radius: var(--pm-radius);
    min-width: 150px;
    background: #fff;
    transition: var(--pm-transition);
}

.pm-filter input:focus,
.pm-filter select:focus {
    border-color: var(--pm-blue);
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

/* Actions */
.pm-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.pm-actions button {
    height: 40px;
    padding: 0.5rem 1.25rem;
    font-size: 1rem;
    font-weight: 600;
    white-space: nowrap;
    border: none;
    border-radius: var(--pm-radius);
    cursor: pointer;
    transition: var(--pm-transition);
}

#pm-export-csv {
    background: var(--pm-blue);
    color: white;
}

#pm-export-csv:hover {
    background: #0b5ed7;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

#pm-export-html {
    background: var(--pm-purple);
    color: white;
}

#pm-export-html:hover {
    background: #520dc2;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Search */
.pm-search-bottom {
    margin-top: 1rem;
}

.pm-search-bottom input {
    width: 100%;
    height: 45px;
    padding: 0.75rem 1rem;
    font-size: 1.125rem;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    transition: var(--pm-transition);
}

.pm-search-bottom input:focus {
    border-color: var(--pm-blue);
    outline: 0;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.15);
}

/* =========================
   5. TABLE STYLES
   ========================= */
.pm-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    background: rgba(255,255,255,0.95);
    border-radius: 8px;
    overflow: hidden;
}

.pm-table thead th {
    background: var(--pm-gray-50);
    padding: 12px;
    text-align: left;
    border-bottom: 2px solid #dcdcde;
    font-weight: 600;
    color: var(--pm-text);
}

.pm-table tbody td {
    padding: 12px;
    border-bottom: 1px solid #eee;
}

.pm-table tbody tr:nth-child(even) {
    background: var(--pm-gray-100);
}

.pm-table tbody tr:hover {
    background: rgba(99,102,241,0.08);
}

.pm-col-right {
    text-align: right;
}

.pm-empty {
    padding: 20px;
    background: #fff3cd;
    border: 1px solid #ffecb5;
    border-radius: var(--pm-radius);
    color: #664d03;
    text-align: center;
}

/* =========================
   6. BADGES & STATUS
   ========================= */
.pm-badge {
    display: inline-block;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 600;
    border-radius: 4px;
    text-transform: uppercase;
}

.pm-badge-individual {
    background: #dbeafe;
    color: #1e40af;
}

.pm-badge-lucrare {
    background: #fef3c7;
    color: #92400e;
}

.pm-factura-yes {
    color: #10b981;
    font-weight: 600;
}

.pm-factura-no {
    color: #ef4444;
    font-weight: 600;
}

.facturat {
    color: #10b981;
    font-weight: 600;
}

.nefacturat {
    color: #ef4444;
    font-weight: 600;
}

.pm-factura-toggle {
    padding: 6px 12px;
    border: 1px solid var(--pm-border);
    border-radius: 4px;
    background: #fff;
    cursor: pointer;
    font-size: 12px;
    transition: var(--pm-transition);
}

.pm-factura-toggle:hover {
    background: var(--pm-gray-50);
}

/* Badge citire-only factură - pentru NON-ADMIN */
.pm-factura-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    cursor: default;
}

.pm-factura-badge.is-facturat {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.pm-factura-badge.is-nefacturat {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}


/* =========================
   7. FORMS
   ========================= */
.pm-form {
    max-width: 1000px;
    background: #fff;
    padding: 32px 40px;
    border-radius: 10px;
    box-shadow: var(--pm-shadow);
    margin: 0 auto;
}

.pm-form-row {
    margin-bottom: 18px;
}

.pm-form label {
    display: block;
    font-weight: 600;
    font-size: 15px;
    margin-bottom: 6px;
    color: var(--pm-text);
}

.pm-form input[type="text"],
.pm-form input[type="number"],
.pm-form input[type="date"],
.pm-form input[type="file"],
.pm-form select,
.pm-form textarea {
    width: 100%;
    padding: 14px 16px;
    border-radius: var(--pm-radius);
    border: 1px solid var(--pm-border);
    background: var(--pm-gray-50);
    font-size: 15px;
    transition: var(--pm-transition);
}

.pm-form input::placeholder,
.pm-form textarea::placeholder {
    color: #8c8f94;
}

.pm-form input:focus,
.pm-form select:focus,
.pm-form textarea:focus {
    outline: none;
    background: #fff;
    border-color: var(--pm-primary);
    box-shadow: 0 0 0 2px rgba(79,70,229,0.15);
}

.pm-form textarea {
    resize: vertical;
    min-height: 100px;
}

.pm-form button,
.pm-btn-save {
    display: inline-block;
    padding: 12px 22px;
    border-radius: var(--pm-radius);
    border: none;
    background: var(--pm-primary);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--pm-transition);
}

.pm-form button:hover,
.pm-btn-save:hover {
    background: var(--pm-primary-hover);
    box-shadow: 0 4px 12px rgba(79,70,229,0.3);
}

.pm-form button:active,
.pm-btn-save:active {
    transform: translateY(1px);
}

/* Success message */
.pm-success,
.pm-success-notice {
    padding: 14px;
    margin-bottom: 20px;
    border-radius: 8px;
    background: var(--pm-success-bg);
    border: 1px solid #b7dfc2;
    color: var(--pm-success);
    font-size: 14px;
}

/* =========================
   8. AUTOCOMPLETE
   ========================= */
.pm-autocomplete {
    position: absolute;
    background: #fff;
    border: 1px solid var(--pm-border);
    border-radius: var(--pm-radius);
    margin-top: 4px;
    width: 100%;
    max-height: 250px;
    overflow-y: auto;
    z-index: 999;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.pm-autocomplete div {
    padding: 10px 12px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f1;
    transition: background 0.15s;
}

.pm-autocomplete div:last-child {
    border-bottom: none;
}

.pm-autocomplete div:hover {
    background: var(--pm-gray-50);
}

/* Admin specific */
.post-type-produs .pm-autocomplete {
    z-index: 999999;
}

/* =========================
   9. SINGLE PRODUS PAGE
   ========================= */
.pm-single-container {
    max-width: 900px;
    margin: 60px auto;
    padding: 0 20px;
}

.pm-single-card {
    background: #fff;
    border-radius: 14px;
    padding: 32px;
    box-shadow: var(--pm-shadow);
}

.pm-back-link {
    display: inline-block;
    margin-bottom: 20px;
    font-weight: 600;
    text-decoration: none;
    color: var(--pm-primary);
    transition: var(--pm-transition);
}

.pm-back-link:hover {
    text-decoration: underline;
}

.pm-single-header {
    margin-bottom: 30px;
}

.pm-single-title {
    font-size: 26px;
    margin: 10px 0 15px;
    color: #111827;
}

.pm-single-meta {
    font-size: 14px;
    color: var(--pm-gray-600);
}

.pm-single-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px 40px;
    margin-bottom: 30px;
}

.pm-single-item {
    display: flex;
    flex-direction: column;
}

.pm-label {
    font-size: 13px;
    color: var(--pm-gray-600);
    margin-bottom: 4px;
    font-weight: 500;
}

.pm-value {
    font-size: 15px;
    font-weight: 600;
    color: #111827;
}

.pm-value-highlight {
    color: var(--pm-primary);
    font-size: 18px;
}

.pm-single-details {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
}

.pm-lucrare-details {
    background: var(--pm-gray-50);
    padding: 15px;
    border-radius: var(--pm-radius);
}

.pm-icon {
    margin-right: 8px;
}

.pm-file-link {
    margin: 10px 0;
    font-size: 14px;
}

.pm-file-link a {
    color: var(--pm-primary);
    text-decoration: none;
}

.pm-file-link a:hover {
    text-decoration: underline;
}

.pm-meta-added {
    margin-top: 30px;
    padding-top: 15px;
    border-top: 1px dashed #ddd;
    font-size: 13px;
    color: #666;
}

.pm-print-actions {
    margin-top: 20px;
    text-align: center;
}

.pm-print-btn {
    padding: 10px 24px;
    background: var(--pm-primary);
    color: white;
    border: none;
    border-radius: var(--pm-radius);
    cursor: pointer;
    font-weight: 600;
    transition: var(--pm-transition);
}

.pm-print-btn:hover {
    background: var(--pm-primary-hover);
}

.pm-single-footer-info {
    margin-top: 30px;
    padding-top: 15px;
    border-top: 1px dashed #ddd;
    font-size: 13px;
    color: #666;
    text-align: center;
}

/* Print styles */
.pm-print-section {
    display: none;
}

.pm-edit-section {
    display: block;
}

/* =========================
   10. LOGIN FORM
   ========================= */
.pm-login-required {
    max-width: 500px;
    margin: 60px auto;
    padding: 40px;
    background: #fff;
    border-radius: 12px;
    box-shadow: var(--pm-shadow);
    text-align: center;
}

.pm-login-btn {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 30px;
    background: var(--pm-primary);
    color: white;
    text-decoration: none;
    border-radius: var(--pm-radius);
    font-weight: 600;
    transition: var(--pm-transition);
}

.pm-login-btn:hover {
    background: var(--pm-primary-hover);
}

.pm-login-form {
    max-width: 400px;
    margin: 60px auto;
    padding: 40px;
    background: #fff;
    border-radius: 12px;
    box-shadow: var(--pm-shadow);
}

.pm-login-form h2 {
    margin-bottom: 30px;
    text-align: center;
    color: var(--pm-text);
}

.pm-login-form p {
    margin-bottom: 20px;
}

.pm-login-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 14px;
}

.pm-login-form input {
    width: 100%;
    height: 45px;
    padding: 0 14px;
    border: 1px solid var(--pm-border);
    border-radius: var(--pm-radius);
    font-size: 14px;
}

.pm-login-form button {
    width: 100%;
    height: 45px;
    background: var(--pm-primary);
    color: white;
    border: none;
    border-radius: var(--pm-radius);
    font-weight: 600;
    cursor: pointer;
    transition: var(--pm-transition);
}

.pm-login-form button:hover {
    background: var(--pm-primary-hover);
}

/* =========================
   11. UTILITIES
   ========================= */
.pm-link {
    font-weight: 600;
    color: #1e40af;
    text-decoration: none;
    transition: var(--pm-transition);
}

.pm-link:hover {
    text-decoration: ;
}

.pm-title {
    font-weight: 600;
    color: var(--pm-text);
}

/* =========================
   12. RESPONSIVE - TABLET
   ========================= */
@media (max-width: 1024px) {
    .pm-table {
        font-size: 13px;
    }
    
    .pm-single-grid {
        gap: 15px 30px;
    }
}

/* =========================
   13. RESPONSIVE - MOBILE
   ========================= */
@media (max-width: 768px) {
    /* Toolbar */
    .pm-toolbar-top {
        flex-direction: column;
        align-items: stretch;
    }
    
    .pm-filters {
        flex-direction: column;
        width: 100%;
    }
    
    .pm-filter {
        width: 100%;
    }
    
    .pm-filter input,
    .pm-filter select {
        width: 100%;
        min-width: 100%;
    }
    
    .pm-actions {
        width: 100%;
        flex-direction: column;
    }
    
    .pm-actions button {
        width: 100%;
    }
    
    /* Statistici Banner - Mobile */
    .pm-stats-banner {
        padding: 16px;
        margin-bottom: 20px;
    }
    
    .pm-stats-container {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .pm-stat-item {
        padding: 16px;
    }
    
    .pm-stat-icon {
        font-size: 28px;
    }
    
    .pm-stat-value {
        font-size: 28px;
    }
    
    .pm-stat-label {
        font-size: 12px;
    }
    
    /* Table - Card layout */
    .pm-table,
    .pm-table thead,
    .pm-table tbody,
    .pm-table tr,
    .pm-table td {
        display: block;
        width: 100%;
    }
    
    .pm-table thead {
        display: none;
    }
    
    .pm-table tr {
        margin-bottom: 15px;
        padding: 15px;
        background: #fff;
        border: 1px solid #e5e7eb;
        border-radius: 8px;
        box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    }
    
    .pm-table td {
        padding: 8px 0;
        border: none;
        text-align: left;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    .pm-table td::before {
        content: attr(data-label);
        font-weight: 600;
        color: var(--pm-gray-600);
        font-size: 12px;
        text-transform: uppercase;
        min-width: 100px;
    }
    
    /* Stiluri speciale pentru celula titlu pe mobile */
    .pm-table td.pm-title-cell {
        display: flex !important;
        flex-direction: row !important;
        justify-content: flex-start !important;
        align-items: flex-start !important;
        gap: 10px !important;
        padding: 12px 0 !important;
    }
    
    .pm-table td.pm-title-cell::before {
        display: none !important; /* Ascunde "Denumire:" label-ul */
    }
    
    .pm-table td.pm-title-cell .pm-badge {
        flex-shrink: 0;
        margin-top: 0;
        order: 1;
    }
    
    .pm-table td.pm-title-cell .pm-title {
        flex: 1;
        min-width: 0;
        order: 2;
        font-size: 15px;
        line-height: 1.4;
    }
    
    /* Single page */
    .pm-single-container {
        margin: 30px auto;
        padding: 0 15px;
    }
    
    .pm-single-card {
        padding: 20px;
    }
    
    .pm-single-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .pm-single-title {
        font-size: 22px;
    }
    
    /* Forms */
    .pm-form {
        padding: 20px;
    }
    
    .pm-form input,
    .pm-form select,
    .pm-form textarea {
        font-size: 16px; /* Previne zoom iOS */
    }
    
    .pm-form button {
        width: 100%;
    }
    
    /* Title wrapping */
    .pm-title {
        white-space: normal;
        word-wrap: break-word;
    }
    
    /* Touch optimizations */
    .pm-factura-toggle,
    .pm-actions button,
    .pm-filter select,
    .pm-filter input {
        min-height: 44px;
    }
}

/* =========================
   14. RESPONSIVE - SMALL
   ========================= */
@media (max-width: 480px) {
    .pm-toolbar-top {
        padding: 0.75rem;
    }
    
    .pm-table tr {
        padding: 12px;
    }
    
    .pm-badge {
        font-size: 10px;
        padding: 3px 8px;
    }
    
    .pm-login-form {
        margin: 30px 16px;
        padding: 24px 20px;
    }
}

/* =========================
   15. PRINT STYLES
   ========================= */
@media print {
    .pm-edit-section,
    .pm-toolbar,
    .pm-back-link,
    .pm-print-actions,
    .pm-actions {
        display: none !important;
    }
    
    .pm-print-section {
        display: block !important;
        margin-top: 24px;
        padding-top: 16px;
        border-top: 1px solid #000;
        font-size: 13px;
        line-height: 1.6;
    }
    
    .pm-single-card {
        box-shadow: none;
        border: 1px solid #000;
    }
    
    * {
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
}

/* =========================
   16. LANDSCAPE MODE
   ========================= */
@media (max-width: 768px) and (orientation: landscape) {
    .pm-filters {
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .pm-filter {
        flex: 1 1 45%;
    }
    
    .pm-actions {
        flex-direction: row;
    }
    
    .pm-actions button {
        flex: 1;
    }
}
/* =========================================
      PAGINAÃˆÅ¡IE PAGINAÃƒÆ’Ã‹â€ Ãƒâ€¦Ã‚Â¡IE & BUTOANE FACTURÃ„Æ’ÃƒÂ¢Ã¢â€šÂ¬Ã…Â¡ - STILURI BUTOANE FACTURÃ„â€š - STILURI
   ========================================= */

/* =========================
   PAGINAÃƒÆ’Ã‹â€ Ãƒâ€¦Ã‚Â¡IE
   ========================= */

/* Container paginaÃˆâ€ºie */
.pm-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 30px 0;
    padding: 20px 0;
}

/* Link/buton paginaÃˆâ€ºie */
.pm-pagination a,
.pm-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    background: #fff;
    color: #374151;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
}

/* Hover state */
.pm-pagination a:hover {
    background: #f9fafb;
    border-color: #4f46e5;
    color: #4f46e5;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

/* Active/Current page */
.pm-pagination .current,
.pm-pagination span.active {
    background: #4f46e5;
    border-color: #4f46e5;
    color: white;
    font-weight: 600;
    cursor: default;
    pointer-events: none;
}

/* Disabled state (prev/next cÃƒÂ¢nd nu e disponibil) */
.pm-pagination .disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

/* Separators (dots ...) */
.pm-pagination .dots {
    border: none;
    background: transparent;
    color: #9ca3af;
    cursor: default;
    pointer-events: none;
}

/* First/Last buttons */
.pm-pagination .first,
.pm-pagination .last {
    font-weight: 600;
}

/* Previous/Next arrows */
.pm-pagination .prev::before {
    content: "Ã¢â€ Â";
    margin-right: 6px;
}

.pm-pagination .next::after {
    content: "Ã¢â€ â€™";
    margin-left: 6px;
}

/* Info text (ex: "Pagina 1 din 12") */
.pm-pagination-info {
    text-align: center;
    color: #6b7280;
    font-size: 14px;
    margin-top: 12px;
}

/* =========================
      BUTOANE FACTURÃ„â€š STATUS
   ========================= */

/* Badge-uri generale */
.pm-factura-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    transition: all 0.2s ease;
    cursor: pointer;
    border: 1px solid transparent;
    min-width: 90px;
}

/* FACTURAT - Verde */
.pm-factura-badge.facturat,
.pm-factura-yes {
    background: #dcfce7;
    color: #166534;
    border-color: #bbf7d0;
}

.pm-factura-badge.facturat:hover {
    background: #bbf7d0;
    box-shadow: 0 2px 4px rgba(22, 101, 52, 0.2);
}

/* NEFACTURAT - RoÃƒÆ’Ã‹â€ ÃƒÂ¢Ã¢â‚¬Å¾Ã‚Â¢u */
.pm-factura-badge.nefacturat,
.pm-factura-no {
    background: #fee2e2;
    color: #991b1b;
    border-color: #fecaca;
}

.pm-factura-badge.nefacturat:hover {
    background: #fecaca;
    box-shadow: 0 2px 4px rgba(153, 27, 27, 0.2);
}

/* Toggle button (cu funcÃƒÆ’Ã‹â€ ÃƒÂ¢Ã¢â€šÂ¬Ã‚Âºionalitate click) */
.pm-factura-toggle {
    position: relative;
    cursor: pointer;
    user-select: none;
}

.pm-factura-toggle:active {
    transform: scale(0.98);
}

/* Icon pentru facturat */
.pm-factura-badge.facturat::before {
    content: "ÃƒÆ’Ã‚Â¢Ãƒâ€¦Ã¢â‚¬Å“ÃƒÂ¢Ã¢â€šÂ¬Ã…â€œ";
    margin-right: 6px;
    font-size: 14px;
    font-weight: bold;
}

/* Icon pentru nefacturat */
.pm-factura-badge.nefacturat::before {
    content: "ÃƒÆ’Ã‚Â¢Ãƒâ€¦Ã¢â‚¬Å“ÃƒÂ¢Ã¢â€šÂ¬Ã‚Â¢";
    margin-right: 6px;
    font-size: 13px;
    font-weight: bold;
}

/* Loading state */
.pm-factura-badge.loading {
    opacity: 0.6;
    cursor: wait;
    pointer-events: none;
}

.pm-factura-badge.loading::after {
    content: "";
    display: inline-block;
    width: 12px;
    height: 12px;
    margin-left: 8px;
    border: 2px solid currentColor;
    border-top-color: transparent;
    border-radius: 50%;
    animation: pm-spin 0.6s linear infinite;
}

/* =========================
   ALTERNATIVÃ„Æ’ÃƒÂ¢Ã¢â€šÂ¬Ã…Â¡ - STIL MINIMAL
   ========================= */

/* Pentru un look mai clean, fÃ„Æ’Ãƒâ€ Ã¢â‚¬â„¢rÃ„Æ’Ãƒâ€ Ã¢â‚¬â„¢ border */
.pm-factura-badge.minimal {
    border: none;
    padding: 8px 16px;
}

.pm-factura-badge.minimal.facturat {
    background: #10b981;
    color: white;
}

.pm-factura-badge.minimal.nefacturat {
    background: #ef4444;
    color: white;
}

/* =========================
   ALTERNATIVÃ„Æ’ÃƒÂ¢Ã¢â€šÂ¬Ã…Â¡ - STIL OUTLINED
   ========================= */

/* Pentru un look outlined */
.pm-factura-badge.outlined {
    background: transparent;
    border-width: 2px;
}

.pm-factura-badge.outlined.facturat {
    color: #10b981;
    border-color: #10b981;
}

.pm-factura-badge.outlined.facturat:hover {
    background: #10b981;
    color: white;
}

.pm-factura-badge.outlined.nefacturat {
    color: #ef4444;
    border-color: #ef4444;
}

.pm-factura-badge.outlined.nefacturat:hover {
    background: #ef4444;
    color: white;
}

/* =========================
   MOBILE RESPONSIVE
   ========================= */
@media (max-width: 768px) {
    /* PaginaÃƒÆ’Ã‹â€ ÃƒÂ¢Ã¢â€šÂ¬Ã‚Âºie mai micÃ„Æ’Ãƒâ€ Ã¢â‚¬â„¢ pe mobil */
    .pm-pagination a,
    .pm-pagination span {
        min-width: 36px;
        height: 36px;
        padding: 0 8px;
        font-size: 13px;
    }
    
    /* Ascunde numerele ÃƒÆ’Ã†â€™Ãƒâ€šÃ‚Â®n mijloc, pÃ„Æ’Ãƒâ€ Ã¢â‚¬â„¢streazÃ„Æ’Ãƒâ€ Ã¢â‚¬â„¢ doar current ÃƒÆ’Ã‹â€ ÃƒÂ¢Ã¢â‚¬Å¾Ã‚Â¢i prev/next */
    .pm-pagination a:not(.current):not(.prev):not(.next):not(.first):not(.last) {
        display: none;
    }
    
    /* Badge-uri mai mici */
    .pm-factura-badge {
        padding: 5px 10px;
        font-size: 11px;
        min-width: 80px;
    }
}

/* =========================
   VARIANTE DE CULORI CUSTOM
   ========================= */

/* VariantÃ„Æ’Ãƒâ€ Ã¢â‚¬â„¢ albastrÃ„Æ’Ãƒâ€ Ã¢â‚¬â„¢ pentru facturat */
.pm-factura-badge.blue.facturat {
    background: #dbeafe;
    color: #1e40af;
    border-color: #bfdbfe;
}

/* VariantÃ„Æ’Ãƒâ€ Ã¢â‚¬â„¢ galbenÃ„Æ’Ãƒâ€ Ã¢â‚¬â„¢ pentru ÃƒÆ’Ã†â€™Ãƒâ€šÃ‚Â®n aÃƒÆ’Ã‹â€ ÃƒÂ¢Ã¢â‚¬Å¾Ã‚Â¢teptare */
.pm-factura-badge.pending {
    background: #fef3c7;
    color: #92400e;
    border-color: #fde68a;
}

.pm-factura-badge.pending::before {
    content: "ÃƒÆ’Ã‚Â¢Ãƒâ€šÃ‚ÂÃƒâ€šÃ‚Â±";
    margin-right: 6px;
}

/* =========================
   ANIMAÃƒÆ’Ã‹â€ Ãƒâ€¦Ã‚Â¡II
   ========================= */

/* Fade in pentru badge-uri */
@keyframes pm-fade-in {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.pm-factura-badge {
    animation: pm-fade-in 0.2s ease-out;
}

/* Pulse effect cÃƒÆ’Ã†â€™Ãƒâ€šÃ‚Â¢nd se schimbÃ„Æ’Ãƒâ€ Ã¢â‚¬â„¢ status */
@keyframes pm-pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.pm-factura-badge.changed {
    animation: pm-pulse 0.3s ease-out;
}

/* =========================
   PRINT STYLES
   ========================= */
@media print {
    .pm-pagination {
        display: none;
    }
    
    .pm-factura-badge {
        border: 1px solid #000;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
}
/* BUTOANE FACTURÃ„Æ’ÃƒÂ¢Ã¢â€šÂ¬Ã…Â¡ - STILURI EXACTE */

.pm-factura-toggle {
    padding: 6px 16px;
    border: none;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 100px;
}

/* NEFACTURAT - RoÃƒÆ’Ã‹â€ ÃƒÂ¢Ã¢â‚¬Å¾Ã‚Â¢u */
.pm-factura-toggle.is-nefacturat {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.pm-factura-toggle.is-nefacturat:hover {
    background: #fecaca;
    box-shadow: 0 2px 4px rgba(153, 27, 27, 0.2);
    transform: translateY(-1px);
}

/* FACTURAT - Verde */
.pm-factura-toggle.is-facturat {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.pm-factura-toggle.is-facturat:hover {
    background: #bbf7d0;
    box-shadow: 0 2px 4px rgba(22, 101, 52, 0.2);
    transform: translateY(-1px);
}

/* Active/Click state */
.pm-factura-toggle:active {
    transform: scale(0.98);
}

/* Mobile */
@media (max-width: 768px) {
    .pm-factura-toggle {
        padding: 5px 12px;
        font-size: 11px;
        min-width: 85px;
    }
}
/* PAGINAÃƒÆ’Ã‹â€ Ãƒâ€¦Ã‚Â¡IE ÃƒÆ’Ã†â€™Ãƒâ€¦Ã‚Â½MBUNÃ„Æ’ÃƒÂ¢Ã¢â€šÂ¬Ã…Â¡TÃ„Æ’ÃƒÂ¢Ã¢â€šÂ¬Ã…Â¡ÃƒÆ’Ã‹â€ Ãƒâ€¦Ã‚Â¡ITÃ„Æ’ÃƒÂ¢Ã¢â€šÂ¬Ã…Â¡ */
.pm-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 30px 0 10px;
    padding: 20px 0;
}

.pm-pagination a,
.pm-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    background: #fff;
    color: #374151;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
}

.pm-pagination a:hover {
    background: #f9fafb;
    border-color: #4f46e5;
    color: #4f46e5;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.pm-pagination .pm-current {
    background: #4f46e5;
    border-color: #4f46e5;
    color: white;
    font-weight: 600;
    cursor: default;
}

.pm-pagination .pm-page-dots {
    border: none;
    background: transparent;
    color: #9ca3af;
    cursor: default;
    min-width: 30px;
}

.pm-pagination .pm-page-prev,
.pm-pagination .pm-page-next {
    font-weight: 600;
}

.pm-pagination-info {
    text-align: center;
    color: #6b7280;
    font-size: 14px;
    margin-top: 0;
}

@media (max-width: 768px) {
    .pm-pagination a,
    .pm-pagination span {
        min-width: 36px;
        height: 36px;
        padding: 0 8px;
        font-size: 13px;
    }
}
/* =========================
   ÃƒÆ’Ã‚Â°Ãƒâ€¦Ã‚Â¸Ãƒâ€¦Ã‚Â½Ãƒâ€šÃ‚Â¨ SINGLE PRODUS - DESIGN ÃƒÆ’Ã†â€™Ãƒâ€¦Ã‚Â½MBUNÃ„Æ’ÃƒÂ¢Ã¢â€šÂ¬Ã…Â¡TÃ„Æ’ÃƒÂ¢Ã¢â€šÂ¬Ã…Â¡ÃƒÆ’Ã‹â€ Ãƒâ€¦Ã‚Â¡IT V2
   Modern, clean, user-friendly
   ========================= */

/* Container principal */
.pm-single-container {
    max-width: 1000px;
    margin: 40px auto;
    padding: 0 20px;
}

/* Link ÃƒÆ’Ã†â€™Ãƒâ€šÃ‚Â®napoi - mai vizibil */
.pm-back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
    padding: 10px 16px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    color: var(--pm-primary);
    background: rgba(79, 70, 229, 0.08);
    border-radius: 8px;
    transition: all 0.2s ease;
}

.pm-back-link:hover {
    background: rgba(79, 70, 229, 0.15);
    transform: translateX(-4px);
}

/* Card principal - shadow mai pronunÃƒÆ’Ã‹â€ ÃƒÂ¢Ã¢â€šÂ¬Ã‚Âºat */
.pm-single-card {
    background: #fff;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border: 1px solid rgba(0,0,0,0.06);
}

/* =========================
   HEADER SECTION
   ========================= */
.pm-single-header {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 2px solid #f3f4f6;
}

/* Badge-uri moderne - DOAR pentru single produs */
.pm-single-card .pm-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    font-size: 12px;
    font-weight: 700;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
}

.pm-single-card .pm-badge::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.pm-single-card .pm-badge-individual {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    color: #1e40af;
    border: 2px solid #93c5fd;
}

.pm-single-card .pm-badge-individual::before {
    background: #1e40af;
}

.pm-single-card .pm-badge-lucrare {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #92400e;
    border: 2px solid #fcd34d;
}

.pm-single-card .pm-badge-lucrare::before {
    background: #92400e;
}

/* Titlu - mai mare ÃƒÆ’Ã‹â€ ÃƒÂ¢Ã¢â‚¬Å¾Ã‚Â¢i mai bold */
.pm-single-title {
    font-size: 32px;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 20px;
    color: #111827;
}

/* Meta info - mai structurat */
.pm-single-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
    font-size: 15px;
    color: #6b7280;
}

.pm-single-meta strong {
    color: #374151;
}

.pm-single-meta .facturat {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    background: #dcfce7;
    color: #166534;
    border-radius: 12px;
    font-weight: 600;
    font-size: 13px;
}

.pm-single-meta .nefacturat {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    background: #fee2e2;
    color: #991b1b;
    border-radius: 12px;
    font-weight: 600;
    font-size: 13px;
}

/* =========================
   GRID DETALII - IMPROVED
   ========================= */
.pm-single-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

/* Item individual cu icon */
.pm-single-item {
    display: flex;
    flex-direction: column;
    padding: 20px;
    background: #f9fafb;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    transition: all 0.2s ease;
}

.pm-single-item:hover {
    background: #fff;
    border-color: var(--pm-primary);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.1);
    transform: translateY(-2px);
}

/* Label cu icon */
.pm-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #9ca3af;
    margin-bottom: 8px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pm-label::before {
    content: '';
    width: 4px;
    height: 4px;
    background: var(--pm-primary);
    border-radius: 50%;
}

/* Value - mai pronunÃƒÆ’Ã‹â€ ÃƒÂ¢Ã¢â€šÂ¬Ã‚Âºat */
.pm-value {
    font-size: 18px;
    font-weight: 700;
    color: #111827;
    line-height: 1.4;
}

/* PREÃƒÆ’Ã‹â€ Ãƒâ€¦Ã‚Â¡ TOTAL - HIGHLIGHT SPECIAL */
.pm-single-item:has(.pm-value-highlight) {
    background: linear-gradient(135deg, #f3e8ff 0%, #e9d5ff 100%);
    border: 2px solid #a855f7;
    box-shadow: 0 8px 24px rgba(168, 85, 247, 0.15);
    position: relative;
    overflow: hidden;
}

.pm-single-item:has(.pm-value-highlight)::before {
    content: "\2B50"; /* Ã¢Â­Â */
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 24px;
    opacity: 0.3;
}

.pm-single-item:has(.pm-value-highlight):hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(168, 85, 247, 0.25);
}

.pm-value-highlight {
    font-size: 28px;
    font-weight: 800;
    background: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* =========================
   DETALII LUCRARE SECTION
   ========================= */
.pm-lucrare-details {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    padding: 24px;
    border-radius: 12px;
    border: 2px solid #fcd34d;
    margin-bottom: 30px;
}

.pm-lucrare-details .pm-label {
    font-size: 14px;
    color: #92400e;
    margin-bottom: 12px;
}

.pm-lucrare-details p {
    font-size: 15px;
    line-height: 1.6;
    color: #78350f;
    margin: 0;
}

/* =========================
   FORMULAR EDITARE - CARD SEPARAT
   ========================= */
.pm-single-details {
    margin-top: 40px;
    padding: 30px;
    background: #f9fafb;
    border-radius: 12px;
    border: 2px dashed #d1d5db;
}

.pm-edit-section .pm-form-row {
    margin-bottom: 24px;
}

.pm-edit-section label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 10px;
    color: #374151;
}

.pm-icon {
    font-size: 18px;
}

/* File input - stilizat */
.pm-file-input {
    width: 100%;
    padding: 12px;
    border: 2px dashed #d1d5db;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    transition: all 0.2s ease;
}

.pm-file-input:hover {
    border-color: var(--pm-primary);
    background: #f9fafb;
}

/* Link factura existentÃ„Æ’Ãƒâ€ Ã¢â‚¬â„¢ */
.pm-file-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 12px 0;
    padding: 10px 16px;
    background: #dbeafe;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
}

.pm-file-link a {
    color: #1e40af;
    text-decoration: none;
    transition: color 0.2s ease;
}

.pm-file-link a:hover {
    color: #1e3a8a;
    text-decoration: underline;
}

/* Textarea observaÃƒÆ’Ã‹â€ ÃƒÂ¢Ã¢â€šÂ¬Ã‚Âºii */
.pm-edit-section textarea {
    width: 100%;
    min-height: 120px;
    padding: 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 15px;
    line-height: 1.6;
    resize: vertical;
    transition: all 0.2s ease;
}

.pm-edit-section textarea:focus {
    outline: none;
    border-color: var(--pm-primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

/* Buton salvare - mai mare ÃƒÆ’Ã‹â€ ÃƒÂ¢Ã¢â‚¬Å¾Ã‚Â¢i mai vizibil */
.pm-btn-save {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

.pm-btn-save:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.4);
    background: linear-gradient(135deg, #4338ca 0%, #4f46e5 100%);
}

.pm-btn-save:active {
    transform: translateY(0);
}

/* =========================
   META AUTOR & FOOTER
   ========================= */
.pm-meta-added {
    margin-top: 40px;
    padding: 20px;
    background: #f9fafb;
    border-radius: 8px;
    border-left: 4px solid var(--pm-primary);
    font-size: 14px;
    color: #6b7280;
}

.pm-meta-added strong {
    color: #374151;
}

/* Buton print - modern */
.pm-print-actions {
    margin-top: 30px;
    text-align: center;
}

.pm-print-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 28px;
    font-size: 15px;
    font-weight: 600;
    color: #374151;
    background: #fff;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.pm-print-btn:hover {
    background: #f9fafb;
    border-color: var(--pm-primary);
    color: var(--pm-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Footer info */
.pm-single-footer-info {
    margin-top: 40px;
    padding-top: 24px;
    border-top: 2px dashed #e5e7eb;
    text-align: center;
    font-size: 13px;
    color: #9ca3af;
}

.pm-single-footer-info strong {
    color: #374151;
}

/* Success notice - mai vizibil */
.pm-success-notice {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 16px 24px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #fff;
    border-radius: 10px;
    font-weight: 600;
    font-size: 15px;
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.3);
    animation: slideIn 0.3s ease-out;
    z-index: 9999;
}

@keyframes slideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* =========================
   RESPONSIVE - TABLET
   ========================= */
@media (max-width: 1024px) {
    .pm-single-card {
        padding: 30px;
    }
    
    .pm-single-title {
        font-size: 28px;
    }
    
    .pm-single-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 16px;
    }
}

/* =========================
   RESPONSIVE - MOBILE
   ========================= */
@media (max-width: 768px) {
    .pm-single-container {
        margin: 20px auto;
        padding: 0 16px;
    }
    
    .pm-single-card {
        padding: 24px;
        border-radius: 12px;
    }
    
    .pm-single-title {
        font-size: 24px;
    }
    
    .pm-single-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .pm-single-item {
        padding: 16px;
    }
    
    .pm-value {
        font-size: 16px;
    }
    
    .pm-value-highlight {
        font-size: 24px;
    }
    
    .pm-single-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .pm-btn-save {
        width: 100%;
        justify-content: center;
    }
    
    .pm-print-btn {
        width: 100%;
        justify-content: center;
    }
    
    .pm-success-notice {
        top: 10px;
        right: 10px;
        left: 10px;
        font-size: 14px;
    }
}

/* =========================
   PRINT STYLES
   ========================= */
@media print {
    .pm-edit-section,
    .pm-back-link,
    .pm-print-actions {
        display: none !important;
    }
    
    .pm-print-section {
        display: block !important;
    }
    
    .pm-single-card {
        box-shadow: none;
        border: 2px solid #000;
    }
    
    .pm-single-item {
        break-inside: avoid;
    }
    
    * {
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
}
/* =========================
   FORMULAR ADÃ„Æ’ÃƒÂ¢Ã¢â€šÂ¬Ã…Â¡UGARE - STILURI ÃƒÆ’Ã†â€™Ãƒâ€¦Ã‚Â½MBUNÃ„Æ’ÃƒÂ¢Ã¢â€šÂ¬Ã…Â¡TÃ„Æ’ÃƒÂ¢Ã¢â€šÂ¬Ã…Â¡ÃƒÆ’Ã‹â€ Ãƒâ€¦Ã‚Â¡ITE
   AdaugÃ„Æ’Ãƒâ€ Ã¢â‚¬â„¢ DUPÃ„Æ’ÃƒÂ¢Ã¢â€šÂ¬Ã…Â¡ stilurile existente
   ========================= */

/* =========================
   GRID LAYOUT pentru 2 coloane
   ========================= */
.pm-form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
    margin-bottom: 24px;
}

.pm-form-grid .pm-form-row {
    margin-bottom: 0;
}

/* =========================
   ICONIÃƒÆ’Ã‹â€ Ãƒâ€¦Ã‚Â¡E pentru LABELS
   ========================= */
.pm-form label {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pm-form label::before {
    font-size: 18px;
}
/* Iconițe specifice */
.pm-form-row:has([name="titlu"]) label::before {
    content: "\1F4E6"; /* 📦 */
}

.pm-form-row:has([name="provider"]) label::before {
    content: "\1F3E2"; /* 🏢 */
}

.pm-form-row:has([name="destinatar_id"]) label::before {
    content: "\1F4CD"; /* 📍 */
}

.pm-form-row:has([name="pret"]) label::before {
    content: "\1F4B0"; /* 💰 */
}

.pm-form-row:has([name="buc"]) label::before {
    content: "\1F522"; /* 🔢 */
}

.pm-form-row:has([name="data"]) label::before {
    content: "\1F4C5"; /* 📅 */
}

.pm-form-row:has([name="detalii_lucrare"]) label::before {
    content: "\1F6E0\FE0F"; /* 🛠️ */
}


/* =========================
   VALIDARE VIZUALÃ„Æ’ÃƒÂ¢Ã¢â€šÂ¬Ã…Â¡
   ========================= */

/* CÃƒÆ’Ã†â€™Ãƒâ€šÃ‚Â¢mp VALID (cu checkmark verde) */
.pm-form input:valid:not(:placeholder-shown):not([type="date"]):not([type="file"]),
.pm-form textarea:valid:not(:placeholder-shown),
.pm-form select:valid:not([value=""]) {
    border-color: #10b981;
    padding-right: 40px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%2310b981' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 20px;
}

/* CÃƒÆ’Ã†â€™Ãƒâ€šÃ‚Â¢mp INVALID (border roÃƒÆ’Ã‹â€ ÃƒÂ¢Ã¢â‚¬Å¾Ã‚Â¢u) */
.pm-form input.error,
.pm-form textarea.error,
.pm-form select.error {
    border-color: #ef4444;
}

/* Mesaj eroare */
.pm-field-error {
    color: #ef4444;
    font-size: 13px;
    margin-top: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* =========================
   PREÃƒÆ’Ã‹â€ Ãƒâ€¦Ã‚Â¡ TOTAL DISPLAY (LIVE)
   ========================= */
.pm-pret-total-display {
    margin-top: 16px;
    padding: 20px;
    background: linear-gradient(135deg, #f3e8ff 0%, #e9d5ff 100%);
    border: 2px solid #a855f7;
    border-radius: 12px;
    text-align: center;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.pm-pret-total-label {
    font-size: 14px;
    font-weight: 600;
    color: #7c3aed;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pm-pret-total-value {
    font-size: 32px;
    font-weight: 800;
    background: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.pm-pret-total-currency {
    font-size: 20px;
    margin-left: 4px;
}

/* =========================
   BUTON SUBMIT - MODERN
   ========================= */
.pm-form button[type="submit"] {
    width: 100%;
    padding: 18px 32px;
    font-size: 17px;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 16px rgba(79, 70, 229, 0.3);
    margin-top: 32px;
}

.pm-form button[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(79, 70, 229, 0.4);
}

.pm-form button[type="submit"]:active {
    transform: translateY(0);
}

.pm-form button[type="submit"]::before {
    content: "\1F680 "; /* Ã°Å¸Å¡â‚¬ */
    margin-right: 8px;
}

/* Loading state */
.pm-form button[type="submit"].loading {
    pointer-events: none;
    opacity: 0.7;
}

.pm-form button[type="submit"].loading::before {
    content: "\23F3 "; /* Ã¢ÂÂ³ */
    animation: spin 1s linear infinite;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}

/* =========================
   SUCCESS MESSAGE
   ========================= */
.pm-success {
    position: fixed;
    top: 24px;
    right: 24px;
    left: 24px;
    max-width: 400px;
    margin: 0 auto;
    padding: 20px 24px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #fff;
    border-radius: 12px;
    font-weight: 600;
    font-size: 16px;
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.3);
    animation: slideInTop 0.4s ease-out;
    z-index: 9999;
}

@keyframes slideInTop {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideOutTop {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-20px);
    }
}

.pm-success::before {
    content: 'ÃƒÆ’Ã‚Â¢Ãƒâ€¦Ã¢â‚¬Å“ÃƒÂ¢Ã¢â€šÂ¬Ã‚Â¦ ';
    font-size: 20px;
    margin-right: 8px;
}

/* =========================
   ÃƒÆ’Ã†â€™Ãƒâ€¦Ã‚Â½MBUNÃ„Æ’ÃƒÂ¢Ã¢â€šÂ¬Ã…Â¡TÃ„Æ’ÃƒÂ¢Ã¢â€šÂ¬Ã…Â¡ÃƒÆ’Ã‹â€ Ãƒâ€¦Ã‚Â¡IRI INPUT
   ========================= */

/* Focus state ÃƒÆ’Ã†â€™Ãƒâ€šÃ‚Â®mbunÃ„Æ’Ãƒâ€ Ã¢â‚¬â„¢tÃ„Æ’Ãƒâ€ Ã¢â‚¬â„¢ÃƒÆ’Ã‹â€ ÃƒÂ¢Ã¢â€šÂ¬Ã‚Âºit */
.pm-form input:focus,
.pm-form select:focus,
.pm-form textarea:focus {
    outline: none;
    background: #fff;
    border-color: var(--pm-primary);
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1);
}

/* Textarea auto-resize pregÃ„Æ’Ãƒâ€ Ã¢â‚¬â„¢tit */
.pm-form textarea {
    min-height: 100px;
    resize: vertical;
    line-height: 1.6;
}

/* Number input - stil ÃƒÆ’Ã†â€™Ãƒâ€šÃ‚Â®mbunÃ„Æ’Ãƒâ€ Ã¢â‚¬â„¢tÃ„Æ’Ãƒâ€ Ã¢â‚¬â„¢ÃƒÆ’Ã‹â€ ÃƒÂ¢Ã¢â€šÂ¬Ã‚Âºit */
.pm-form input[type="number"] {
    -moz-appearance: textfield;
}

.pm-form input[type="number"]::-webkit-inner-spin-button,
.pm-form input[type="number"]::-webkit-outer-spin-button {
    opacity: 1;
}

/* =========================
   RESPONSIVE - MOBILE
   ========================= */
@media (max-width: 768px) {
    /* Grid devine single column */
    .pm-form-grid {
        grid-template-columns: 1fr;
        gap: 0;
        margin-bottom: 0;
    }
    
    .pm-form-grid .pm-form-row {
        margin-bottom: 24px;
    }
    
    /* Font size minim 16px (previne zoom iOS) */
    .pm-form input,
    .pm-form select,
    .pm-form textarea {
        font-size: 16px;
        padding: 12px 14px;
    }
    
    /* Buton mai compact */
    .pm-form button[type="submit"] {
        padding: 16px 24px;
        font-size: 16px;
    }
    
    /* PreÃƒÆ’Ã‹â€ ÃƒÂ¢Ã¢â€šÂ¬Ã‚Âº total mai compact */
    .pm-pret-total-value {
        font-size: 28px;
    }
    
    /* Success message full width */
    .pm-success {
        top: 16px;
        right: 16px;
        left: 16px;
        font-size: 15px;
    }
}

/* =========================
   LANDSCAPE MODE (Mobile)
   ========================= */
@media (max-width: 768px) and (orientation: landscape) {
    .pm-form-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}

/* =========================
   ACCESSIBILITY
   ========================= */
.pm-form input:focus-visible,
.pm-form select:focus-visible,
.pm-form textarea:focus-visible,
.pm-form button:focus-visible {
    outline: 3px solid var(--pm-primary);
    outline-offset: 2px;
}
.acc2 {
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  overflow: hidden;
}

.acc2__toggle {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.acc2__title {
  display: block;
  padding: 12px 14px;
  cursor: pointer;
  font-weight: 600;
  user-select: none;
}

.acc2__content {
  max-height: 0;
  overflow: hidden;
  transition: max-height .25s ease;
  padding: 0 14px;
}

.acc2__toggle:checked ~ .acc2__content {
  max-height: 500px; /* suficient pt. conÃƒË†Ã¢â‚¬Âºinutul tÃƒâ€žÃ†â€™u */
  padding-bottom: 14px;
}
/* =========================
   EVIDENÃˆÅ¡IERE CANTITATE MULTIPLÃ„â€š
   ========================= */

/* RÃƒÂ¢nd cu cantitate > 1 - fundal galben subtil */
.pm-row.pm-qty-multiple {
    background: linear-gradient(90deg, #fffbeb 0%, #fef3c7 50%, transparent 100%);
    border-left: 3px solid #f59e0b;
}

/* Hover state - mai intens */
.pm-row.pm-qty-multiple:hover {
    background: linear-gradient(90deg, #fef3c7 0%, #fde68a 50%, rgba(253, 230, 138, 0.3) 100%);
}

/* Celula Buc - evidenÃˆâ€ºiazÃ„Æ’ numÃ„Æ’rul cÃƒÂ¢nd > 1 */
.pm-row.pm-qty-multiple td:nth-child(3) {
    font-weight: 700;
    color: #92400e;
    background: #fef3c7;
    border-radius: 6px;
}

/* Mobile - pÃ„Æ’streazÃ„Æ’ evidenÃˆâ€ºierea */
@media (max-width: 768px) {
    .pm-row.pm-qty-multiple {
        border-left: 4px solid #f59e0b;
        background: #fffbeb;
    }
}
/* Cost transport highlight */
.pm-single-item:has(.pm-label:contains('Cost Transport')) {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border: 2px solid #fbbf24;
}