@font-face {
    font-family: 'Fredericka the Great';
    src: url('fonts/FrederickatheGreat-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Rustica';
    src: url('fonts/Rustica.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background-color: #fffdf8;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    font-size: 18px;
    line-height: 1.8;
    color: #2f3b33;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 25px 20px;
    font-size: 16px;
}

/* Mobilanpassad container */
@media (max-width: 600px) {
    .container {
        padding: 15px 12px;
        font-size: 16px;
    }
}

@media (max-width: 400px) {
    .container {
        padding: 12px 10px;
    }
}

h1 {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
    text-align: center;
    color: #1f8e4e;
    font-family: 'Fredericka the Great', 'Segoe UI', sans-serif;
    font-weight: normal;
    font-size: 42px;
    letter-spacing: 1px;
    margin-bottom: 30px;
}

.header-logo {
    height: 80px;
    width: auto;
    vertical-align: middle;
}

/* Mobilanpassningar för header */
@media (max-width: 600px) {
    h1 {
        font-size: 28px;
        flex-direction: column;
        gap: 8px;
    }

    .header-logo {
        height: 60px;
        margin: 0;
    }
}

p {
    font-size: 16px;
    line-height: 1.6;
}

.step {
    margin-bottom: 40px;
    padding: 30px;
    border: 2px solid #e0efe0;
    border-radius: 18px;
    background-color: #fff;
    position: relative;
    box-shadow: 0 6px 16px rgba(46, 125, 67, 0.08);
}

/* Mobilvänliga steg */
@media (max-width: 600px) {
    .step {
        margin-bottom: 25px;
        padding: 20px 15px;
        border-radius: 12px;
    }
    
    .step::before {
        top: -15px;
        left: 15px;
        padding: 4px 16px;
        font-size: 16px;
    }

    .step[data-step="4"] .checkout-btn {
        margin-top: 35px;
    }
    
    .step h2 {
        font-size: 22px;
        margin: 8px 0 20px 0;
        padding-bottom: 12px;
    }
}

.step::before {
    content: attr(data-step);
    position: absolute;
    top: -20px;
    left: 30px;
    background-color: #27ae60;
    color: white;
    padding: 5px 20px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 18px;
}

.step h2 {
    font-size: 28px;
    color: #27ae60;
    margin: 10px 0 25px 0;
    padding-bottom: 15px;
    border-bottom: 2px solid #e8f5e9;
    display: flex;
    align-items: center;
    gap: 12px;
}

#customDatumVäljare {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.custom-datum {
    flex: 1;
    padding: 15px;
    font-size: 18px;
    border: 2px solid #ddd;
    border-radius: 8px;
    background-color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

/* Mobilanpassad datumväljare */
@media (max-width: 600px) {
    #customDatumVäljare {
        flex-direction: column;
        gap: 12px;
        margin-top: 15px;
    }
    
    .custom-datum {
        padding: 12px 15px;
        font-size: 16px;
        border-radius: 8px;
        text-align: center;
    }
}

@media (max-width: 400px) {
    .custom-datum {
        padding: 10px 12px;
        font-size: 15px;
    }
}

.custom-datum:hover {
    border-color: #27ae60;
}

.custom-datum:focus {
    border-color: #27ae60;
    box-shadow: 0 0 0 3px rgba(39, 174, 96, 0.2);
    outline: none;
}

.error {
    color: #e74c3c;
    font-size: 16px;
    padding: 10px;
    margin-top: 10px;
    background-color: #fde8e7;
    border-radius: 4px;
    display: none;
}

.error.visible {
    display: block;
}

input[type="text"],
input[type="password"],
select {
    width: 100%;
    padding: 10px;
    margin: 5px 0 15px 0;
    border: 1px solid hsl(0, 0%, 87%);
    border-radius: 4px;
    box-sizing: border-box;
}

.product-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.product-item {
    background-color: #eaf0e9;
    padding: 20px;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.1);
    font-size: 20px;
    margin-bottom: 15px;
}

.product-item label {
    display: flex;
    align-items: center;
    gap: 15px;
    width: 100%;
    white-space: normal;
    word-wrap: break-word;
    overflow: visible;
}

.quantity {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
}

.quantity span {
    white-space: nowrap;
}

.quantity input {
    width: 80px;
    text-align: center;
    padding: 10px;
    font-size: 20px;
}

.btn {
    background: linear-gradient(135deg, #2fbe6e, #1f9d55);
    color: white;
    padding: 20px 40px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-size: 24px;
    font-weight: bold;
    width: 100%;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 12px rgba(39, 174, 96, 0.25);
}

.btn:hover {
    background-color: #219a52;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px 0;
}

.pagination button {
    background-color: #27ae60;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

.pagination button:disabled {
    background-color: #bdc3c7;
    cursor: not-allowed;
}

.total {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 12px;
    margin-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 24px;
    font-weight: bold;
    color: #27ae60;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.total-amount {
    font-size: 28px;
}

@media (max-width: 600px) {
    .product-list {
        grid-template-columns: 1fr;
    }

    .product-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .product-item label {
        white-space: normal; 
        word-wrap: break-word;
        word-break: break-word; 
        overflow-wrap: break-word;
        overflow: hidden;
        text-overflow: ellipsis;
        margin-bottom: 10px;
    }

    .btn, .pagination button {
        width: 100%;
    }
}

.order-summary {
    background-color: #f8f9fa;
    border-radius: 15px;
    padding: 25px;
    margin-top: 20px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.category-section {
    background-color: white;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    width: 100%;
    box-sizing: border-box;
}

.category-section h3 {
    color: #27ae60;
    margin-bottom: 15px;
    font-size: 22px;
}

#livsmedelResultat,
#ovrigaResultat {
    font-size: 18px;
    line-height: 1.6;
    word-wrap: break-word;
    white-space: normal;
    width: 100%;
    display: block;
}

.no-items {
    color: #8aa08d;
    font-style: italic;
    font-size: 16px;
    text-align: center;
    padding: 15px;
    background-color: #f3f8f1;
    border-radius: 8px;
    margin: 0;
    width: 100%;
    box-sizing: border-box;
    display: inline-block;
}

nav a {
    margin-right: 15px;
    color: white;
    text-decoration: none;
    padding: 10px 15px;
    background-color: #27ae60;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

nav a:hover {
    background-color: #2ecc71;
}


#tackMeddelande {
    color: #27ae60;
    margin-top: 15px;
    font-weight: bold;
}

/* Style */
.btn-login {
    background-color: #27ae60 !important;
    color: white !important;
    padding: 12px 20px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    transition: background-color 0.3s;
    width: 100%;
    text-align: center;
}

.btn-login:hover {
    background-color: #2ecc71 !important;
}

.large-text {
    font-size: 30px;
    line-height: 1.6;
}

.summary-card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.summary-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.category-summary {
    text-align: center;
}

.total-summary {
    grid-column: 1 / -1;
    text-align: center;
    border-top: 2px solid #eee;
    padding-top: 20px;
    margin-top: 20px;
}

.status-badge {
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: bold;
}

.status-badge.reconciled {
    background: #27ae60;
    color: white;
}

.status-badge.pending {
    background: #f1c40f;
    color: white;
}

.payments-list table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.payments-list th,
.payments-list td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.payments-list th {
    background: #f8f9fa;
    font-weight: bold;
}

.date-selector {
    margin: 20px 0;
    display: flex;
    gap: 10px;
}

.date-selector input[type="date"] {
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

/* betalningsmetoder */
.payment-methods {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin: 20px 0;
}

.payment-button {
    flex: 1;
    min-width: 150px;
    border: 3px solid #27ae60;
    border-radius: 15px;
    background-color: white;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s, background-color 0.3s, border-width 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
}

.payment-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.payment-button.selected {
    background-color: #27ae60;
    border-color: #1b5e20;
    border-width: 5px;
    color: white;
    box-shadow: 0 0 20px rgba(39, 174, 96, 0.6);
    transform: scale(1.05);
}

.payment-button.selected::after {
    content: "✓ VALD";
    position: absolute;
    top: -10px;
    right: -10px;
    background: #1b5e20;
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: bold;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.payment-button.selected span {
    color: white;
    font-weight: bold;
}

.payment-button img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin-bottom: 10px;
}

.payment-button span {
    font-size: 24px;
    font-weight: bold;
    color: #333;
}

/* Responsiv design för mobiler */
@media (max-width: 768px) {
    .payment-methods {
        flex-direction: column;
        align-items: center;
        gap: 15px;
        margin: 15px 0;
    }

    .payment-button {
        width: 100%;
        max-width: 280px;
        padding: 18px;
        border-radius: 12px;
    }

    .payment-button img {
        width: 60px;
        height: 60px;
        margin-bottom: 8px;
    }
    
    .payment-button span {
        font-size: 20px;
    }
}

@media (max-width: 600px) {
    .payment-methods {
        gap: 12px;
        margin: 12px 0;
    }
    
    .payment-button {
        max-width: 250px;
        padding: 15px;
    }
    
    .payment-button img {
        width: 50px;
        height: 50px;
    }
    
    .payment-button span {
        font-size: 18px;
    }
}

@media (max-width: 400px) {
    .payment-button {
        max-width: 220px;
        padding: 12px;
    }
    
    .payment-button img {
        width: 45px;
        height: 45px;
    }
    
    .payment-button span {
        font-size: 16px;
    }
}

.payment-instructions {
    font-size: 24px;
    padding: 20px;
    margin: 20px 0;
    background-color: #e8f5e9;
    border-radius: 10px;
    text-align: center;
    line-height: 1.5;
}

#sok {
    width: 100%;
    padding: 15px;
    font-size: 18px;
    border: 2px solid #ddd;
    border-radius: 8px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

#sok:focus {
    border-color: #27ae60;
    box-shadow: 0 0 0 3px rgba(39, 174, 96, 0.2);
}

.selected-products {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    box-sizing: border-box;
}

.product-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    background-color: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    margin-bottom: 10px;
    width: 100%;
    box-sizing: border-box;
}

.product-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 5px;
    width: 100%;
}

