/**
 * mine-bestillinger-forbedret CSS
 * Flyttet fra includes/mine-bestillinger-forbedret.php
 */

    #foreslaa-dato-modal { display: none !important; visibility: hidden; opacity: 0; }
    #foreslaa-dato-modal.modal-visible { display: flex !important; visibility: visible; opacity: 1; }

    /* Forbedret design for mine bestillinger */
    .anbud-mine-bestillinger-forbedret {
        padding: 20px 0;
    }
    
    .bestillinger-grid {
        display: grid;
        gap: 25px;
        margin-top: 25px;
    }
    
    .bestilling-kort {
        background: white;
        border-radius: 16px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.08);
        border: 1px solid #e8dfd0;
        overflow: hidden;
        transition: all 0.3s ease;
    }
    
    .bestilling-kort:hover {
        box-shadow: 0 8px 24px rgba(0,0,0,0.12);
        transform: translateY(-2px);
    }
    
    .bestilling-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 20px 25px;
        background: linear-gradient(135deg, #faf8f5 0%, #f5f0e8 100%);
        border-bottom: 1px solid #e8dfd0;
    }
    
    .bestilling-id {
        display: flex;
        flex-direction: column;
    }
    
    .bestilling-id .label {
        font-size: 0.85em;
        color: #666;
        margin-bottom: 2px;
    }
    
    .bestilling-id .verdi {
        font-size: 1.2em;
        font-weight: 700;
        color: #3a5f41;
    }
    
    .bestilling-innhold {
        padding: 25px;
    }
    
    .bestilling-tittel {
        font-size: 1.3em;
        margin: 0 0 20px;
        line-height: 1.4;
    }
    
    .bestilling-tittel a {
        color: #3a5f41;
        text-decoration: none;
        transition: color 0.3s ease;
    }
    
    .bestilling-tittel a:hover {
        color: #8B4513;
    }
    
    .bestilling-info-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 15px;
        margin-bottom: 25px;
    }
    
    .info-boks {
        background: #faf8f5;
        padding: 15px;
        border-radius: 10px;
        display: flex;
        flex-direction: column;
        gap: 5px;
    }
    
    .info-label {
        font-size: 0.9em;
        color: #666;
    }
    
    .info-verdi {
        font-weight: 600;
        color: #333;
    }
    
    .info-verdi.stor {
        font-size: 1.3em;
        color: #8B4513;
    }
    
    /* Leveringsdato seksjon */
    .leveringsdato-seksjon {
        background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
        padding: 20px;
        border-radius: 12px;
        margin: 20px 0;
    }
    
    .leveringsdato-seksjon h4 {
        margin: 0 0 15px;
        color: #3a5f41;
        font-size: 1.1em;
    }
    
    .leveringsdato-forslag p {
        margin: 0 0 15px;
        font-size: 1.05em;
    }
    
    .leveringsdato-handlinger {
        display: flex;
        gap: 10px;
        flex-wrap: wrap;
    }
    
    .leveringsdato-godkjent {
        color: #2e7d32;
        font-weight: 600;
    }
    
    .leveringsdato-venter {
        color: #666;
        font-style: italic;
    }
    
    /* Selger info */
    .selger-info {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 15px;
        background: #f5f0e8;
        border-radius: 10px;
        margin-bottom: 20px;
    }
    
    .selger-label {
        color: #666;
        font-size: 0.95em;
    }
    
    .selger-navn {
        color: #8B4513;
        text-decoration: none;
        font-weight: 600;
    }
    
    .selger-navn:hover {
        text-decoration: underline;
    }
    
    .selger-lokasjon {
        margin-left: auto;
        color: #666;
        font-size: 0.9em;
    }
    
    /* Handlinger */
    .bestilling-handlinger {
        display: flex;
        gap: 10px;
        flex-wrap: wrap;
    }
    
    .bestilling-footer {
        padding: 15px 25px;
        background: #faf8f5;
        border-top: 1px solid #e8dfd0;
        text-align: right;
    }
    
    .bestilt-dato {
        color: #666;
        font-size: 0.9em;
    }
    
    /* Status badges */
    .anbud-status {
        display: inline-block;
        padding: 6px 14px;
        border-radius: 20px;
        font-size: 0.85em;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }
    
    .anbud-status-ny {
        background: #e3f2fd;
        color: #1976d2;
    }
    
    .anbud-status-bekreftet {
        background: #f3e5f5;
        color: #7b1fa2;
    }
    
    .anbud-status-skal_leveres {
        background: #fff3cd;
        color: #856404;
    }
    
    .anbud-status-levert {
        background: #d4edda;
        color: #155724;
    }
    
    .anbud-status-betalt {
        background: #d1ecf1;
        color: #0c5460;
    }
    
    .anbud-status-avbrutt {
        background: #f8d7da;
        color: #721c24;
    }
    
    /* Responsive */
    @media (max-width: 768px) {
        .bestilling-info-grid {
            grid-template-columns: 1fr 1fr;
        }
        
        .bestilling-handlinger {
            flex-direction: column;
        }
        
        .bestilling-handlinger .anbud-btn {
            width: 100%;
        }
        
        .selger-info {
            flex-direction: column;
            align-items: flex-start;
        }
        
        .selger-lokasjon {
            margin-left: 0;
        }
    }


