/* RESET & BASE STYLES */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* CSS VARIABLES */
:root {
    /* Typography */
    --font-primary: system-ui, Arial, sans-serif;
    --font-base: clamp(0.875rem, 0.8rem + 0.2vw, 1rem);
    --font-h6: clamp(1.05rem, 0.9rem + 0.3vw, 1.2rem);
    --font-h5: clamp(1.26rem, 1.1rem + 0.4vw, 1.44rem);
    --font-h4: clamp(1.512rem, 1.3rem + 0.5vw, 1.728rem);
    --font-h3: clamp(1.814rem, 1.6rem + 0.6vw, 2.074rem);
    --font-h2: clamp(2.178rem, 1.8rem + 0.7vw, 2.488rem);
    --font-h1: clamp(2.614rem, 2rem + 0.9vw, 2.986rem);
    --font-small: clamp(0.729rem, 0.7rem + 0.15vw, 0.833rem);
    --font-xsmall: clamp(0.607rem, 0.55rem + 0.1vw, 0.694rem);
    --fw-regular: 400;
    --fw-semibold: 600;
    --fw-bold: 700;

    /* Colors */
    --bg-overlay-medium: rgb(from #231A12 r g b / 0.4); /* Background overlay */

    --color-fogblue-light: #2899fa;
    --color-fogblue: #003D76;
    --color-fogblue-dark: #011c3d;
    --color-text-light: whitesmoke;
    --color-text-dark: Black;
    --gradient-header: linear-gradient(to top, var(--color-fogblue), 20%, var(--color-fogblue-dark));
    --gradient-footer: linear-gradient(to bottom, var(--color-fogblue), 20%, var(--color-fogblue-dark));

}

/* TYPOGRAPHY */

html {
    font-family: var(--font-primary);
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    font-size: var(--font-base);
    font-weight: var(--fw-regular);
    line-height: 1.5;
    color: var(--color-text-light);
}

h1 {
    font-size: var(--font-h1);
    font-weight: var(--fw-bold);
    line-height: 1.2;
}

h2 {
    font-size: var(--font-h2);
    font-weight: var(--fw-bold);
    line-height: 1.2;
}

h3 {
    font-size: var(--font-h3);
    font-weight: var(--fw-semibold);
    line-height: 1.3;
}

h4 {
    font-size: var(--font-h4);
    font-weight: var(--fw-semibold);
    line-height: 1.3;
}

h5 {
    font-size: var(--font-h5);
    font-weight: var(--fw-semibold);
    line-height: 1.4;
}

h6 {
    font-size: var(--font-h6);
    font-weight: var(--fw-semibold);
    line-height: 1.4;
}

p {
    font-size: var(--font-base);
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

a {
    color: var(--color-text-light);
    text-decoration: none;
    transition: opacity 0.2s ease;
}

a:hover {
    opacity: 0.8;
}

.small {
    font-size: var(--font-small);
}

.xsmall {
    font-size: var(--font-xsmall);
}

/* LAYOUT */

html, body {
    height: 100%;
    min-height: 100vh;
}

body {
    display: flex;
    flex-direction: column;
    background-blend-mode: overlay;
    background: whitesmoke fixed;
    color: var(--color-text-dark);
}

/* HEADER */

header {
    background: var(--gradient-header);

    position: relative;
    top: 0;
    width: 100%;
    height: 6vh;
    min-height: 70px;
    z-index: 1000;

    display: flex;
    justify-content: center;
    color: var(--gradient-header);
}

header a img {
    width: auto;
    height: 100%;
}

main {
    background: transparent;
    padding: clamp(1rem, 4vh, 4rem) 10vw clamp(1rem, 4vh, 4rem);
    flex: 1;
    display: flex;
    justify-content: center;
}

.body-style {
    display: flex;
    flex-direction: column;
    width: 100%;
    flex: 1;
    background: whitesmoke;
    border-radius: 10px;

}

.index-body {
    justify-content: center;
}

.buttons {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}

.buttons a {
    background: var(--color-fogblue);
    color: var(--color-text-light);
    border: none;
    border-radius: 4px;
    text-decoration: none;
    padding: .5rem;
    width: 150px;
    text-align: center;
}

.button {
    background: var(--color-fogblue);
    color: var(--color-text-light);
    border: none;
    border-radius: 4px;
    text-decoration: none;
    padding: .5rem;
    margin-top: .5rem;
    width: 150px;
    text-align: center;
    font: var(--font-small);
}
.button-a {
    background: var(--color-fogblue);
    color: var(--color-text-light);
    border: none;
    border-radius: 4px;
    text-decoration: none;
    padding: .5rem;
    margin-top: .5rem;
    width: 150px;
    text-align: center;
    font: var(--font-small);
}

.button:hover, .button-a:hover {
    opacity: 0.8;
    cursor: pointer;
}



.center-text {
    text-align: center;
}

.align-items-center {
    align-items: center;
}

/*INDEX CSS*/

.index-logo {
    width: 250px;
    height: 250px;
}

/*CARPORT*/

.carport-form {
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 45%;
}

.carport-form label {
    width: 75%;
}

.carport-form select {
    width: 75%;
    appearance: none;
    -webkit-appearance: none;
    padding: .6rem 1.2rem .6rem 1rem;
    border-radius: 5px;
    background: /* pil (inline SVG) */ url("data:image/svg+xml;utf8,\
    <svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'>\
      <path d='M7 10l5 5 5-5' fill='none' stroke='white' stroke-width='2' stroke-linecap='round'/>\
    </svg>") no-repeat right .9rem center / 1rem white;
    color: var(--color-text-dark);
    font: inherit;
    transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
}

.carport-form select:hover {
    border-color: var(--color-fogblue-light);
}

.carport-form select:focus {
    outline: none;
    border-color: var(--color-fogblue-light);
    box-shadow: 0 0 0 .2rem color-mix(in srgb, var(--color-fogblue-dark) 25%, transparent);
}

.shed-fields-align {
    margin: 1rem 0;
    width: 75%;
}

#withShed {

}

.shed-fields {
    display: none;
    flex-direction: column;
    width: 100%;
}

.shed-fields select {
    width: 100%;
    appearance: none;
    -webkit-appearance: none;
    padding: .6rem 2rem .6rem 1rem;
    border: 2px solid rgb(from #231A12 r g b / 0.4);
    border-radius: 5px;
    background: /* pil (inline SVG) */ url("data:image/svg+xml;utf8,\
    <svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'>\
      <path d='M7 10l5 5 5-5' fill='none' stroke='white' stroke-width='2' stroke-linecap='round'/>\
    </svg>") no-repeat right .9rem center / 1rem white;
    color: var(--color-text-dark);
    font: inherit;
    transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
}

.shed-fields select:hover {
    border-color: var(--color-fogblue-light);
}

.shed-fields select:focus {
    outline: none;
    border-color: var(--color-fogblue-light);
    box-shadow: 0 0 0 .2rem color-mix(in srgb, var(--color-fogblue-dark) 25%, transparent);
}

#withShed:checked ~ .shed-fields {
    display: flex;
}

.shed-selects:hover .shed-length-tooltip,
.shed-selects:hover .shed-width-tooltip {
    visibility: visible;
}

.shed-length-tooltip, .shed-width-tooltip {
    visibility: hidden;
    background: var(--color-fogblue-dark);
    color: var(--color-text-light);
    padding: 8px;
    border-radius: 6px;
    position: absolute;
    width: 26%;
    font-size: 16px;
    z-index: 10;
}

.customer-wishes {
    width: 75%;
    height: 80px;
    resize: none;
    border-radius: 5px;
}

/*DRAWING*/
.carport-svg-topview {
    width: 45%;
    max-width: 750px;
    height: auto;
    align-items: center;
    margin-bottom: 1rem;
}

.button-align{
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 1rem;
}

/*CONTACT*/

.contact-form {
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 45%;
}

.contact-form label {
    width: 75%;
}

.contact-form input {
    width: 75%;
    appearance: none;
    -webkit-appearance: none;
    padding: .6rem 1.2rem .6rem 1rem;
    border-radius: 5px;
    background: /* pil (inline SVG) */ url("data:image/svg+xml;utf8,\
    <svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'>\
      <path d='M7 10l5 5 5-5' fill='none' stroke='white' stroke-width='2' stroke-linecap='round'/>\
    </svg>") no-repeat right .9rem center / 1rem white;
    color: var(--color-text-dark);
    font: inherit;
    transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
}

.contact-form input:hover {
    border-color: var(--color-fogblue-light);
}

.contact-form input:focus {
    outline: none;
    border-color: var(--color-fogblue-light);
    box-shadow: 0 0 0 .2rem color-mix(in srgb, var(--color-fogblue-dark) 25%, transparent);
}

/* ORDER DETAILS */

.details-body {
    display: grid;
    grid-template-columns: 35% 1fr;
    grid-template-rows: auto auto auto;
    gap: 1.5rem;
    padding: 1.5rem 2rem;
}

.details-header h1 {
    margin-bottom: 0.5rem;
}

.details-header p {
    color: var(--color-fogblue);
    font-size: var(--font-h5);
    margin-bottom: 0;
}

.details-section {
    padding: 1.5rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.details-section.materials-section {
    grid-column: 2;
    grid-row: 1 / 4;
}

.details-section h2 {
    color: var(--color-fogblue);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--color-fogblue-light);
}

.info-grid {
    display: grid;
    gap: 1rem;
    margin-top: 1rem;
}

.info-item {
    display: flex;
    flex-direction: column;
    padding: 0.5rem;
    border-bottom: 1px solid rgba(0, 61, 118, 0.1);
}

.info-item strong {
    color: var(--color-fogblue-dark);
    font-size: var(--font-small);
}

.info-item span {
    color: var(--color-text-dark);
}

.info-item.full-width {
    grid-column: 1 / -1;
}

/* ORDER DETAILS - Materials Table */
.materials-table {
    overflow-x: auto;
    margin-top: 1rem;
}

.materials-table table {
    width: 100%;
    border-collapse: collapse;
}

.materials-table thead {
    background: var(--color-fogblue);
    color: var(--color-text-light);
}

.materials-table th,
.materials-table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.materials-table th {
    font-weight: var(--fw-semibold);
}

.materials-table tbody tr:hover {
    background: rgba(40, 153, 250, 0.1);
}

.materials-table tfoot {
    background: var(--color-fogblue-dark);
    color: var(--color-text-light);
}

.materials-table tfoot td {
    font-size: var(--font-h6);
    padding: 1rem 0.75rem;
}

.total-row {
    border-top: 2px solid var(--color-fogblue-light);
}

/* ORDER DETAILS - No Materials Section */
.no-materials {
    text-align: center;
    padding: 2rem;
    background: rgba(40, 153, 250, 0.05);
    border-radius: 8px;
    margin-top: 1rem;
}

.no-materials p {
    margin-bottom: 1rem;
    color: var(--color-text-dark);
}

/* Edit Section Styles */
.section-header {
    display: flex;
    justify-content: space-between;
    flex-direction: row;
    align-items: flex-end;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--color-fogblue-light);
}

