* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: system-ui, Arial, sans-serif;
    background: #f0f2f5;
    color: #1a1d23;
    min-height: 100vh;
}

header {
    background: #1a2035;
    color: white;
    padding: 16px 24px;
}

header h1 {
    font-size: 20px;
    font-weight: 600;
    letter-spacing: .3px;
}

.header-home-link {
    color: inherit;
    text-decoration: none;
}

.header-home-link:hover {
    text-decoration: underline;
}

/* Start menu */
.menu {
    max-width: 640px;
    margin: 48px auto;
    padding: 0 24px;
    display: grid;
    gap: 16px;
}

.menu-item {
    display: block;
    background: white;
    border: 1px solid #dbe0e8;
    border-radius: 12px;
    padding: 20px 24px;
    text-decoration: none;
    color: inherit;
    transition: border-color .15s, box-shadow .15s;
}

.menu-item:hover {
    border-color: #2f6fed;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .06);
}

.menu-item-title {
    display: block;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 4px;
}

.menu-item-desc {
    display: block;
    font-size: 14px;
    color: #5a6270;
}

.menu-item-soon {
    cursor: default;
    opacity: .65;
    position: relative;
}

.menu-item-soon:hover {
    border-color: #dbe0e8;
    box-shadow: none;
}

.menu-item-badge {
    display: inline-block;
    margin-top: 10px;
    padding: 2px 8px;
    border-radius: 99px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .4px;
    background: #eef1f6;
    color: #5a6270;
}

/* Flash: newly created client id */
.flash-created {
    max-width: 1300px;
    margin: 16px 32px 0;
    padding: 14px 20px;
    background: #dcfce7;
    color: #166534;
    border: 1px solid #86efac;
    border-radius: 10px;
    font-size: 15px;
    text-align: center;
}

.flash-created strong {
    font-size: 18px;
    letter-spacing: .5px;
}

@media (min-width: 1364px) {
    .flash-created { margin-left: auto; margin-right: auto; }
}

/* Board */
.board {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    padding: 32px;
    max-width: 1300px;
    margin: 0 auto;
    align-items: start;
}

/* Column */
.column {
    background: white;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 18px rgba(0,0,0,.13);
    border: 1px solid #dde1e8;
}

.column-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 44px 16px 18px;
    background: #1a2035;
    position: relative;
    cursor: pointer;
    user-select: none;
    list-style: none;
}

.column-header::-webkit-details-marker { display: none; }

.column-header::after {
    content: "▾";
    position: absolute;
    right: 18px;
    top: 50%;
    color: white;
    opacity: .8;
    transform: translateY(-50%);
    transition: transform .2s;
}

.column:not([open]) .column-header::after {
    transform: translateY(-50%) rotate(-90deg);
}

