.pizzamanager {
    max-width: 900px;
    margin: 0 auto;
    font-family: -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    color: #2c2c2c;
}

.pm-logo {
    text-align: center;
    margin-bottom: 12px;
}

.pm-logo img {
    max-height: 120px;
    max-width: 100%;
    height: auto;
}

.pizzamanager h1 {
    margin-bottom: 0;
    color: #1f4e78;
}

.pizzamanager .pm-subtitle {
    margin-top: 4px;
    color: #666;
}

.pizzamanager h2 {
    background: #d9e1f2;
    padding: 8px 12px;
    margin: 24px 0 10px;
    font-size: 1.1rem;
    border-left: 4px solid #1f4e78;
}

.pizzamanager h3 {
    margin: 18px 0 8px;
    color: #1f4e78;
}

.pm-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 10px;
}

.pm-table th,
.pm-table td {
    border: 1px solid #ccc;
    padding: 6px 10px;
    text-align: left;
}

.pm-table thead th {
    background: #34495e;
    color: #fff;
}

.pm-num {
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.pm-strong td {
    font-weight: bold;
    border-top: 2px double #333;
}

.pm-qty-input {
    width: 80px;
}

.pm-fixed-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: normal;
    white-space: nowrap;
}

.pm-teig-input {
    width: 80px;
    padding: 4px 6px;
}

.pm-doughrecipe-picker {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 14px;
    padding: 10px 12px;
    background: #f4f6fa;
    border-radius: 6px;
}

.pm-doughrecipe-picker label {
    font-weight: bold;
}

.pm-doughrecipe-select {
    width: auto;
    min-width: 200px;
    padding: 6px 8px;
}

.pm-doughrecipe-picker .pm-hint {
    flex-basis: 100%;
    margin: 4px 0 0;
}

.pm-info-text {
    background: #fff8e6;
    border: 1px solid #f0dca0;
    border-left: 4px solid #e0a800;
    padding: 12px 16px;
    margin-bottom: 20px;
    border-radius: 4px;
    line-height: 1.5;
}

.pm-hint {
    color: #777;
    font-size: 0.85rem;
}

.pm-btn {
    display: inline-block;
    margin-top: 10px;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    background: #eee;
    cursor: pointer;
    font-size: 1rem;
}

.pm-btn-primary {
    background: #1f4e78;
    color: #fff;
}

.pm-ingredients-preview {
    color: #666;
    font-size: 0.85rem;
}

.pm-img-col {
    width: 48px;
}

.pm-thumb {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 4px;
    display: block;
}

@media print {
    .pm-selection,
    .pm-btn,
    #pm-calc-form {
        display: none !important;
    }
}

.pm-collapsible {
    margin-bottom: 18px;
    border: 1px solid #d0d0d0;
    border-radius: 6px;
    overflow: hidden;
    background: #fff;
}

.pm-collapsible > summary {
    background: #d9e1f2;
    padding: 10px 14px;
    font-size: 1.1rem;
    font-weight: bold;
    color: #1f4e78;
    border-left: 4px solid #1f4e78;
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.pm-collapsible > summary::-webkit-details-marker {
    display: none;
}

.pm-collapsible > summary::after {
    content: "\25B8";
    font-size: 1.6em;
    line-height: 1;
    flex-shrink: 0;
    transition: transform 0.15s ease;
}

.pm-collapsible[open] > summary::after {
    transform: rotate(90deg);
}

.pm-collapsible > summary:hover {
    background: #c7d4ea;
}

.pm-collapsible-body {
    padding: 14px 16px 16px;
}

.pm-collapsible-body h3 {
    margin-top: 0;
}

.pm-collapsible-body > *:first-child {
    margin-top: 0;
}

.pm-collapsible-sub {
    margin: 10px 0;
    border-color: #e0e0e0;
}

.pm-collapsible-sub > summary {
    background: #f4f6fa;
    color: #34495e;
    border-left-color: #8ca0c4;
    font-size: 1rem;
    padding: 8px 12px;
}

.pm-collapsible-sub > summary:hover {
    background: #eaeef5;
}

.pm-collapsible-sub .pm-collapsible-body {
    padding: 10px 12px 12px;
}