.section-header h2 {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.section-header-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.edit-button {
    background: var(--color-fogblue);
    color: var(--color-text-light);
    border: none;
    border-radius: 4px;
    padding: 0.4rem 0.8rem;
    font-size: var(--font-small);
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
}

.edit-button-a {
    background: var(--color-fogblue);
    color: var(--color-text-light);
    border: none;
    border-radius: 4px;
    padding: 0.55rem 0.8rem;
    font-size: var(--font-small);
    cursor: pointer;
    text-decoration: none;
    display: inline-block;

}

.edit-button:hover, .edit-button-a:hover {
    opacity: 0.8;
}

.cancel-button {
    background: #6c757d;
}

.regenerate-button {
    background: forestgreen;
}

.inline-form {
    display: inline;
    margin: 0;
    padding: 0;
}

.edit-form {
    margin-top: 1rem;
}

.edit-form input,
.edit-form select,
.edit-form textarea {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: var(--font-base);
}

.edit-form textarea {
    min-height: 80px;
    resize: vertical;
}

.edit-form input:focus,
.edit-form select:focus,
.edit-form textarea:focus {
    outline: none;
    border-color: var(--color-fogblue-light);
    box-shadow: 0 0 0 0.2rem rgba(40, 153, 250, 0.25);
}

.edit-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
    justify-content: flex-end;
}