.column:nth-child(1) .column-header { background: #1d4ed8; }
.column:nth-child(2) .column-header { background: #15803d; }
.column:nth-child(3) .column-header { background: #b45309; }
.column:nth-child(4) .column-header { background: #6d28d9; }

.column-title {
    font-weight: 700;
    font-size: 16px;
    color: white;
    letter-spacing: .3px;
}

.badge {
    background: rgba(255,255,255,.15);
    color: white;
    border-radius: 99px;
    padding: 3px 11px;
    font-size: 13px;
    font-weight: 600;
}

.column-meta {
    font-size: 12px;
    color: #b91c1c;
    font-weight: 500;
    padding: 8px 14px 0;
}

/* Cards */
.cards {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 14px;
    padding-bottom: 4px;
}

.card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0,0,0,.07);
    border-left: 4px solid transparent;
}

.cards-group-label {
    font-size: 11px;
    font-weight: 700;
    color: #666;
    text-transform: uppercase;
    letter-spacing: .5px;
    margin: 2px 2px 0;
}

.cards-group-label.deviating {
    color: #b91c1c;
}

.cards-divider {
    border: none;
    border-top: 1px solid #e8eaed;
    margin: 4px 0;
}

.card.has-allergy {
    border-left-color: #e05252;
}

.card-summary {
    padding: 8px 10px;
    cursor: pointer;
    list-style: none;
}

.card-summary::-webkit-details-marker { display: none; }

.card[open] .card-summary {
    border-bottom: 1px solid #f0f0f0;
}

.card-body {
    padding: 10px;
}

.edit-form {
    background: #f7f8fa;
    border: 1px solid #e8eaed;
    border-radius: 10px;
    padding: 12px 14px;
}

.edit-form textarea {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    color: #1a1d23;
    resize: vertical;
    min-height: 50px;
    transition: border-color .15s, box-shadow .15s;
}

.edit-form textarea:focus,
.add-form textarea:focus {
    outline: none;
    border-color: #2f6fed;
    box-shadow: 0 0 0 3px rgba(47,111,237,.15);
}

.edit-form fieldset {
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 10px 12px 12px;
    margin-top: 10px;
}

.edit-form legend {
    font-size: 11px;
    font-weight: 700;
    color: #666;
    padding: 0 6px;
    text-transform: uppercase;
    letter-spacing: .5px;
}

.card-id {
    font-weight: 600;
    font-size: 13px;
    margin-bottom: 5px;
}

/* Tags */
.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 8px;
}

.tag {
    display: inline-block;
    padding: 2px 7px;
    border-radius: 99px;
    font-size: 11px;
    font-weight: 500;
}

.tag.cost {
    background: #dbeafe;
    color: #1d4ed8;
}

.tag.allergy {
    background: #fee2e2;
    color: #b91c1c;
}

/* Note */
.card-note {
    font-size: 12px;
    color: #666;
    background: #f7f8fa;
    border-radius: 6px;
    padding: 6px 8px;
    margin-bottom: 8px;
    font-style: italic;
}

/* Card actions */
.card-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 7px;
    padding-top: 7px;
    border-top: 1px solid #f0f0f0;
}

.inline-form {
    display: flex;
    align-items: center;
    gap: 4px;
}

.inline-form select {
    font-size: 12px;
    padding: 4px 6px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: white;
    color: #333;
    flex: 1;
    min-width: 0;
}

.btn-move {
    font-size: 12px;
    padding: 4px 10px;
    background: #2f6fed;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    white-space: nowrap;
}

.btn-move:hover { background: #1d5cdb; }

.btn-delete {
    font-size: 12px;
    padding: 4px 10px;
    background: #fee2e2;
    color: #b91c1c;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    margin-left: auto;
    white-space: nowrap;
}

.btn-delete:hover { background: #fecaca; }

/* Add panel */
.add-panel {
    margin: 10px 14px 14px;
    background: #f7f8fa;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #e8eaed;
}

.add-panel > summary {
    padding: 10px 14px;
    font-size: 13px;
    font-weight: 600;
    color: #2f6fed;
    cursor: pointer;
    list-style: none;
    user-select: none;
}

.add-panel > summary::-webkit-details-marker { display: none; }

.add-panel[open] > summary {
    border-bottom: 1px solid #e8eaed;
}

/* Add form */
.add-form {
    padding: 14px;
}

.add-form label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin: 12px 0 4px;
    color: #444;
}

.add-form input[type="text"],
.add-form textarea {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    color: #1a1d23;
}

.add-form fieldset {
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 10px 12px 12px;
    margin-top: 12px;
}

.add-form legend {
    font-size: 11px;
    font-weight: 700;
    color: #666;
    padding: 0 6px;
    text-transform: uppercase;
    letter-spacing: .5px;
}

.checks {
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin-top: 8px;
}

.check-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: normal;
    color: #333;
    cursor: pointer;
}

.check-label input[type="checkbox"] {
    width: 15px;
    height: 15px;
    cursor: pointer;
    accent-color: #2f6fed;
    flex-shrink: 0;
}

.add-form textarea {
    resize: vertical;
    min-height: 60px;
}