.product-name {
    font-size: 18px;
    font-weight: bold;
    color: #2c3e50;
    margin: 0;
}

.product-price {
    font-size: 16px;
    color: #27ae60;
    font-weight: bold;
    margin: 0;
}

.product-quantity {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background-color: #f4f4f4;
    padding: 8px;
    border-radius: 25px;
    margin: 10px auto;
}

.quantity-btn {
    background-color: white;
    border: 2px solid #27ae60;
    color: #27ae60;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    padding: 0;
    margin: 0;
    flex-shrink: 0;
}

.quantity-btn:hover {
    background-color: #27ae60;
    color: white;
}

.product-quantity span {
    font-size: 18px;
    color: #333;
    width: 36px;
    height: 36px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    font-weight: bold;
    flex-shrink: 0;
}

/* Mobil-anpassningar */
@media (max-width: 600px) {
    .product-quantity {
        padding: 6px;
        gap: 6px;
    }
    
    .quantity-btn {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }

    .product-quantity span {
        width: 40px;
        height: 40px;
        font-size: 20px;
        font-weight: bold;
    }
}

.remove-btn {
    background-color: #fee8e7;
    border: none;
    color: #e74c3c;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s ease;
    width: 100%;
    text-align: center;
}

.remove-btn:hover {
    background-color: #fdd5d2;
}



.quantity-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.total {
    font-size: 24px;
    font-weight: bold;
    text-align: center;
    background-color: #e8f5e9;
    padding: 15px;
    border-radius: 10px;
    margin: 20px 0;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    color: #27ae60;
}

/* Uppdatera error styling */
.error-message {
    display: none;
    background-color: #fff3f3;
    border: 2px solid #e74c3c;
    color: #e74c3c;
    padding: 15px 20px;
    border-radius: 8px;
    margin: 10px 0;
    font-size: 18px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    animation: shake 0.5s ease-in-out;
}

/* Mobilanpassade error-meddelanden */
@media (max-width: 600px) {
    .error-message {
        padding: 12px 15px;
        font-size: 16px;
        margin: 8px 0;
        border-radius: 6px;
    }
    
    .error {
        font-size: 14px;
        padding: 8px 12px;
        margin-top: 8px;
    }
}

@media (max-width: 400px) {
    .error-message {
        padding: 10px 12px;
        font-size: 15px;
        margin: 6px 0;
    }
    
    .error {
        font-size: 13px;
        padding: 6px 10px;
        margin-top: 6px;
    }
}

.error-message.visible {
    display: block;
}

/* Animation för felmeddelanden */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

/* Styling för steg som har fel */
.step.has-error {
    border-color: #e74c3c;
}

.step.has-error::before {
    background-color: #e74c3c;
}

/* Responsiv design för mindre skärmar */
@media (max-width: 600px) {
    .product-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .product-info {
        width: 100%;
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }



    .quantity-controls {
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .remove-btn {
        width: 100%;
        margin-top: 5px;
        text-align: center;
    }
}

.admin-nav {
    background-color: #f8f9fa;
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.admin-nav .nav-link {
    padding: 0.5rem 1rem;
    color: #495057;
    text-decoration: none;
    border-radius: 0.375rem;
    transition: all 0.2s ease-in-out;
    font-weight: 500;
    font-size: 0.95rem;
}

.admin-nav .nav-link:hover {
    background-color: #e9ecef;
    color: #212529;
}

.admin-nav .nav-link.active {
    background-color: #0d6efd;
    color: white;
}

.admin-nav .nav-link.logout {
    margin-left: auto;
    background-color: #dc3545;
    color: white;
}

.admin-nav .nav-link.logout:hover {
    background-color: #bb2d3b;
}

/* Cards styling */
.card {
    border: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    margin-bottom: 1.5rem;
}

.card-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    padding: 1rem 1.25rem;
}

.card-title {
    color: #212529;
    font-weight: 600;
    margin-bottom: 0;
}

/* Tables */
.table {
    margin-bottom: 0;
}

.table th {
    font-weight: 600;
    background-color: #f8f9fa;
}

/* Buttons */
.btn {
    font-weight: 500;
    padding: 0.5rem 1rem;
}

.btn-sm {
    padding: 0.25rem 0.5rem;
}


@media (max-width: 768px) {
    .admin-nav {
        flex-direction: column;
    }
    
    .admin-nav .nav-link {
        width: 100%;
        text-align: center;
    }
    
    .admin-nav .nav-link.logout {
        margin-left: 0;
    }
}


.admin-panel .btn {
    font-size: 0.9rem;
    padding: 0.375rem 0.75rem;
    font-weight: 500;
}

.admin-panel .btn-sm {
    font-size: 0.8rem;
    padding: 0.25rem 0.5rem;
}

/* Specifika stilar för admin-formulär */
.admin-panel form .btn {
    width: auto;
    text-transform: none;
    letter-spacing: normal;
}


.admin-panel .table .btn {
    font-size: 0.8rem;
    padding: 0.25rem 0.5rem;
}

.admin-panel .badge {
    font-size: 0.8rem;
    padding: 0.25rem 0.5rem;
}


.admin-nav .nav-link {
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
}


.card .btn-primary, 
.card .btn-success {
    font-size: 14px;
    padding: 6px 12px;
    width: auto;
    height: auto;
    text-transform: none;
    letter-spacing: normal;
    box-shadow: none;
}

/* Justera storleken på datumväljarens knappar */
.card .btn-primary:hover, 
.card .btn-success:hover {
    transform: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Specifikt för "Visa betalningar" och "Markera som bokförd" knapparna */
.card form .btn {
    font-size: 14px;
    padding: 6px 12px;
    font-weight: normal;
    margin: 0;
}


.admin-panel .btn {
    font-size: 14px;
    padding: 6px 12px;
    width: auto;
    height: auto;
    text-transform: none;
    font-weight: normal;
}


@media (max-width: 600px) {
    .quantity-btn {
        width: 44px;
        height: 44px;
        font-size: 22px;
    }
    
    .no-items {
        font-size: 16px !important;
        padding: 15px;
        margin: 5px 0;
    }
}

/* Mobil-anpassningar */
@media (max-width: 600px) {
    .no-items {
        font-size: 14px !important;
        padding: 10px;
        margin: 5px 0;
    }
    
    .category-section {
        padding: 15px;  /* Mindre padding på mobil */
    }
    
    .order-summary {
        padding: 15px;  /* Minska padding på mobil */
    }
}

.quantity-btn {
    background-color: #e8f5e9;
    border: 2px solid #27ae60;
    color: #27ae60;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    padding: 0;
    margin: 0 5px;
}

.quantity-btn:hover {
    background-color: #27ae60;
    color: white;
}

/* Mobil-anpassningar */
@media (max-width: 600px) {
    .quantity-btn {
        width: 36px;
        height: 36px;
        font-size: 20px;
    }
}


.admin-nav .btn,
.card .btn,
.admin-panel .btn,
form .btn-sm {
    font-size: 14px !important;
    padding: 6px 12px !important;
    width: auto !important;
    height: auto !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    font-weight: normal !important;
    margin: 0 !important;
}


.btn-sm {
    padding: 0.25rem 0.5rem !important;
    font-size: 0.8rem !important;
}


.btn-warning,
.btn-danger {
    width: auto !important;
    padding: 6px 12px !important;
    font-size: 14px !important;
    text-transform: none !important;
    letter-spacing: normal !important;
}


.admin-panel .btn:hover,
.card .btn:hover {
    transform: none !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1) !important;
}

.modal-footer .btn-secondary {
    margin-right: 10px !important;
}

.qr-code-container {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-left: 1rem;
}

.qr-code-image {
    width: 100px;
    height: 100px;
}

.product-actions {
    display: flex;
    gap: 0.5rem;
}

@media (max-width: 768px) {
    .qr-code-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .product-info {
        flex-direction: column;
        align-items: flex-start;
    }
}

.scanner-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin: 20px 0;
}

#reader {
    width: 100% !important;
    max-width: 600px !important;
    margin: 0 auto !important;
    border: none !important;
    box-shadow: none !important;
}

#reader video {
    width: 100% !important;
    height: auto !important;
    border-radius: 8px;
}

#reader__scan_region {
    background: white !important;
    position: relative !important;
    min-height: 300px !important;
    margin-bottom: 20px !important;
}

#reader__scan_region video {
    max-height: 70vh !important;
    object-fit: cover !important;
    border-radius: 8px !important;
}


#reader__camera_permission_button,
#reader__camera_selection,
#reader__status_span,
#reader__dashboard_section_swaplink,
#reader__dashboard_section_csr,
select#reader__camera_id,
span#reader__camera_permission_button,
button#reader__dashboard_section_swaplink,
#html5-qrcode-button-camera-stop,
#html5-qrcode-button-camera-start {
    display: none !important;
}


#reader__scan_region::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 250px;
    height: 250px;
    border: 2px solid #27ae60;
    border-radius: 12px;
    z-index: 1;
}

.scan-btn {
    background-color: #27ae60;
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.scan-btn:hover {
    background-color: #219a52;
}

.scan-instructions {
    text-align: center;
    color: #666;
    font-size: 16px;
    margin: 10px 0;
}

/* Mobilanpassningar för skannern */
@media (max-width: 600px) {
    .scanner-container {
        gap: 0.8rem;
        margin: 15px 0;
    }
    
    #reader {
        width: 100%;
        height: auto;
        max-width: 100% !important;
    }
    
    #reader__scan_region {
        min-height: 250px !important;
        margin-bottom: 15px !important;
    }
    
    #reader__scan_region::before {
        width: 200px;
        height: 200px;
    }
    
    .scan-btn {
        width: 100%;
        max-width: 280px;
        padding: 10px 20px;
        font-size: 16px;
    }
    
    .scan-instructions {
        font-size: 14px;
        margin: 8px 0;
    }
}