.save-button {
    background: #28a745;
}

.warning-text {
    color: #856404;
    background: #fff3cd;
    padding: 0.75rem;
    border-radius: 4px;
    margin-top: 1rem;
    font-size: var(--font-small);
}

.info-text {
    color: #0c5460;
    background: #d1ecf1;
    padding: 0.75rem;
    border-radius: 4px;
    margin-top: 1rem;
    font-size: var(--font-small);
}

.price-input {
    width: 100px !important;
    text-align: right;
}


/* Messages */
.message {
    margin: 1.5rem 2rem;
    padding: 1rem;
    border-radius: 8px;
}

.error-message {
    background: rgba(220, 53, 69, 0.1);
    color: #721c24;
    border: 1px solid rgba(220, 53, 69, 0.3);
}

.success-message {
    background: rgba(40, 167, 69, 0.1);
    color: #155724;
    border: 1px solid rgba(40, 167, 69, 0.3);
}

/* ORDERS TABLE */
.orders-table {
    overflow-x: auto;
    margin-top: 1rem;
}

.orders-table table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    table-layout: fixed;
}

.orders-table thead {
    background: var(--color-fogblue);
    color: var(--color-text-light);
}

.orders-table th,
.orders-table td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: none;
}

/* Full-width divider line across the entire row */
.orders-table tbody tr {
    position: relative;
}