.btn-add {
    margin-top: 14px;
    width: 100%;
    padding: 10px;
    background: #2f6fed;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.btn-add:hover { background: #1d5cdb; }

@media (max-width: 900px) {
    .board {
        grid-template-columns: 1fr;
        padding: 14px;
        gap: 14px;
    }

    .flash-created {
        margin: 14px;
    }
}

/* Postit */
.postit-main {
    max-width: 1300px;
    margin: 0 auto;
    padding: 24px 32px 60px;
}

.color-pick {
    display: flex;
    gap: 8px;
    margin-top: 6px;
}

.color-pick input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
}

.color-pick label {
    display: inline-flex;
    cursor: pointer;
}

.color-pick span {
    width: 28px;
    height: 28px;
    border-radius: 7px;
    border: 2px solid transparent;
    display: block;
}

.color-pick input:checked + span { border-color: #2f6fed; }

.swatch-yellow { background: #fdf1a0; }
.swatch-pink   { background: #ffd3dd; }
.swatch-mint   { background: #c9f2d6; }
.swatch-blue   { background: #cfe3ff; }

.postit-main .add-panel { margin-bottom: 28px; }

.edit-form input[type="text"] {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    color: #1a1d23;
    margin-top: 8px;
}

.wall {
    columns: 4 220px;
    column-gap: 22px;
}

@media (max-width: 900px) {
    .postit-main { padding: 20px 16px 50px; }
    .wall { columns: 2 180px; }
}

@media (max-width: 520px) {
    .wall { columns: 1; }
}

.note {
    break-inside: avoid;
    margin: 0 0 22px;
    padding: 18px 16px 16px;
    border-radius: 3px 3px 8px 8px;
    box-shadow: 0 10px 22px rgba(20, 24, 34, .16);
    position: relative;
    font-size: 14.5px;
    line-height: 1.5;
    color: #1a1d23;
    transition: transform .15s ease;
    transform: rotate(var(--tilt, -1.5deg));
}

.note::before {
    content: "";
    position: absolute;
    top: -10px;
    left: 50%;
    width: 54px;
    height: 20px;
    background: rgba(255, 255, 255, .55);
    border: 1px solid rgba(0, 0, 0, .05);
    transform: translateX(-50%) rotate(-2deg);
}

.note:hover { transform: rotate(0deg) translateY(-2px); }

.note:nth-child(3n)   { --tilt: 1.2deg; }
.note:nth-child(3n+1) { --tilt: -1.6deg; }
.note:nth-child(3n+2) { --tilt: 0.4deg; }

.note.color-yellow { background: #fdf1a0; border-bottom: 4px solid #ecdb74; }
.note.color-pink   { background: #ffd3dd; border-bottom: 4px solid #f3a9bb; }
.note.color-mint   { background: #c9f2d6; border-bottom: 4px solid #8fdba7; }
.note.color-blue   { background: #cfe3ff; border-bottom: 4px solid #9dc2f7; }

.note-dismiss-form {
    position: absolute;
    top: 8px;
    right: 8px;
    margin: 0;
}

.note-dismiss {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, .08);
    color: inherit;
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
}

.note-dismiss:hover { background: rgba(0, 0, 0, .16); }

.note-card { margin: 0; }

.note-summary {
    cursor: pointer;
    list-style: none;
}

.note-summary::-webkit-details-marker { display: none; }

.note-edit { margin-top: 10px; }

.note-edit .edit-form {
    background: rgba(255, 255, 255, .55);
}

.note-text {
    white-space: pre-wrap;
    word-break: break-word;
}

.note-footer {
    margin-top: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11.5px;
    opacity: .7;
}

.note-author { font-weight: 600; }

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #5a6270;
    font-size: 14px;
}

/* Matsedel */
.menu-main {
    max-width: 1000px;
    margin: 0 auto;
    padding: 24px 32px 60px;
}

.menu-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
    align-items: center;
}

.menu-tab {
    padding: 9px 16px;
    border-radius: 8px;
    background: white;
    border: 1px solid #dbe0e8;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
}

.menu-tab:hover {
    border-color: #2f6fed;
}

.menu-tab.active {
    background: #2f6fed;
    border-color: #2f6fed;
    color: white;
}

.btn-print {
    margin-left: auto;
    padding: 9px 16px;
    border-radius: 8px;
    background: #1a2035;
    color: white;
    border: none;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.btn-print:hover { background: #2a3350; }

.menu-week {
    display: none;
}

.menu-week.active {
    display: block;
}

.menu-heading {
    text-align: center;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
}

.menu-week-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 16px;
}

.menu-veckonr-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #444;
    margin-bottom: 16px;
}

.menu-veckonr-input {
    width: 80px;
    padding: 6px 8px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
}

.menu-ar-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #444;
    margin-bottom: 16px;
    margin-left: 16px;
}

.menu-ar-input {
    width: 90px;
    padding: 6px 8px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
}

.menu-days-header {
    display: none;
}

.menu-days {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 18px;
}

.menu-day {
    flex: 1 1 220px;
    background: white;
    border: 1px solid #dde1e8;
    border-radius: 10px;
    padding: 12px 14px;
    box-shadow: 0 1px 4px rgba(0,0,0,.07);
}

.menu-day-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.menu-day-name {
    font-weight: 700;
    font-size: 14px;
}

.menu-day-datum {
    width: 64px;
    padding: 4px 6px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 12px;
    text-align: right;
    color: #666;
}

.menu-day label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    color: #666;
    text-transform: uppercase;
    letter-spacing: .5px;
    margin: 8px 0 3px;
}

.menu-day textarea {
    width: 100%;
    padding: 6px 8px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 13px;
    font-family: inherit;
    color: #1a1d23;
    resize: vertical;
    min-height: 40px;
}

.menu-day textarea:focus {
    outline: none;
    border-color: #2f6fed;
    box-shadow: 0 0 0 3px rgba(47,111,237,.15);
}

.menu-print-sheet {
    display: none;
}

@media (max-width: 900px) {
    .menu-main { padding: 20px 16px 50px; }
}

@media print {
    @page {
        size: A4 portrait;
        margin: 14mm 16mm;
    }

    * {
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    body {
        margin: 0;
        min-height: 0;
        background: white;
        color: #1a1d23;
    }

    .no-print { display: none !important; }

    .menu-main {
        max-width: none;
        padding: 0;
        margin: 0;
    }

    .menu-week { display: none !important; }
    .menu-week.active { display: block !important; }

    .menu-heading,
    .menu-week-title,
    .menu-form,
    .menu-days-header {
        display: none !important;
    }

    .menu-print-sheet {
        display: block !important;
    }

    .menu-print-header {
        text-align: center;
        margin-bottom: 10mm;
        padding-bottom: 5mm;
        border-bottom: 2px solid #1a2035;
    }

    .menu-print-title {
        font-size: 22pt;
        font-weight: 700;
        letter-spacing: .3px;
        margin-bottom: 3mm;
    }

    .menu-print-subtitle {
        font-size: 11pt;
        color: #444;
        font-weight: 500;
    }

    .menu-print-table {
        width: 100%;
        border-collapse: collapse;
        table-layout: fixed;
        font-size: 10.5pt;
        line-height: 1.45;
    }

    .menu-print-table thead th {
        text-align: left;
        padding: 2.5mm 3mm;
        font-size: 8.5pt;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: .6px;
        color: #444;
        border-bottom: 2px solid #1a2035;
    }

    .menu-print-table thead th:first-child { width: 22%; }
    .menu-print-table thead th:nth-child(2),
    .menu-print-table thead th:nth-child(3) { width: 39%; }

    .menu-print-table tbody td {
        padding: 3mm;
        vertical-align: top;
        border-bottom: 1px solid #d4d8e0;
        word-wrap: break-word;
    }

    .menu-print-table tbody tr:nth-child(even) td {
        background: #f6f7f9;
    }

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

    .menu-print-day {
        display: block;
        font-weight: 700;
        font-size: 10.5pt;
    }

    .menu-print-date {
        display: block;
        margin-top: 1mm;
        font-size: 9pt;
        color: #555;
        font-weight: 500;
    }
}