@media (max-width: 400px) {
    .scanner-container {
        gap: 0.6rem;
        margin: 12px 0;
    }
    
    #reader__scan_region {
        min-height: 200px !important;
    }
    
    #reader__scan_region::before {
        width: 150px;
        height: 150px;
    }
    
    .scan-btn {
        max-width: 250px;
        padding: 8px 16px;
        font-size: 15px;
    }
    
    .scan-instructions {
        font-size: 13px;
    }
}

.antal-dialog {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.antal-dialog-content {
    background: white;
    padding: 20px;
    border-radius: 15px;
    text-align: center;
    width: 90%;
    max-width: 300px;
}

.antal-dialog h3 {
    font-size: 24px;
    margin: 0 0 10px 0;
}

.antal-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin: 20px 0;
}

.antal-controls button {
    width: 50px;
    height: 50px;
    border: none;
    background: #27ae60;
    color: white;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.antal-controls input {
    width: 80px;
    height: 50px;
    text-align: center;
    font-size: 24px;
    border: 2px solid #ddd;
    border-radius: 8px;
}

.antal-buttons {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.antal-buttons button {
    flex: 1;
    padding: 15px;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    cursor: pointer;
    font-weight: bold;
}

.confirm-btn {
    background: #27ae60;
    color: white;
}

.cancel-btn {
    background: #e74c3c;
    color: white;
}

/* Specifika mobil-anpassningar */
@media (max-width: 375px) {
    .antal-dialog-content {
        padding: 15px;
        width: 85%;
    }

    .antal-controls button {
        width: 44px;
        height: 44px;
        font-size: 20px;
    }

    .antal-controls input {
        width: 60px;
        height: 44px;
        font-size: 20px;
    }

    .antal-buttons button {
        padding: 12px;
        font-size: 16px;
    }
}

.vikt-controls {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 20px 0;
}

.vikt-input {
    width: 120px;
    height: 40px;
    text-align: center;
    font-size: 20px;
    border: 2px solid #ddd;
    border-radius: 8px;
    margin: 0 auto;
}

.pris-display {
    font-size: 24px;
    font-weight: bold;
    color: #27ae60;
    margin: 15px 0;
}

/* Skanningsanimation */
.scan-success-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.scan-success-overlay.active {
    opacity: 1;
}

.scan-success-content {
    background: #27ae60;
    padding: 20px;
    border-radius: 15px;
    text-align: center;
    transform: scale(0.5);
    opacity: 0;
    transition: all 0.3s ease;
}

.scan-success-overlay.active .scan-success-content {
    transform: scale(1);
    opacity: 1;
}

.scan-success-icon {
    font-size: 48px;
    color: white;
    margin-bottom: 10px;
    animation: checkmark 0.5s ease-in-out;
}

.scan-success-text {
    color: white;
    font-size: 24px;
    font-weight: bold;
    margin: 0;
}

@keyframes checkmark {
    0% {
        transform: scale(0);
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
    }
}

.scan-success-product {
    background: white;
    padding: 15px;
    border-radius: 8px;
    margin-top: 15px;
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.welcome-section {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px;
    background: linear-gradient(135deg, #eef7ee, #f6f9ef);
    border: 1px solid #dcebdc;
    border-radius: 16px;
}

.welcome-text {
    font-size: 1.2em;
    color: #2c3e50;
    margin-bottom: 10px;
}

.opening-hours {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: #e8f5e9;
    border-radius: 20px;
    color: #27ae60;
    font-weight: 500;
}

.step-number {
    display: none;
}

.category-icon {
    font-size: 1.2em;
    margin-right: 8px;
}

.alert {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 30px;
}

.alert-warning {
    background: #fff8e8;
    border: 1px solid #f2e2b8;
    border-left: 6px solid #eebb4d;
    box-shadow: 0 3px 10px rgba(160, 120, 20, 0.08);
}

.alert-warning .alert-content strong {
    color: #7a5c14;
    font-size: 1.2em;
}

.alert-warning .alert-content p {
    color: #6d6046;
    margin: 0;
}

.alert-icon {
    font-size: 24px;
}

.alert-content strong {
    display: block;
    margin-bottom: 5px;
    font-size: 1.1em;
}

/* Mobilanpassade alerts */
@media (max-width: 600px) {
    .alert {
        padding: 15px;
        gap: 12px;
        margin-bottom: 20px;
        border-radius: 10px;
    }
    
    .alert-icon {
        font-size: 20px;
        flex-shrink: 0;
    }
    
    .alert-content strong {
        font-size: 1em;
        margin-bottom: 4px;
    }
    
    .alert-content p {
        font-size: 14px;
        margin: 0;
        line-height: 1.4;
    }
}

@media (max-width: 400px) {
    .alert {
        padding: 12px;
        gap: 10px;
        margin-bottom: 15px;
    }
    
    .alert-icon {
        font-size: 18px;
    }
    
    .alert-content strong {
        font-size: 0.9em;
    }
    
    .alert-content p {
        font-size: 13px;
    }
}

.checkout-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background-color: #27ae60;
    color: white;
    font-size: 20px;
    padding: 15px 30px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

.checkout-btn:hover {
    background-color: #219a52;
    transform: translateY(-2px);
}

/* Mobilanpassad checkout-knapp */
@media (max-width: 600px) {
    .checkout-btn {
        font-size: 18px;
        padding: 12px 24px;
        gap: 10px;
        max-width: 280px;
        border-radius: 10px;
    }
}

@media (max-width: 400px) {
    .checkout-btn {
        font-size: 16px;
        padding: 10px 20px;
        gap: 8px;
        max-width: 250px;
    }
}

.checkout-icon {
    font-size: 24px;
}

@media (max-width: 600px) {
    .welcome-section {
        padding: 15px 12px;
        margin-bottom: 20px;
        border-radius: 10px;
    }
    
    .welcome-text {
        font-size: 1.1em;
        margin-bottom: 12px;
    }
    
    .opening-hours {
        font-size: 0.9em;
        padding: 6px 12px;
        border-radius: 16px;
    }
}

@media (max-width: 400px) {
    .welcome-section {
        padding: 12px 10px;
        margin-bottom: 15px;
    }
    
    .welcome-text {
        font-size: 1em;
        margin-bottom: 10px;
    }
    
    .opening-hours {
        font-size: 0.85em;
        padding: 5px 10px;
    }
}

.cart-container {
    position: relative;
    max-width: 800px;
    margin: 60px auto 20px;
    padding: 0;
}

/* Handtag */
.cart-handle {
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 50px;
    border: 4px solid #27ae60;
    border-bottom: none;
    border-radius: 100px 100px 0 0;
}

/* Kundkorg */
.cart-grid {
    border: 4px solid #27ae60;
    border-radius: 12px;
    background-color: white;
    background-image: 
        linear-gradient(rgba(39, 174, 96, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(39, 174, 96, 0.1) 1px, transparent 1px);
    background-size: 20px 20px;
    padding: 20px;
    position: relative;
}

.cart-grid h2 {
    color: #27ae60;
    font-size: 24px;
    margin: 0 0 20px 0;
}

.category-section {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
}

.category-section h3 {
    color: #27ae60;
    font-size: 18px;
    margin: 0 0 15px 0;
}

/* Att betala */
.cart-total {
    margin-top: 20px;
}

.total-content {
    background: #27ae60;
    color: white;
    padding: 15px 20px;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 20px;
    font-weight: bold;
}

.total-amount {
    font-size: 24px;
}

/* Mobilanpassning */
@media (max-width: 600px) {
    .cart-container {
        margin: 50px 15px 20px;
    }
    
    .cart-handle {
        width: 150px;
        height: 40px;
        top: -25px;
    }
    
    .cart-grid {
        padding: 15px;
        background-size: 15px 15px;
    }
    
    .cart-grid h2 {
        font-size: 20px;
    }
    
    .category-section {
        padding: 12px;
    }
    
    .category-section h3 {
        font-size: 16px;
    }
    
    .total-content {
        padding: 12px 15px;
        font-size: 18px;
    }
    
    .total-amount {
        font-size: 20px;
    }
}


.cart-container::after {
    content: '';
    position: absolute;
    left: 10%;
    bottom: -10px;
    width: 80%;
    height: 15px;
    background: rgba(0,0,0,0.1);
    filter: blur(8px);
    border-radius: 50%;
    z-index: -1;
}

/* Välkomstanimationer */
@keyframes fadeSlideIn {
    0% {
        opacity: 0;
        transform: translateY(-30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes charAnimation {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideFromLeft {
    0% {
        transform: translateX(-100px);
        opacity: 0;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes pulseGlow {
    0% {
        box-shadow: 0 0 0 0 rgba(39, 174, 96, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(39, 174, 96, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(39, 174, 96, 0);
    }
}

/* Applicera animationer */
.container h1 {
    opacity: 0;
    animation: fadeSlideIn 0.8s ease-out forwards;
}

.header-logo {
    opacity: 0;
    animation: scaleIn 0.8s ease-out 0.2s forwards;
}

.welcome-section {
    opacity: 1;
}

.opening-hours {
    opacity: 1;
}

.step {
    opacity: 0;
    transform: translateX(-50px);
}

.step[data-step="1"] { animation: slideFromLeft 0.5s ease-out 0.8s forwards; }
.step[data-step="2"] { animation: slideFromLeft 0.5s ease-out 1.0s forwards; }
.step[data-step="3"] { animation: slideFromLeft 0.5s ease-out 1.2s forwards; }
.step[data-step="4"] { animation: slideFromLeft 0.5s ease-out 1.4s forwards; }

/* Förbättra hover-effekter */
.step {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.step:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(39, 174, 96, 0.2);
}

/* Responsiv design för animationer */
@media (prefers-reduced-motion: reduce) {
    .container h1,
    .header-logo,
    .step {
        animation: none;
        opacity: 1;
        transform: none;
    }
}


.admin-body {
    display: flex;
    min-height: 100vh;
    background-color: #f5f8f5;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    transition: all 0.3s ease;
}

.admin-sidebar {
    width: 260px;
    background: linear-gradient(to bottom, #27ae60, #1f8e4e);
    color: #fff;
    display: flex;
    flex-direction: column;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    z-index: 10;
    transition: all 0.3s ease;
}

.sidebar-header {
    padding: 20px 15px;
    display: flex;
    align-items: center;
    flex-direction: column;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-logo {
    height: 60px;
    width: auto;
    margin-bottom: 10px;
    filter: brightness(0) invert(1);
}

.sidebar-header h2 {
    margin: 0;
    font-size: 22px;
    font-weight: 500;
}

.sidebar-nav {
    flex-grow: 1;
    padding: 20px 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sidebar-nav .nav-link {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-size: 15px;
    padding: 12px 15px;
    border-radius: 8px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 12px;
}

.sidebar-nav .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
}

.sidebar-nav .nav-link.active {
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    font-weight: 500;
}

.sidebar-nav .nav-link i {
    width: 20px;
    text-align: center;
    font-size: 18px;
}

.sidebar-nav .nav-link.logout {
    margin-top: auto;
    background-color: rgba(255, 255, 255, 0.1);
    color: #e9ecef;
}

.sidebar-nav .nav-link.logout:hover {
    background-color: rgba(220, 53, 69, 0.8);
}

.sidebar-footer {
    padding: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
}

.admin-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}

.content-header {
    background-color: white;
    padding: 15px 25px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    z-index: 5;
}

.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    color: #555;
    font-size: 20px;
    cursor: pointer;
    padding: 5px;
}

.page-title {
    margin: 0;
    font-size: 24px;
    font-weight: 500;
    color: #333;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.date-display {
    background-color: #f8f9fa;
    padding: 6px 12px;
    border-radius: 6px;
    color: #555;
    font-size: 14px;
}

.content-body {
    padding: 25px;
    flex-grow: 1;
    overflow-y: auto;
}

/* Dashboard Grid Layout */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.stats-card {
    background-color: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s ease;
}

.stats-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.stats-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.total-sales .stats-icon {
    background-color: rgba(39, 174, 96, 0.15);
    color: #27ae60;
}

.food-sales .stats-icon {
    background-color: rgba(52, 152, 219, 0.15);
    color: #3498db;
}

.other-sales .stats-icon {
    background-color: rgba(155, 89, 182, 0.15);
    color: #9b59b6;
}

.transactions .stats-icon {
    background-color: rgba(230, 126, 34, 0.15);
    color: #e67e22;
}

.stats-content {
    flex-grow: 1;
}

.stats-content h3 {
    margin: 0 0 5px 0;
    font-size: 15px;
    color: #777;
    font-weight: 500;
}

.stats-value {
    margin: 0 0 5px 0;
    font-size: 24px;
    font-weight: 600;
    color: #333;
}

.stats-comparison, .stats-percent, .stats-additional {
    margin: 0;
    font-size: 13px;
    color: #888;
}

.stats-comparison.positive {
    color: #27ae60;
}

.stats-comparison.negative {
    color: #e74c3c;
}

.quick-actions {
    grid-column: 1 / -1;
    background-color: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.quick-actions h3 {
    margin: 0 0 15px 0;
    font-size: 18px;
    font-weight: 500;
    color: #333;
}

.action-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    background-color: #f8f9fa;
    color: #333;
    text-decoration: none;
    padding: 12px 20px;
    border-radius: 8px;
    transition: all 0.2s ease;
    font-size: 15px;
}

.action-btn:hover {
    background-color: #e9ecef;
    color: #27ae60;
}

.action-btn i {
    color: #27ae60;
    font-size: 18px;
}

.recent-transactions {
    grid-column: 1 / 4;
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.card-header {
    padding: 15px 20px;
    background-color: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.card-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 500;
    color: #333;
}

.view-all {
    color: #27ae60;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}

.view-all:hover {
    text-decoration: underline;
}

.table-responsive {
    overflow-x: auto;
}

.table {
    width: 100%;
    border-collapse: collapse;
}

.table th {
    text-align: left;
    padding: 12px 20px;
    font-weight: 500;
    color: #555;
    background-color: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.table td {
    padding: 12px 20px;
    border-bottom: 1px solid #e9ecef;
    color: #333;
}

.table tr:last-child td {
    border-bottom: none;
}

.badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.opening-status {
    grid-column: 4;
    background-color: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.opening-status h3 {
    margin: 0 0 15px 0;
    font-size: 18px;
    font-weight: 500;
    color: #333;
}

.status-display {
    text-align: center;
}

.open-status, .closed-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 15px;
    border-radius: 6px;
    margin-bottom: 10px;
}

.open-status {
    background-color: rgba(39, 174, 96, 0.15);
    color: #27ae60;
}

.closed-status {
    background-color: rgba(231, 76, 60, 0.15);
    color: #e74c3c;
}

.status-display p {
    margin: 0;
    font-size: 16px;
    color: #555;
}


@media (max-width: 992px) {
    .dashboard-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .recent-transactions {
        grid-column: 1 / -1;
    }
    
    .opening-status {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
        padding: 10px;
        background-color: #f8f9fa;
        border: 1px solid #ddd;
        border-radius: 4px;
        cursor: pointer;
    }
    
    .admin-sidebar {
        position: fixed;
        left: 0;
        top: 0;
        height: 100%;
        width: 280px;
        transform: translateX(-100%);
        z-index: 1000;
        transition: transform 0.3s ease;
    }
    
    .sidebar-collapsed .admin-sidebar {
        transform: translateX(0);
    }
    
    .admin-content {
        margin-left: 0;
    }
    
    .page-title {
        font-size: 20px;
    }
}

@media (max-width: 576px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .content-body {
        padding: 15px;
    }
    
    .stats-card {
        padding: 15px;
    }
    
    .action-btn {
        width: 100%;
    }
}

/* Mobil-meny vid liten skärm */
.sidebar-collapsed .admin-sidebar {
    width: 260px;
    transform: translateX(0);
}

.sidebar-collapsed::after {
    content: '';
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 999;
}

/* Payments View Styling */
.date-selector-card {
    background-color: white;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.date-selector-form {
    display: flex;
    align-items: flex-end;
    gap: 15px;
    flex-wrap: wrap;
}

.date-field {
    flex-grow: 1;
    min-width: 200px;
}

.date-field label {
    font-weight: 500;
    color: #555;
    margin-bottom: 8px;
    display: block;
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

.summary-card {
    background-color: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 15px;
}

.summary-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.food-icon {
    background-color: rgba(52, 152, 219, 0.15);
    color: #3498db;
}

.other-icon {
    background-color: rgba(155, 89, 182, 0.15);
    color: #9b59b6;
}

.total-icon {
    background-color: rgba(39, 174, 96, 0.15);
    color: #27ae60;
}

.summary-content {
    flex-grow: 1;
}

.summary-content h3 {
    margin: 0 0 5px 0;
    font-size: 15px;
    color: #777;
    font-weight: 500;
}

.summary-amount {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
    color: #333;
}

.status-card {
    background-color: white;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.status-content {
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
}

.status-info {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.status-info h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 500;
    color: #333;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
}

.status-badge.reconciled {
    background-color: rgba(39, 174, 96, 0.15);
    color: #27ae60;
}

.status-badge.pending {
    background-color: rgba(243, 156, 18, 0.15);
    color: #f39c12;
}

.transactions-table-card {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.transaction-table th {
    font-weight: 500;
    background-color: #f8f9fa;
}

.product-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.product-item {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 5px;
}

.product-item:last-child {
    margin-bottom: 0;
}

.product-name {
    font-weight: 500;
}

.product-quantity {
    background-color: #e9ecef;
    color: #495057;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.product-price {
    color: #495057;
}

.category-badge {
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.category-badge.food {
    background-color: rgba(39, 174, 96, 0.15);
    color: #27ae60;
}

.category-badge.other {
    background-color: rgba(52, 152, 219, 0.15);
    color: #3498db;
}

.payment-method {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 14px;
}

.payment-method.swish {
    background-color: rgba(52, 152, 219, 0.15);
    color: #3498db;
}

.payment-method.other {
    background-color: rgba(155, 89, 182, 0.15);
    color: #9b59b6;
}

.transaction-total {
    font-weight: 600;
    color: #333;
}

.no-data {
    padding: 40px 20px !important;
}

.no-data-message {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: #777;
}

.no-data-message i {
    font-size: 32px;
    color: #aaa;
}

.no-data-message p {
    margin: 0;
    font-size: 16px;
}

@media (max-width: 768px) {
    .summary-grid {
        grid-template-columns: 1fr;
    }
    
    .date-selector-form {
        flex-direction: column;
        align-items: stretch;
    }
    
    .status-content {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .status-info {
        margin-bottom: 10px;
    }
}

/* Products Management Styling */
.flash-messages {
    margin-bottom: 20px;
}

.alert {
    border: none;
    border-radius: 8px;
    padding: 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.alert-content {
    flex-grow: 1;
}

.product-form-card, 
.products-list-card {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.product-form-card .card-content,
.products-list-card .card-content {
    padding: 20px;
}

.add-product-form .form-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 0;
}

.form-label {
    font-weight: 500;
    color: #555;
    margin-bottom: 8px;
    display: block;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.product-card {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.product-card:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.product-selection {
    grid-area: checkbox;
    display: flex;
    align-items: center;
}

.product-name {
    grid-area: name;
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

.product-info {
    grid-area: info;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.product-price {
    font-weight: 600;
    color: #2c3e50;
}

.category-badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.category-badge.food {
    background-color: #e8f5e9;
    color: #2e7d32;
}

.category-badge.other {
    background-color: #e3f2fd;
    color: #1565c0;
}

.product-actions {
    grid-area: actions;
    display: flex;
    gap: 8px;
}

/* Styling för antal-fält i prisskyltar */
.quantity-input {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    padding: 8px;
    background-color: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #e9ecef;
}

.quantity-label {
    font-size: 14px;
    font-weight: 500;
    color: #495057;
    margin-bottom: 0;
}

.quantity-field {
    width: 70px !important;
    padding: 4px 8px !important;
    font-size: 14px !important;
    border: 1px solid #ced4da !important;
    border-radius: 4px !important;
    text-align: center;
}

.quantity-field:disabled {
    background-color: #e9ecef;
    opacity: 0.6;
    cursor: not-allowed;
}

.quantity-field:focus:not(:disabled) {
    border-color: #80bdff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.product-actions button {
    width: 30px;
    height: 30px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    font-size: 12px;
}

@media (max-width: 768px) {
    .add-product-form .form-row {
        grid-template-columns: 1fr;
    }
    
    .form-actions {
        margin-top: 15px;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .qr-code-container {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .qr-download-btn {
        align-self: flex-start;
    }
}

/* Settings Page Styling */
.settings-card {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.settings-card .card-content {
    padding: 20px;
}

.header-info {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #6c757d;
}

.days-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.day-card {
    background-color: #f8f9fa;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.day-card:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.day-card.weekend {
    background-color: #e8f5e9;
    border-color: #c8e6c9;
}

.day-header {
    padding: 12px 15px;
    background-color: #fff;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.day-card.weekend .day-header {
    background-color: rgba(39, 174, 96, 0.1);
}

.day-header h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 500;
    color: #333;
}

.day-toggle {
    display: flex;
    align-items: center;
    position: relative;
}

.toggle-input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.form-check-label {
    position: relative;
    display: inline-block;
    width: 90px;
    height: 30px;
    background-color: #ddd;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 0;
    overflow: visible;
}

.form-check-label::after {
    content: '';
    position: absolute;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background-color: white;
    top: 4px;
    left: 4px;
    transition: all 0.3s ease;
}

.toggle-input:checked + .form-check-label {
    background-color: #e74c3c;
}

.toggle-input:not(:checked) + .form-check-label {
    background-color: #27ae60;
}

.toggle-input:checked + .form-check-label::after {
    left: calc(100% - 26px);
}

/* Status-text i växlarna */
.status-open, 
.status-closed {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
    font-weight: 700;
    color: white;
    z-index: 2;
    transition: opacity 0.3s ease;
    text-shadow: 0 0 2px rgba(0, 0, 0, 0.5);
}

.status-open {
    left: 32px;
}

.status-closed {
    right: 32px;
}

.toggle-input:checked + .form-check-label .status-open {
    opacity: 0;
}

.toggle-input:checked + .form-check-label .status-closed {
    opacity: 1;
}

.toggle-input:not(:checked) + .form-check-label .status-open {
    opacity: 1;
}

.toggle-input:not(:checked) + .form-check-label .status-closed {
    opacity: 0;
}

.hours-inputs {
    padding: 15px;
    display: flex;
    gap: 15px;
}

.time-field {
    flex: 1;
}

.time-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #555;
    margin-bottom: 6px;
}

.time-input {
    width: 100%;
    padding: 8px 12px;
    font-size: 14px;
}

.save-btn {
    padding: 10px 20px;
    font-size: 15px;
}

@media (max-width: 768px) {
    .days-grid {
        grid-template-columns: 1fr;
    }
    
    .hours-inputs {
        flex-direction: column;
    }
}




.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0;
}


.payment-methods-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
}

.payment-methods-chart {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
}

/* Egen klass — hette tidigare .payment-method och krockade då med badgen
   .payment-method på betalningssidan (ärvde centrering och padding därifrån,
   så namn och belopp klistrades ihop) */
.payment-method-row {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.method-info {
    display: flex;
    justify-content: space-between;
    font-weight: 500;
}

.method-name {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.method-bar-container {
    width: 100%;
    height: 12px;
    background-color: #e9ecef;
    border-radius: 6px;
    overflow: hidden;
}

.method-bar {
    height: 100%;
    background-color: #4e73df;
    border-radius: 6px;
    transition: width 0.5s ease;
}

.method-percent {
    font-size: 0.8rem;
    color: #6c757d;
    text-align: right;
}


.top-products-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    grid-column: span 2;
}

.top-products-card .table {
    margin-top: 1rem;
}


.weekly-sales-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    grid-column: span 2;
}

.weekly-chart {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    height: 200px;
    margin-top: 1rem;
    padding-bottom: 2rem;
}

.day-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 12%;
}

.day-bar-container {
    width: 100%;
    height: 160px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.day-bar {
    width: 80%;
    background-color: #27ae60;
    border-radius: 4px 4px 0 0;
    transition: height 0.5s ease;
    min-height: 2px;
}

.day-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 0.5rem;
    width: 100%;
}

.day-name {
    font-weight: 600;
    color: #5a5c69;
}

.day-amount {
    font-size: 0.8rem;
    color: #6c757d;
}

/* Responsiva justeringar */
@media (max-width: 1200px) {
    .top-products-card, .weekly-sales-card {
        grid-column: span 1;
    }
}

@media (max-width: 768px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .weekly-chart {
        height: 160px;
    }
    
    .day-bar-container {
        height: 120px;
    }
    
    .day-name {
        font-size: 0.8rem;
    }
    
    .day-amount {
        font-size: 0.7rem;
    }
}


.bg-primary {
    background-color: #27ae60 !important;
}

.bg-secondary {
    background-color: #3498db !important;
}

.bg-success {
    background-color: #27ae60 !important;
}

.bg-warning {
    background-color: #f39c12 !important;
}


.payment-method-row .method-bar {
    background-color: #27ae60;
}



/* Betalningssida styling - Uppdaterad för att matcha huvudsidans design */
.payment-step {
    animation: slideFromLeft 0.5s ease-out forwards;
    opacity: 0;
    transform: translateX(-30px);
}

.payment-step[data-step="1"] { animation-delay: 0.3s; }
.payment-step[data-step="2"] { animation-delay: 0.6s; }
.payment-step[data-step="3"] { animation-delay: 0.9s; }

.payment-instructions-content {
    background: #f8f9fa;
    color: #333;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin: 20px 0;
    border: 2px solid #27ae60;
    width: 100%;
    box-sizing: border-box;
    min-height: 120px;
}

.payment-instructions-content h2 {
    color: #333 !important;
    margin: 0 0 20px 0 !important;
    font-size: 24px !important;
    border-bottom: 2px solid #27ae60 !important;
    padding-bottom: 15px !important;
    text-align: center !important;
}

.payment-instructions-content p {
    margin: 15px 0 !important;
    font-size: 18px !important;
    line-height: 1.6 !important;
    font-weight: 600 !important;
    color: #333 !important;
    text-align: center;
}

/* Responsiva titlar */
.step-title-mobile {
    display: none;
}

.step-title-full {
    display: inline;
}



.next-actions {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.next-actions .checkout-btn {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    border: none;
    color: white;
    padding: 20px 40px;
    font-size: 18px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 6px 20px rgba(231, 76, 60, 0.3);
}

.next-actions .checkout-btn:hover {
    background: linear-gradient(135deg, #c0392b, #a93226);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(231, 76, 60, 0.4);
}

.next-actions .checkout-icon {
    font-size: 20px;
}

/* Responsiv design för betalningssida */
@media (max-width: 768px) {


    /* Visa kort titel på mobil */
    .step-title-full {
        display: none;
    }
    
    .step-title-mobile {
        display: inline;
    }

    .payment-instructions-content {
        padding: 20px;
        margin: 15px 0;
        border-width: 2px;
        width: calc(100% - 30px);
        margin-left: 15px;
        margin-right: 15px;
        min-height: 100px;
    }

    .payment-instructions-content h2 {
        font-size: 20px !important;
        margin-bottom: 15px !important;
    }

    .payment-instructions-content p {
        font-size: 16px !important;
        margin: 12px 0 !important;
        font-weight: 600 !important;
        line-height: 1.5 !important;
    }

    .next-actions .checkout-btn {
        width: 100%;
        max-width: 300px;
        padding: 18px 30px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .payment-instructions-content {
        padding: 15px;
        margin: 10px 0;
        width: calc(100% - 20px);
        margin-left: 10px;
        margin-right: 10px;
    }

    .payment-instructions-content h2 {
        font-size: 18px !important;
    }

    .payment-instructions-content p {
        font-size: 15px !important;
        font-weight: 600 !important;
        line-height: 1.4 !important;
    }

    .next-actions .checkout-btn {
        padding: 15px 25px;
        font-size: 15px;
    }
}


/* ============================================================
   Kajsas Gröna designspråk — harmonisering av admin (2026)
   Varm cremevit yta, grön/jordnära palett, inga Bootstrap-grå
   ============================================================ */

/* Inloggningssidan */
.login-body {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background-color: #fffdf8;
    padding: 20px;
}

.login-card {
    width: 100%;
    max-width: 420px;
    background: #fff;
    border: 1px solid #e0efe0;
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(46, 125, 67, 0.10);
    padding: 40px 35px;
    text-align: center;
}

.login-card h1 {
    font-size: 34px;
    margin: 10px 0 25px;
}

.login-card form {
    text-align: left;
}

.login-card label {
    font-weight: 600;
    color: #4a5a4e;
    margin-bottom: 6px;
}

.login-logo {
    height: 90px;
    width: auto;
}

/* Admin: varm yta och samma typografi som kundsidan */
.admin-body {
    background-color: #fffdf8;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    color: #2f3b33;
}

.admin-content {
    background-color: #fffdf8;
}

.content-header {
    background-color: #fffdf8;
    border-bottom: 1px solid #e0efe0;
    box-shadow: none;
}

.page-title {
    color: #1f8e4e;
}

.date-display {
    background-color: #f3f8f1;
    color: #5f7263;
    border: 1px solid #dcebdc;
}

/* Kort och ytor: cremevitt med gröna ramar i stället för Bootstrap-grått */
.stats-card,
.quick-actions,
.recent-transactions,
.opening-status,
.summary-card,
.status-card,
.transactions-table-card,
.date-selector-card,
.product-form-card,
.products-list-card,
.settings-card,
.payment-methods-card,
.top-products-card,
.weekly-sales-card {
    background-color: #fff;
    border: 1px solid #e0efe0;
    border-radius: 14px;
    box-shadow: 0 6px 16px rgba(46, 125, 67, 0.07);
}

.card-header {
    background-color: #f3f8f1;
    border-bottom: 1px solid #e0efe0;
}

.card-header h3,
.quick-actions h3,
.opening-status h3,
.status-info h3 {
    color: #3a4a3e;
}

.table th,
.payments-list th {
    background-color: #f3f8f1;
    color: #5c6b5e;
    border-bottom: 1px solid #e0efe0;
}

.table td {
    border-bottom: 1px solid #e6efe6;
    color: #2f3b33;
}

/* Statistikikoner: grön/jordnära skala i stället för blå/lila/orange */
.food-sales .stats-icon,
.food-icon {
    background-color: rgba(46, 158, 87, 0.14);
    color: #2e9e57;
}

.other-sales .stats-icon,
.other-icon {
    background-color: rgba(124, 154, 61, 0.16);
    color: #7c9a3d;
}

.transactions .stats-icon {
    background-color: rgba(192, 138, 45, 0.15);
    color: #c08a2d;
}

.stats-content h3,
.summary-content h3 {
    color: #6b7a6e;
}

.stats-value,
.summary-amount {
    color: #2f3b33;
}

/* Snabblänkar */
.action-btn {
    background-color: #f3f8f1;
    border: 1px solid #dcebdc;
    color: #2f3b33;
}

.action-btn:hover {
    background-color: #e7f3e7;
    color: #1f8e4e;
}

/* Badges och staplar */
.category-badge.other {
    background-color: #f3ead0;
    color: #8a6d1f;
}

.payment-method.other {
    background-color: rgba(124, 154, 61, 0.16);
    color: #7c9a3d;
}

.method-bar {
    background-color: #27ae60;
}

.product-quantity {
    background-color: #eef3e7;
    color: #4a5a4e;
}

/* Produkt- och dagkort */
.product-card {
    background-color: #fffdf8;
    border: 1px solid #e0efe0;
}

.day-card {
    background-color: #fffdf8;
    border-color: #dcebdc;
}

.day-header {
    background-color: #fff;
    border-bottom: 1px solid #e0efe0;
}

.quantity-input {
    background-color: #f3f8f1;
    border: 1px solid #dcebdc;
}

.quantity-field:focus:not(:disabled) {
    border-color: #27ae60 !important;
    box-shadow: 0 0 0 0.2rem rgba(39, 174, 96, 0.2);
}

/* Bootstrap-knappar i admin: grönt i stället för blått */
.btn-primary,
.btn-success {
    background: linear-gradient(135deg, #2fbe6e, #1f9d55) !important;
    border-color: #1f9d55 !important;
    color: #fff !important;
}

.btn-primary:hover,
.btn-success:hover {
    background: linear-gradient(135deg, #27ae60, #198246) !important;
    border-color: #198246 !important;
}

.btn-login {
    background: linear-gradient(135deg, #2fbe6e, #1f9d55) !important;
    border-radius: 10px;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(39, 174, 96, 0.25);
}

/* Tomlägen */
.no-data-message {
    color: #8a9a8d;
}

.no-data-message i {
    color: #b9c6ba;
}

.no-items {
    border: 1px dashed #cfe3cf;
}

/* ============================================================
   Designspråk del 2 — fynd från designanalysen
   ============================================================ */

/* Kundflödet: betalningssidan */
.payment-instructions-content {
    background: #fffdf8 !important;
    color: #2f3b33 !important;
    box-shadow: 0 6px 16px rgba(46, 125, 67, 0.08);
}

.payment-instructions-content h2 {
    color: #1f8e4e !important;
}

.payment-instructions-content p {
    color: #2f3b33 !important;
}

.next-actions .checkout-btn {
    background: linear-gradient(135deg, #2fbe6e, #1f9d55);
    box-shadow: 0 4px 12px rgba(39, 174, 96, 0.25);
}

.next-actions .checkout-btn:hover {
    background: linear-gradient(135deg, #27ae60, #1c8c4c);
    box-shadow: 0 6px 16px rgba(39, 174, 96, 0.35);
}

/* Kundflödet: kvarvarande grå/blå detaljer */
.scan-btn,
.checkout-btn {
    background: linear-gradient(135deg, #2fbe6e, #1f9d55);
    border-radius: 12px;
}

.product-quantity {
    background-color: #eef7ee;
    color: #1f8e4e;
}

.product-item {
    background-color: #f3f8f1;
}

.welcome-text,
.product-name,
.payment-button span,
.form-label,
.quantity-label {
    color: #2f3b33;
}

.scan-instructions {
    color: #5c6f60;
}

.payment-button:hover {
    box-shadow: 0 5px 15px rgba(46, 125, 67, 0.18);
}

.antal-controls input,
.vikt-input,
.custom-datum {
    border-color: #dcebdc;
}

input[type="text"],
input[type="password"],
select {
    border-color: #dcebdc;
}

/* Admin: rubriker och text */
.page-title {
    font-family: 'Fredericka the Great', 'Segoe UI', sans-serif;
    font-weight: normal;
    font-size: 28px;
}

.card-header h3,
.summary-content h3 {
    color: #1f8e4e;
}

.table th,
.payments-list th,
.transaction-table th {
    color: #1f8e4e;
}

.container > h2 {
    color: #1f8e4e;
    font-size: 26px;
}

.product-price {
    color: #1f8e4e;
}

.date-field label {
    color: #6b7a6f;
}

.transaction-total,
.status-info h3 {
    color: #2f3b33;
}

.day-name {
    color: #2f3b33;
}

.day-amount,
.method-percent {
    color: #6b7a6f;
}

/* Admin: tabeller utan Bootstrap-vitt/grått */
.transaction-table {
    --bs-table-bg: transparent;
}

.transaction-table th {
    background-color: #f3f8f1;
    border-bottom-color: #dcebdc;
}

.transaction-table td {
    border-bottom-color: #e6efe6;
}

.method-bar-container {
    background-color: #e8f3e8;
}

/* Admin: badges */
.payment-method.swish {
    background-color: #eef7ee;
    color: #1f8e4e;
}

.payment-method.other {
    background-color: rgba(109, 178, 123, 0.15);
    color: #4e8f5f;
}

.category-badge.food {
    background-color: rgba(39, 174, 96, 0.15);
    color: #1f8e4e;
}

.category-badge.other {
    background-color: rgba(109, 178, 123, 0.15);
    color: #4e8f5f;
    border: 1px solid #dcebdc;
}

.status-badge.pending {
    background-color: rgba(238, 187, 77, 0.2);
    color: #a17a1c;
}

.bg-secondary {
    background-color: #6db27b !important;
}

.bg-warning {
    background-color: #eebb4d !important;
    color: #2f3b33 !important;
}

/* Bootstrap-knappar: semantiska färger tillbaka + rätt palett */
.btn-danger {
    background: #e74c3c !important;
    border-color: #e74c3c !important;
    color: #fff !important;
}

.btn-danger:hover {
    background: #c0392b !important;
    border-color: #c0392b !important;
}

.btn-warning {
    background: #eebb4d !important;
    border-color: #eebb4d !important;
    color: #2f3b33 !important;
}

.btn-warning:hover {
    background: #e3a93a !important;
    border-color: #e3a93a !important;
    color: #2f3b33 !important;
}

.btn-secondary {
    background: #fffdf8 !important;
    border: 1px solid #dcebdc !important;
    color: #2f3b33 !important;
    box-shadow: none !important;
}

.btn-secondary:hover {
    background: #f3f8f1 !important;
    color: #2f3b33 !important;
}

.btn-outline-primary {
    background: #fffdf8 !important;
    border: 2px solid #27ae60 !important;
    color: #1f8e4e !important;
    box-shadow: none !important;
}

.btn-outline-primary:hover {
    background: #27ae60 !important;
    color: #fff !important;
}

.btn-outline-success {
    background: #fffdf8 !important;
    border: 2px solid #27ae60 !important;
    color: #1f8e4e !important;
    box-shadow: none !important;
}

.btn-outline-success:hover {
    background: #27ae60 !important;
    color: #fff !important;
}

/* Formulärfält: grön fokus i stället för Bootstrap-blå */
.form-control,
.form-select {
    border-color: #dcebdc;
    background-color: #fff;
}

.form-control:focus,
.form-select:focus {
    border-color: #27ae60;
    box-shadow: 0 0 0 0.2rem rgba(39, 174, 96, 0.15);
    background-color: #fff;
}

.form-check-input:checked {
    background-color: #27ae60;
    border-color: #27ae60;
}

.form-check-input:focus {
    border-color: #27ae60;
    box-shadow: 0 0 0 0.25rem rgba(39, 174, 96, 0.15);
}

/* Modaler */
.modal-content {
    background-color: #fffdf8;
    border: 1px solid #e0efe0;
    border-radius: 14px;
}

.modal-header {
    border-bottom: 1px solid #e0efe0;
    background-color: #f3f8f1;
}

.modal-footer {
    border-top: 1px solid #e0efe0;
}

/* Kort och paneler */
.card {
    border: 1px solid #e0efe0;
    border-radius: 14px;
    box-shadow: 0 6px 16px rgba(46, 125, 67, 0.08);
}

.product-card:hover {
    box-shadow: 0 8px 20px rgba(46, 125, 67, 0.12);
}

.quantity-field {
    border: 1px solid #dcebdc !important;
}

.quantity-field:disabled {
    background-color: #f3f8f1;
}

.method-bar {
    background: linear-gradient(135deg, #2fbe6e, #1f9d55);
}

.menu-toggle {
    color: #1f8e4e;
}

.sidebar-nav .nav-link.logout {
    color: rgba(255, 255, 255, 0.85);
}

/* Alerts */
.alert {
    border-radius: 12px;
}

.alert-danger {
    background: #fdecea;
    border: 1px solid #f5c6c3;
    border-left: 6px solid #e74c3c;
    color: #b03a2e;
}

.alert-success {
    background: #eef7ee;
    border: 1px solid #cfe8cf;
    border-left: 6px solid #27ae60;
    color: #1f7a43;
}

.btn-login:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(39, 174, 96, 0.3), 0 4px 12px rgba(39, 174, 96, 0.25);
}

/* Designspråk del 3 — inställningar och detaljer */
.time-input {
    background-color: #fff;
    border: 1px solid #dcebdc;
    border-radius: 8px;
    color: #2f3b33;
}

.time-input:focus {
    border-color: #27ae60;
    box-shadow: 0 0 0 0.2rem rgba(39, 174, 96, 0.15);
    outline: none;
}

.day-card:hover {
    box-shadow: 0 6px 16px rgba(46, 125, 67, 0.12);
}

.day-card.weekend {
    background-color: #eef7ee;
    border-color: #cfe3cf;
}

.day-card {
    border-radius: 12px;
}

.day-header h4 {
    color: #2f3b33;
}

.time-label {
    color: #5f7263;
}

.header-info {
    color: #6b7a6e;
}

.btn-primary,
.btn-success {
    border-radius: 10px !important;
    box-shadow: 0 4px 12px rgba(39, 174, 96, 0.25);
}

/* Designspråk del 4 — CSS-svepets sista fynd */
.product-item {
    background-color: #f3f8f1;
    border: 1px solid #dcebdc;
    border-radius: 12px;
    box-shadow: 0 6px 16px rgba(46, 125, 67, 0.08);
}

.date-selector input[type="date"],
#sok {
    border-color: #dcebdc;
}

.product-quantity span {
    color: #2f3b33;
}

.menu-toggle {
    background-color: #f3f8f1;
    border: 1px solid #dcebdc;
    border-radius: 8px;
}

.order-summary {
    background-color: #fffdf8;
    border: 1px solid #e0efe0;
    box-shadow: 0 6px 16px rgba(46, 125, 67, 0.08);
}

.stats-comparison,
.stats-percent,
.stats-additional,
.status-display p {
    color: #6b7a6e;
}

.card-title {
    color: #3a4a3e;
}

.pagination button:disabled {
    background-color: #b9c6ba;
}

.total-summary {
    border-top: 2px solid #e0efe0;
}

.payments-list td {
    border-bottom: 1px solid #e6efe6;
}

.bg-secondary {
    background-color: #7c9a3d !important;
}

.btn-login:hover {
    background: linear-gradient(135deg, #35c977, #23a85e) !important;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(39, 174, 96, 0.3);
}

/* Designspråk del 5 — åtgärder från visuella granskningen */

/* Dashboard-rutnätet: fast 4-kolumnsgrid så inget kort klipps utanför sidan
   (auto-fit gav färre kolumner än grid-column:4 kräver → överspill) */
.dashboard-grid {
    grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 992px) {
    .dashboard-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}

/* Rubriker: mörkgrön för bättre kontrast (2,9:1 → 5,3:1 mot vitt) */
.step h2,
.cart-grid h2,
.category-section h3 {
    color: #1f8e4e;
}

.payment-instructions {
    color: #1f8e4e;
}

/* Ythierarki på produktsidan: varm yta, vita kort ovanpå */
.product-form-card,
.products-list-card {
    background-color: #fffdf8;
}

.product-card {
    background-color: #fff;
}

/* Sidebar: gradient relativt fönstret så den inte tunnas ut på långa sidor,
   och mörkare aktiv-markering för läsbar vit text */
.admin-sidebar {
    background-attachment: fixed;
}

.sidebar-nav .nav-link.active {
    background-color: rgba(0, 0, 0, 0.22);
}

/* Kryssrutor och korgens skugga */
input[type="checkbox"] {
    accent-color: #27ae60;
}

.cart-container::after {
    background: rgba(46, 125, 67, 0.15);
}

/* Tomlägen och datumchip: lite mer tyngd */
.no-data-message {
    color: #5c6b5e;
}

.date-display {
    color: #1f8e4e;
}

/* Sidebar: gradient över första fönsterhöjden, mörkgrönt därunder
   (robust på godtyckligt långa sidor, ingen fixed-attachment-artefakt) */
.admin-sidebar {
    background-attachment: scroll;
    background-color: #1f8e4e;
    background-image: linear-gradient(180deg, #27ae60, #1f8e4e);
    background-size: 100% 100vh;
    background-repeat: no-repeat;
}

/* Balansera dashboardens rader — men bara där griden faktiskt har flera
   kolumner. Utan media query gällde span 3 även på mobilens enkolumnsgrid
   och tvingade fram tre hoptryckta kolumner med sidledsscroll. */
@media (min-width: 992.02px) {
    .top-products-card {
        grid-column: span 3;
    }

    .weekly-sales-card,
    .hourly-sales-card {
        grid-column: span 2;
    }

    .recent-transactions {
        grid-column: 1 / -1;
    }
}

/* 0.02px-gränserna täpper hålet vid bråkdelsbredder (webbläsarzoom),
   där varken max-width: 992px eller min-width: 993px annars gäller */
@media (min-width: 576.02px) and (max-width: 992px) {
    /* Hel rad i tvåkolumnsgriden så tabeller och diagram får plats */
    .top-products-card,
    .weekly-sales-card,
    .hourly-sales-card {
        grid-column: span 2;
    }
}

/* Kryssrad för viktprissatta produkter. Egen klass på etiketten eftersom
   .form-check-label är reserverad för öppettidernas växlar (blir en pill). */
.weight-check {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 14px 0 4px;
}

.weight-check .form-check-input {
    width: 20px;
    height: 20px;
    margin: 0;
    flex-shrink: 0;
    cursor: pointer;
}

.weight-check .weight-check-label {
    margin: 0;
    cursor: pointer;
}

/* Sökruta på Hantera Produkter */
.product-search {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}

.product-search input {
    max-width: 420px;
}

.product-search-count {
    color: #5c6b5e;
    font-size: 14px;
    white-space: nowrap;
}

/* === Kundkorgen: mer som en riktig flätad korg (2026-07-07) === */

/* Flätad textur (diagonalt kryssmönster) istället för rutat papper,
   på varm cremevit yta som resten av sajten */
.cart-grid {
    background-color: #fffdf8;
    background-image:
        repeating-linear-gradient(45deg, rgba(39, 174, 96, 0.08) 0 6px, transparent 6px 14px),
        repeating-linear-gradient(-45deg, rgba(39, 174, 96, 0.08) 0 6px, transparent 6px 14px);
    background-size: auto;
    border-radius: 10px 10px 18px 18px;
    /* Skugga innanför övre kanten ger djup, som att man tittar ner i korgen */
    box-shadow: inset 0 10px 14px -10px rgba(31, 110, 60, 0.45);
}

/* Rejält handtag med rundad topp och liten glans */
.cart-handle {
    width: 190px;
    height: 58px;
    top: -36px;
    border: 10px solid #27ae60;
    border-bottom: none;
    border-radius: 120px 120px 0 0;
    box-shadow: inset 0 3px 0 rgba(255, 255, 255, 0.28);
}

/* Betala-raden som korgens stadiga botten */
.total-content {
    background: linear-gradient(180deg, #27ae60, #1f8e4e);
    border-radius: 8px 8px 12px 12px;
}

@media (max-width: 600px) {
    .cart-handle {
        width: 150px;
        height: 48px;
        top: -30px;
        border-width: 8px;
    }
}

/* === Swish-betalning: väntoverlay medan kunden godkänner i appen === */
.swish-vantar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}

.swish-vantar-content {
    background: #fffdf8;
    border-radius: 14px;
    padding: 30px 24px;
    max-width: 340px;
    text-align: center;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.swish-vantar-content h3 {
    color: #1f8e4e;
    margin: 0 0 8px 0;
}

.swish-vantar-content p {
    color: #5c6b5e;
    margin: 0 0 18px 0;
}

.swish-spinner {
    width: 44px;
    height: 44px;
    margin: 0 auto 16px;
    border: 5px solid #e8f5e9;
    border-top-color: #27ae60;
    border-radius: 50%;
    animation: swishsnurr 1s linear infinite;
}

@keyframes swishsnurr {
    to { transform: rotate(360deg); }
}

/* Grön bock när Swish-betalningen bekräftats */
.swish-klar-bock {
    width: 64px;
    height: 64px;
    margin: 0 auto 14px;
    border-radius: 50%;
    background: #27ae60;
    animation: swishbock 0.35s ease-out;
}

/* Bocken ritas i CSS så den syns på alla enheter oavsett typsnitt */
.swish-klar-bock::after {
    content: '';
    display: block;
    width: 14px;
    height: 28px;
    border: solid white;
    border-width: 0 6px 6px 0;
    transform: rotate(45deg);
    margin: 12px auto 0;
}

@keyframes swishbock {
    from { transform: scale(0.3); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* === Skanner: bekräftelse-toast och ficklampsknapp (2026-07-12) === */

/* Toast som bekräftar att en vara lagts i korgen */
.kassa-toast {
    position: fixed;
    left: 50%;
    bottom: 28px;
    transform: translateX(-50%) translateY(20px);
    background: #1f8e4e;
    color: white;
    padding: 12px 20px;
    border-radius: 30px;
    font-size: 15px;
    font-weight: bold;
    box-shadow: 0 6px 20px rgba(31, 110, 60, 0.35);
    display: flex;
    align-items: center;
    gap: 10px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
    z-index: 1100;
    max-width: 90vw;
}

.kassa-toast.visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Liten vit bock i toasten, ritad i CSS så den ser likadan ut överallt */
.kassa-toast-bock {
    width: 8px;
    height: 14px;
    border: solid white;
    border-width: 0 3px 3px 0;
    transform: rotate(45deg);
    flex-shrink: 0;
    margin-top: -3px;
}

/* Ficklampsknapp — ligger ovanpå kameravyn, uppe till höger i videon */
.qr-reader {
    position: relative;
}

.torch-btn {
    position: absolute;
    right: 12px;
    top: 12px;
    background: rgba(0, 0, 0, 0.55);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.7);
    border-radius: 30px;
    padding: 8px 16px;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
    z-index: 5;
    backdrop-filter: blur(2px);
}

.torch-btn.torch-on {
    background: #f4c430;
    color: #4a3800;
    border-color: #f4c430;
}

/* === Fullskärms-skannerläge (2026-07-12) - som butikernas självscanningsappar === */

.skanner-lage {
    position: fixed;
    inset: 0;
    z-index: 900; /* under .antal-dialog (1000) så viktdialogen hamnar ovanpå */
    display: none;
    flex-direction: column;
    background: #1c2420;
}

body.skanner-oppen .skanner-lage {
    display: flex;
}

/* Lås sidscrollen medan skannern är öppen */
body.skanner-oppen {
    overflow: hidden;
}

.skanner-topp {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px 8px;
}

.skanner-rund-knapp {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.45);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.6);
    font-size: 19px;
    cursor: pointer;
    flex-shrink: 0;
}

.skanner-hint {
    color: rgba(255, 255, 255, 0.92);
    font-size: 16px;
    text-align: center;
    margin: 4px 20px 10px;
}

/* Kameravyn: prydlig kvadrat centrerad på den mörka ytan, med rundade hörn.
   Fast bredd (inte flex) så bibliotekets skanningsram hamnar exakt i bilden. */
.skanner-lage .qr-reader {
    align-self: center;
    width: min(92vw, 52vh);
    margin: auto 0;
    border-radius: 14px;
    overflow: hidden;
}

/* Ficklampan flyttar in i toppraden i skannerläget */
.skanner-lage .torch-btn {
    position: static;
}

/* Fast korgrad längst ner - alltid synlig medan man skannar */
.skanner-korgrad {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: #fffdf8;
    padding: 14px 16px calc(14px + env(safe-area-inset-bottom));
    border-radius: 18px 18px 0 0;
    box-shadow: 0 -6px 24px rgba(0, 0, 0, 0.3);
}

.skanner-korginfo {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.skanner-korgantal {
    font-size: 13px;
    color: #5c6b5e;
    white-space: nowrap;
}

.skanner-korgsumma {
    font-size: 22px;
    font-weight: 800;
    color: #1f8e4e;
    white-space: nowrap;
}

.skanner-betala-knapp {
    background: linear-gradient(135deg, #27ae60, #1f8e4e);
    color: white;
    border: none;
    padding: 14px 20px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
}

.skanner-betala-knapp:disabled {
    opacity: 0.45;
    cursor: default;
}

/* Toasten ska synas ovanför korgraden när skannern är öppen */
body.skanner-oppen .kassa-toast {
    bottom: 108px;
    z-index: 950;
}

/* Snabbare sidstart: stegen glider in nästan direkt istället för efter 1-1,5 s */
.step[data-step="1"] { animation: slideFromLeft 0.35s ease-out 0.05s forwards; }
.step[data-step="2"] { animation: slideFromLeft 0.35s ease-out 0.15s forwards; }
.step[data-step="3"] { animation: slideFromLeft 0.35s ease-out 0.25s forwards; }
.step[data-step="4"] { animation: slideFromLeft 0.35s ease-out 0.35s forwards; }

.container h1 {
    animation-duration: 0.4s;
}

.header-logo {
    animation-duration: 0.4s;
    animation-delay: 0s;
}

/* Stängkrysset ritas i CSS så det syns likadant på alla mobiler */
#stangSkannerBtn {
    position: relative;
}

#stangSkannerBtn::before,
#stangSkannerBtn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 18px;
    height: 3px;
    background: white;
    border-radius: 2px;
}

#stangSkannerBtn::before { transform: translate(-50%, -50%) rotate(45deg); }
#stangSkannerBtn::after { transform: translate(-50%, -50%) rotate(-45deg); }

/* I skannerläget måste basregeln "#reader { ... !important }" (rad ~1242)
   övertrumfas - därav !important även här. Kvadraten centreras i mitten
   och korgraden trycks ner till skärmens botten. */
body.skanner-oppen #reader {
    width: min(92vw, 52vh) !important;
    max-width: none !important;
    margin: auto !important;
}

/* === Dashboard-förbättringar 2026-07-16: nya kort, tydligare diagram === */

/* Nya nyckeltalskort: Denna vecka, Denna månad, Obokförda dagar */
.week-sales .stats-icon {
    background-color: rgba(39, 174, 96, 0.15);
    color: #1f8e4e;
}

.month-sales .stats-icon {
    background-color: rgba(124, 154, 61, 0.18);
    color: #7c9a3d;
}

.unreconciled .stats-icon {
    background-color: rgba(39, 174, 96, 0.15);
    color: #27ae60;
}

.unreconciled.has-unreconciled .stats-icon {
    background-color: rgba(230, 126, 34, 0.15);
    color: #e67e22;
}

.unreconciled-links a {
    color: #1f8e4e;
    font-weight: 600;
}

/* Jämförelseraden under nyckeltalen: mörkare grönt och något större text —
   den ljusgröna 13-pixelstexten var svårläst i telefonen */
.stats-comparison, .stats-percent, .stats-additional {
    font-size: 14px;
}

.stats-comparison.positive {
    color: #1f8e4e;
}

/* Diagrammet över senaste 7 dagarna: dagens stapel framhävd, övriga dämpade */
.day-bar {
    background-color: #a9d6bd;
}

.day-bar.today {
    background-color: #1f8e4e;
}

.day-name.today {
    color: #1f8e4e;
}

/* Kortet "När kunderna handlar" (försäljning per timme) — samma kortstil
   som designspråket ger övriga dashboardkort (rad ~3585) */
.hourly-sales-card {
    background-color: #fff;
    border-radius: 14px;
    border: 1px solid #e0efe0;
    box-shadow: 0 6px 16px rgba(46, 125, 67, 0.07);
    padding: 1.5rem;
}

.hourly-chart .day-column {
    width: 7%;
}

.hourly-chart .day-bar {
    background-color: #27ae60;
}

.card-subtitle {
    font-size: 13px;
    font-weight: 400;
    color: #6b7a6f;
}

.chart-hint {
    margin: 0.75rem 0 0;
    font-size: 13px;
    color: #6b7a6f;
}

/* Sifferetiketterna under staplarna fick inte plats på smala skärmar */
@media (max-width: 600px) {
    .day-column {
        width: 13%;
    }

    .day-amount {
        font-size: 0.65rem;
        letter-spacing: -0.02em;
    }

    .hourly-chart .day-column {
        width: 7%;
    }

    .hourly-chart .day-name {
        font-size: 0.65rem;
    }
}

/* Kontant- och Swish-korten på bokföringssidan */
.cash-icon {
    background-color: rgba(124, 154, 61, 0.18);
    color: #7c9a3d;
}

.swish-icon {
    background-color: rgba(39, 174, 96, 0.15);
    color: #1f8e4e;
}

.summary-hint {
    margin: 2px 0 0;
    font-size: 13px;
    color: #6b7a6f;
}

/* Diagrammen ("Senaste 7 dagarna" och "När kunderna handlar"): låt ytan växa
   med innehållet. Den gamla fasta höjden (200px/160px, varav 32px bottenluft)
   var lägre än stapel + etiketter, så kolumnerna spillde ut uppåt och de
   högsta staplarna lade sig över kortrubriken. */
.weekly-chart {
    height: auto;
    padding-bottom: 0;
}

/* ============================================================
   Företagsuppgifter för Swish Handel (2026-07-18)
   Sidfot på kundsidorna, momsrad i kundkorgen och villkorssidan
   ============================================================ */

/* Sidfot med företagsuppgifter (index, betalning, kvitto, villkor) */
.site-footer {
    margin: 36px auto 12px;
    padding: 18px 16px 4px;
    border-top: 1px solid #e0efe0;
    text-align: center;
    color: #6b7a6e;
    font-size: 13px;
    line-height: 1.6;
}

.site-footer p {
    margin: 0 0 6px;
}

.site-footer-namn {
    font-family: 'Fredericka the Great', 'Segoe UI', sans-serif;
    font-size: 17px;
    color: #1f8e4e;
}

.site-footer a {
    color: #1f8e4e;
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* Momsupplysning under "Att betala"-raden i kundkorgen */
.moms-note {
    margin: 6px 2px 0;
    text-align: right;
    font-size: 12px;
    color: #6b7a6e;
}

/* Villkorssidan (/villkor) */
/* Basregeln .step startar på opacity 0 och tonas in av animationer knutna
   till data-step="1"-"4" — villkorssidans kort saknar data-step och behöver
   en egen intoning för att inte förbli osynliga. */
.villkor .step {
    animation: slideFromLeft 0.35s ease-out 0.1s forwards;
}

/* Kassans .step::before ritar en nummerbricka från data-step —
   villkorskorten saknar nummer och ska inte ha någon tom bricka. */
.villkor .step::before {
    content: none;
}

.villkor .step p {
    margin: 0 0 12px;
    color: #2f3b33;
    line-height: 1.65;
}

.villkor .step p:last-child {
    margin-bottom: 0;
}

.villkor .step a {
    color: #1f8e4e;
    text-underline-offset: 2px;
}

.foretagsuppgifter {
    margin: 0 0 12px;
}

.foretagsuppgifter > div {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 2px 14px;
    padding: 7px 0;
    border-bottom: 1px dashed #dcebdc;
}

.foretagsuppgifter dt {
    color: #6b7a6e;
    font-size: 14px;
}

.foretagsuppgifter dd {
    margin: 0;
    color: #2f3b33;
    font-weight: 600;
}

.villkor .step .foretagsuppgifter-hint {
    font-size: 14px;
    color: #6b7a6e;
}

.villkor-tillbaka {
    text-align: center;
    margin: 24px 0 10px;
}

.villkor-tillbaka a {
    display: inline-block;
    padding: 12px 26px;
    border: 2px solid #27ae60;
    border-radius: 10px;
    background: white;
    color: #1f8e4e;
    font-weight: bold;
    text-decoration: none;
}

.villkor-datum {
    text-align: center;
    color: #8a9a8d;
    font-size: 12px;
    margin: 0;
}