.orders-table tbody tr::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    background: #e0e0e0;
    pointer-events: none;
}

/* Fixed column widths for consistent spacing */
.orders-table th:nth-child(1),
.orders-table td:nth-child(1) {
    width: 7%;
}

/* Ordre Id */

.orders-table th:nth-child(2),
.orders-table td:nth-child(2) {
    width: 12%;
}

/* Kunde */

.orders-table th:nth-child(3),
.orders-table td:nth-child(3) {
    width: 17%;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Email */

.orders-table th:nth-child(4),
.orders-table td:nth-child(4) {
    width: 13%;
}

/* Ordre dato */

.orders-table th:nth-child(5),
.orders-table td:nth-child(5) {
    width: 11%;
}

/* Leverings dato */

.orders-table th:nth-child(6),
.orders-table td:nth-child(6) {
    width: 10%;
}

/* Total pris */

.orders-table th:nth-child(7),
.orders-table td:nth-child(7) {
    width: 13%;
}

/* Status */

.orders-table th:nth-child(8),
.orders-table td:nth-child(8) {
    width: 17%;
}

/* Handlinger */

.orders-table th {
    font-weight: var(--fw-semibold);
    white-space: nowrap;
}

.orders-table tbody tr:hover {
    background: rgba(40, 153, 250, 0.08);
}

.orders-table tbody tr:nth-child(even) {
    background: rgba(0, 0, 0, 0.02);
}

.orders-table tbody tr:nth-child(even):hover {
    background: rgba(40, 153, 250, 0.08);
}

.orders-table td {
    vertical-align: middle;
}

.orders-table .status {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: var(--font-small);
    font-weight: var(--fw-semibold);
    background: var(--color-fogblue-light);
    color: var(--color-text-light);
    white-space: nowrap;
}

/* Action Buttons - in a row */
.action-buttons {
    display: flex;
    flex-direction: row;
    gap: 0.5rem;
    align-items: center;
    flex-wrap: nowrap;
}

.action-buttons form {
    display: inline-flex;
    margin: 0;
    padding: 0;
}

.action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0.4rem;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: opacity 0.2s ease, transform 0.1s ease;
    background: var(--color-fogblue);
    text-decoration: none;
}

.action-btn:hover {
    opacity: 0.85;
    background: var(--color-fogblue-light)
}

.action-btn img {
    width: 18px;
    height: 18px;
    filter: brightness(0) invert(1);
}

.view-btn {
    background: var(--color-fogblue);
}

.delete-btn {
    background: var(--color-fogblue);
}

.delete-btn:hover {
    background: #c0392b;
}

.row{
    display: flex;
    flex-direction: row;
    gap: 0.5rem;
}

/* ========================================
   MOBILE RESPONSIVE STYLES
   ======================================== */

/* Tablet and below (768px) */
@media (max-width: 768px) {
    /* Main Layout */
    main {
        padding: clamp(0.5rem, 2vh, 2rem) 5vw clamp(0.5rem, 2vh, 2rem);
    }

    /* Order Details Grid */
    .details-body {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        gap: 1rem;
        padding: 1rem;
    }

    .details-section.materials-section {
        grid-column: 1;
        grid-row: auto;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }

    .details-section {
        margin: 0;
        padding: 1rem;
    }

    /* Orders Table - Hide less critical columns */
    .orders-table th:nth-child(3), /* Email */
    .orders-table td:nth-child(3),
    .orders-table th:nth-child(4), /* Ordre dato */
    .orders-table td:nth-child(4),
    .orders-table th:nth-child(5), /* Leverings dato */
    .orders-table td:nth-child(5),
    .orders-table th:nth-child(6), /* Total pris */
    .orders-table td:nth-child(6) {
        display: none;
    }

    /* Adjust remaining column widths for mobile */
    .orders-table th:nth-child(1),
    .orders-table td:nth-child(1) {
        width: 15%;
    }

    .orders-table th:nth-child(2),
    .orders-table td:nth-child(2) {
        width: 35%;
    }

    .orders-table th:nth-child(7),
    .orders-table td:nth-child(7) {
        width: 20%;
    }

    .orders-table th:nth-child(8),
    .orders-table td:nth-child(8) {
        width: 30%;
    }

    .orders-table th,
    .orders-table td {
        padding: 0.5rem 0.3rem;
        font-size: var(--font-small);
    }

    /* Materials Table */
    .materials-table {
        font-size: var(--font-small);
    }

    .materials-table th,
    .materials-table td {
        padding: 0.5rem 0.4rem;
        font-size: var(--font-small);
    }

    /* Action Buttons */
    .action-buttons {
        gap: 0.3rem;
    }

    .action-btn {
        width: 32px;
        height: 32px;
    }

    .action-btn img {
        width: 16px;
        height: 16px;
    }

    /* Carport Form */
    .carport-form {
        width: 80%;
    }

    .carport-form label {
        width: 90%;
    }

    .carport-form select {
        width: 90%;
    }

    .shed-fields-align {
        width: 90%;
    }

    .customer-wishes {
        width: 90%;
    }

    /* Contact Form */
    .contact-form {
        width: 80%;
    }

    .contact-form label {
        width: 90%;
    }

    .contact-form input {
        width: 90%;
    }

    /* Drawing */
    .carport-svg-topview {
        width: 90%;
    }

    /* Buttons */
    .buttons {
        flex-wrap: wrap;
    }

    .button, .button-a {
        width: 130px;
        font-size: var(--font-small);
    }

    /* Edit Buttons */
    .edit-button, .edit-button-a {
        font-size: var(--font-xsmall);
    }

    /* Section Headers */
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .section-header-actions {
        width: 100%;
        justify-content: flex-start;
    }
}

/* Mobile phones (480px and below) */
@media (max-width: 480px) {
    /* Main Layout */
    main {
        padding: 0.5rem 3vw 0.5rem;
    }



    /* Typography adjustments */
    h1 {
        font-size: var(--font-h3);
    }

    h2 {
        font-size: var(--font-h4);
    }

    /* Header */
    header {
        height: 5vh;
        min-height: 60px;
    }

    /* Body Style */
    .body-style {
        padding: 0.5rem;
    }

    .details-body {
        padding: 0.5rem;
    }

    .details-section {
        padding: 0.75rem;
    }

    /* Orders Table - Card-based layout */
    .orders-table table {
        display: block;
    }

    .orders-table thead {
        display: none;
    }

    .orders-table tbody {
        display: block;
    }

    .orders-table tr {
        display: flex;
        flex-direction: column;
        border: 1px solid #ddd;
        border-radius: 8px;
        margin-bottom: 1rem;
        padding: 0.75rem;
        background: white;
    }

    .orders-table tr::after {
        display: none;
    }

    .orders-table td {
        display: flex;
        justify-content: space-between;
        padding: 0.4rem 0;
        border-bottom: 1px solid #f0f0f0;
        width: 100% !important;
    }

    .orders-table td:last-child {
        border-bottom: none;
    }

    .orders-table td::before {
        content: attr(data-label);
        font-weight: var(--fw-semibold);
        color: var(--color-fogblue-dark);
        margin-right: 1rem;
    }

    /* Show all columns on mobile card layout */
    .orders-table th:nth-child(3),
    .orders-table td:nth-child(3),
    .orders-table th:nth-child(4),
    .orders-table td:nth-child(4),
    .orders-table th:nth-child(5),
    .orders-table td:nth-child(5),
    .orders-table th:nth-child(6),
    .orders-table td:nth-child(6) {
        display: flex;
    }

    .orders-table .action-buttons {
        justify-content: flex-end;
        padding-top: 0.5rem;
    }

    /* Materials Table - Card layout */
    .materials-table table {
        display: block;
    }

    .materials-table thead {
        display: none;
    }

    .materials-table tbody {
        display: block;
    }

    .materials-table tr {
        display: block;
        margin-bottom: 1rem;
        border: 1px solid #ddd;
        border-radius: 6px;
        background: white;
        padding: 0.75rem;
    }

    .materials-table td {
        display: flex;
        justify-content: space-between;
        padding: 0.4rem 0;
        border-bottom: 1px solid #f0f0f0;
        text-align: right;
    }

    .materials-table td:last-child {
        border-bottom: none;
    }

    .materials-table td::before {
        content: attr(data-label);
        float: left;
        font-weight: var(--fw-semibold);
        color: var(--color-fogblue-dark);
        text-align: left;
    }

    .materials-table tfoot {
        display: block;
        margin-top: 1rem;
    }

    .materials-table tfoot tr {
        display: flex;
        justify-content: space-between;
        border: 2px solid var(--color-fogblue);
        padding: 0.75rem;
    }

    .materials-table tfoot td {
        display: inline;
        font-size: var(--font-h6);
        font-weight: var(--fw-bold);
        padding: 0;
        border: none;
    }

    .materials-table tfoot td::before {
        content: none;
    }

    .materials-table tfoot td:first-child {
        text-align: left;
    }

    .materials-table tfoot td:last-child {
        text-align: right;
    }

    .total-row{
        color:var(--color-text-dark);
    }

    /* Action Buttons - Stack vertically */
    .action-buttons {
        flex-direction: row;
        gap: 0.5rem;
        width: 100%;
        justify-content: flex-end;
    }

    .action-btn {
        width: 40px;
        height: 40px;
        justify-content: center;
        flex-shrink: 0;
    }

    .action-btn img {
        width: 18px;
        height: 18px;
    }

    /* Carport Form */
    .carport-form {
        width: 95%;
    }

    .carport-form label,
    .carport-form select {
        width: 100%;
    }

    .shed-fields-align {
        width: 100%;
    }

    .shed-fields-align p {
        font-size: var(--font-small);
    }

    .customer-wishes {
        width: 100%;
    }

    .shed-length-tooltip,
    .shed-width-tooltip {
        width: 80%;
        font-size: var(--font-small);
    }

    /* Contact Form */
    .contact-form {
        width: 95%;
    }

    .contact-form label,
    .contact-form input {
        width: 100%;
    }

    /* Drawing */
    .carport-svg-topview {
        width: 100%;
    }

    .button-align {
        flex-direction: column;
        gap: 0.5rem;
    }

    /* Buttons */
    .buttons {
        flex-direction: column;
        width: 100%;
        align-items: center;
    }

    .buttons a,
    .button,
    .button-a {
        width: 100%;
        max-width: 200px;
    }

    /* Index */
    .index-logo {
        width: 180px;
        height: 180px;
    }

    /* Success Page */
    .success-container {
        padding: 0.5rem;
    }

    .success-header h1 {
        font-size: var(--font-h3);
    }

    .info-box-content {
        padding: 1rem;
    }

    .home-button {
        width: 100%;
        max-width: 250px;
    }

    /* Edit Forms */
    .edit-actions {
        flex-direction: column;
    }

    .edit-actions .button,
    .edit-actions .save-button,
    .edit-actions .cancel-button {
        width: 100%;
    }

    /* Footer */
    footer {
        padding: 1rem 0.5rem;
    }

    footer nav {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    footer img {
        width: 40px;
        height: 40px;
    }
}

/*SUCCES*/
.success-container {
    max-width: 900px;
    width: 100%;
    margin: 0 auto;
    padding: 2rem;
}

.success-header {
    text-align: center;
    margin-bottom: 2rem;
}

.success-header h1 {
    color: var(--color-fogblue);
    margin-bottom: 0.5rem;
}

.success-header .order-number {
    font-size: var(--font-h4);
    color: var(--color-fogblue-dark);
    margin-bottom: 1rem;
}

.success-message {
    background: rgba(40, 167, 69, 0.1);
    border: 2px solid rgba(40, 167, 69, 0.3);
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    margin-bottom: 2rem;
}

.success-message p {
    color: #155724;
    font-size: var(--font-h5);
    margin: 0;
}

.info-box {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.info-box-header {
    background: var(--color-fogblue);
    color: var(--color-text-light);
    padding: 1rem 1.5rem;
}

.info-box-header h2 {
    margin: 0;
    font-size: var(--font-h5);
}

.info-box-content {
    padding: 1.5rem;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.info-item strong {
    color: var(--color-fogblue-dark);
    font-size: var(--font-small);
}

.info-item span {
    color: var(--color-text-dark);
    font-size: var(--font-base);
}

.info-item.full-width {
    grid-column: 1 / -1;
}

.action-section {
    text-align: center;
    margin-top: 2rem;
}

.home-button {
    background: var(--color-fogblue);
    color: var(--color-text-light);
    border: none;
    border-radius: 8px;
    padding: 1rem 2rem;
    font-size: var(--font-h6);
    cursor: pointer;
    transition: background 0.2s ease;
}

.home-button:hover {
    background: var(--color-fogblue-light);
}

@media (max-width: 768px) {
    .success-container {
        padding: 1rem;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }
}

/* Footer adjustments */
footer {
    background: var(--gradient-footer);
    color: var(--color-text-light);
    flex-direction: column;
    text-align: center;
    gap: 1rem;
    padding: 0.5rem 1rem;
}

footer nav {
    display: flex;
    justify-content: center;
    flex-direction: row;
    gap: 1rem;

}

footer img {
    width: 50px;
    height: 50px;
    border-radius: 15px;
}

