/* Local Fonts */
@font-face {
    font-family: 'Inter';
    src: url('../fonts/Inter-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    src: url('../fonts/Inter-Light.woff2') format('woff2');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

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

/* Reset & Base */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body);
    color: var(--color-text);
    background-color: var(--color-bg-50);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-x: hidden;
    /* Prevent horizontal scroll globally */
    width: 100%;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

/* Typography */
h1,
h2,
h3,
h4,
h5 {
    font-family: var(--font-heading);
    color: var(--color-heading);
    font-weight: 400;
    line-height: 1.2;
}

h1 {
    font-size: clamp(2.5rem, 3vw + 2rem, 6rem);
}

h2 {
    font-size: clamp(2.25rem, 1.5vw + 1.8rem, 3rem);
}

h3 {
    font-size: clamp(1.5rem, 1vw + 1.25rem, 1.875rem);
}

h4 {
    font-size: clamp(1.25rem, 0.5vw + 1.1rem, 1.5rem);
}

.text-meta {
    font-size: clamp(0.8rem, 0.3vw + 0.75rem, 0.925rem);
    color: var(--color-stone-500);
}

/* Layout */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

.container-narrow {
    max-width: 800px;
}

.main-content {
    flex: 1;
    padding: var(--spacing-md) 0;
}

/* Components */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 20px !important;
    border-radius: 25px;
    font-weight: 500;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s linear;
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.7em !important;
    position: relative;
    column-gap: 0.5rem;
}

.btn-primary {
    background-color: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
}

.btn-primary:hover {
    background-color: var(--color-primary-dark);
    border-color: var(--color-primary-dark);
    text-decoration: none;
}

.btn-outline {
    border: 2px solid var(--color-stone-300);
    background: transparent;
    color: var(--color-heading);
}

.btn-outline:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.btn-danger {
    background-color: #dc2626;
    color: white;
    border-color: #dc2626;
}

.btn-danger:hover {
    background-color: #b91c1c;
    border-color: #b91c1c;
}

.btn-danger-outline {
    border: 1px solid #fee2e2;
    background: transparent;
    color: #dc2626;
}

.btn-danger-outline:hover {
    background-color: #dc2626;
    border-color: #dc2626;
    color: white;
}

.btn-sm {
    padding: 4px 12px !important;
    font-size: 0.85rem !important;
    line-height: normal !important;
    min-height: auto !important;
}

.btn-circle {
    width: 48px !important;
    height: 48px !important;
    border-radius: 50% !important;
    padding: 0 !important;
    display: inline-flex !important;
    justify-content: center !important;
    align-items: center !important;
    min-height: auto !important;
}

/* Custom Tooltip */
.tooltip-btn {
    position: relative;
}

.tooltip-btn::before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 110%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #1c1917;
    color: #fff;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all 0.2s ease;
    margin-bottom: 5px;
    z-index: 1000;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.tooltip-btn:hover::before {
    opacity: 1;
    bottom: 120%;
}

.tooltip-btn::after {
    content: '';
    position: absolute;
    bottom: 110%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: #1c1917;
    opacity: 0;
    pointer-events: none;
    transition: all 0.2s ease;
    margin-bottom: -7px;
    z-index: 999;
}

.tooltip-btn:hover::after {
    opacity: 1;
    bottom: 120%;
}

.card {
    background: white;
    border: 1px solid var(--color-stone-300);
    /* Flat clean border instead of shadow for clean look */
    border-radius: var(--radius-md);
    padding: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

.badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
    font-size: 0.8em;
    font-weight: 600;
    text-transform: uppercase;
}

.badge-draft {
    background: var(--color-stone-300);
    color: var(--color-heading);
}

.badge-published {
    background: rgba(217, 146, 148, 0.15);
    color: rgb(217, 146, 148);
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 0.75em;
    display: inline-block;
    width: auto;
    margin-bottom: 0.5rem;
    margin-bottom: 0.5rem;
    line-height: normal;
}

.badge-rose-outline {
    border: 1px solid rgb(247, 239, 239);
    color: rgb(217, 146, 148);
    background: rgb(247, 239, 239);
    padding: 4px 12px;
    border-radius: 999px;

    font-family: 'Inter', Helvetica, Arial, Lucida, sans-serif;
    font-weight: 500;
    font-size: 0.8rem;
    /* User had 100%, but 0.8rem fits badge better contextually, user snippet likely computed relative */
    letter-spacing: 1px;
    line-height: normal;
    /* User had 25.9px but that's tall for a small badge */
    text-transform: uppercase;
    box-sizing: border-box;
    word-wrap: break-word;
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

input[type="text"],
input[type="email"],
input[type="password"],
textarea,
select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--color-stone-300);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 1rem;
    background: #fff;
    appearance: none;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 2px var(--color-rose-verylight);
}

/* Tables */
.table {
    width: 100%;
    border-collapse: collapse;
    /* Ensure table fits or scrolls within container, but usually needs a wrapper. */
    display: block;
    /* Fallback for simple tables to allow scroll if needed, 
                       but ideally we use a wrapper. 
                       However, making it block + overflow-x:auto makes THE TABLE scroll, not the page. */
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
    /* Prevent ugly wrapping in weird places, forcing scroll */
}

.table-responsive {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

@media (min-width: 768px) {
    .table {
        display: table;
        /* Reset for desktop */
        white-space: normal;
    }
}

.table th,
.table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--color-stone-300);
    vertical-align: middle;
}

.table th {
    font-weight: 600;
    color: var(--color-heading);
    white-space: nowrap;
}

.table tbody tr:hover {
    background-color: var(--color-bg-50);
}



.container-narrow {
    max-width: 800px;
}

/* Header */
header.site-header {
    color: rgb(87, 83, 78);
    font-family: Inter, sans-serif;
    line-height: 25.6px;
    background-color: rgb(255, 255, 255);
    border-bottom: none;
    box-sizing: border-box;
    margin: 0px;
    padding: 20px 0;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Push nav to the right */
.nav-links {
    margin-left: auto;
    display: flex;
    gap: 1.5rem;
    /* Moderate fixed gap */
    align-items: center;
}

.nav-links a {
    font-weight: 500;
    text-decoration: none;
    color: var(--color-heading);
    transition: color 0.2s ease;
    padding: 0.5rem 0;
}

.nav-links a:hover {
    color: var(--color-primary);
    /* Use primary color */
}

/* Dashboard Link Hover */
.table td a:hover strong {
    color: var(--color-primary);
}

/* Mobile Menu */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    color: var(--color-heading);
}

@media (max-width: 768px) {
    .header-inner {
        justify-content: space-between;
        gap: 0;
    }

    .menu-toggle {
        display: block;
        margin-left: auto;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 100%;
        left: 0;
        background: white;
        border-bottom: 1px solid var(--color-stone-300);
        padding: 1rem;
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
        z-index: 50;
    }

    .nav-links.active {
        display: flex;
    }

    .site-header {
        position: relative;
    }
}

/* Footer */
.site-footer {
    background: var(--color-footer);
    color: var(--color-stone-300);
    padding: var(--spacing-md) 0;
    margin-top: auto;
    text-align: center;
    font-size: 0.9rem;
}

/* Utilities */
.text-center {
    text-align: center;
}

.mt-4 {
    margin-top: 1rem;
}

.mb-4 {
    margin-bottom: 1rem;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-md);
}

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

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--spacing-md);
    align-items: stretch;
}

.product-grid .card {
    display: flex;
    flex-direction: column;
    height: 100%;
    margin-bottom: 0;
}

.product-grid .card>div:last-child {
    margin-top: auto;
}

.allergen-list {
    list-style: none;
    padding: 0;
}

.allergen-item {
    margin-bottom: 0.5rem;
    position: relative;
    font-weight: 500;
}

.search-hero {
    background-color: var(--color-rose-verylight);
    padding: var(--spacing-lg) 0;
    text-align: center;
    border-radius: var(--radius-lg);
    margin-bottom: var(--spacing-lg);
}

.search-box {
    max-width: 500px;
    margin: var(--spacing-md) auto 0;
    position: relative;
    display: flex;
    gap: 0.5rem;
}

/* Print Styles */
@media print {

    .site-header,
    .site-footer,
    .btn,
    .search-hero form,
    .search-hero p,
    .search-hero .btn-outline {
        display: none !important;
    }

    body {
        background: white;
        color: black;
    }

    .main-content {
        padding: 0;
    }

    .container,
    .container-narrow {
        max-width: 100%;
        width: 100%;
        margin: 0;
        padding: 0;
    }

    .card {
        border: none;
        padding: 0;
        margin: 0;
    }

    h1 {
        font-size: 20pt;
        margin-bottom: 10pt;
    }

    .grid-2 {
        display: block;
    }

    .allergen-list {
        margin-bottom: 20pt;
    }
}

.hero-badge {
    color: rgb(217, 146, 148);
    font-family: 'Inter', Helvetica, Arial, Lucida, sans-serif;
    font-size: 100%;
    font-weight: 600;
    letter-spacing: 1px;
    line-height: 25.9px;
    text-transform: uppercase;
    box-sizing: border-box;
    word-wrap: break-word;
    margin: 0px;

    /* Added background styles */
    background: rgba(217, 146, 148, 0.15);
    padding: 6px 12px;
    border-radius: 999px;
    display: inline-block;
    width: fit-content;

    border: 0px;
    outline: 0px;
    text-size-adjust: 100%;
    vertical-align: baseline;
}

/* Admin Settings Refactoring */

.page-header {
    margin-bottom: 2rem;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 1rem;
}

.page-header h2 {
    margin: 0;
}

.page-header p {
    margin: 0.5rem 0 0;
    color: var(--color-stone-500);
}

.alert {
    padding: 1rem;
    border-radius: var(--radius-sm);
    margin-bottom: 1rem;
}

.alert.success {
    background: #dcfce7;
    color: #166534;
}

.alert.error {
    background: #fee2e2;
    color: #991b1b;
}

/* Tabs */
.tabs-nav {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid #e5e7eb;
    /* overflow-x: auto; For mobile tabs scrolling */
    flex-wrap: wrap;
    /* Or wrap? */
}

@media(max-width: 768px) {
    .tabs-nav {
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 0.5rem;
        /* Space for scrollbar */
    }

    .tab-btn {
        white-space: nowrap;
    }
}

.tab-btn {
    padding: 0.5rem 1rem;
    border: none;
    background: none;
    cursor: pointer;
    color: var(--color-stone-500);
    border-bottom: 2px solid transparent;
    font-size: 1rem;
    font-family: inherit;
    transition: color 0.2s, border-bottom-color 0.2s;
}

.tab-btn:hover {
    color: var(--color-heading);
}

.tab-btn.active {
    font-weight: 600;
    color: var(--color-heading);
    border-bottom-color: var(--color-heading);
}

/* Settings Components */
.settings-section {
    margin-bottom: 2rem;
}

.settings-section h3 {
    margin-bottom: 0.5rem;
}

.settings-section p {
    font-size: 0.9rem;
    color: var(--color-stone-500);
    margin-bottom: 1rem;
}

.settings-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.settings-list-item {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.divider {
    border: 0;
    border-top: 1px solid #e5e7eb;
    margin: 2rem 0;
}

.input-readonly {
    background: #f3f4f6;
    color: var(--color-stone-500);
    cursor: not-allowed;
}

.text-small {
    font-size: 0.85rem;
    color: var(--color-stone-500);
}

/* System Tab */
.system-card {
    background: #f8fafc;
    padding: 1.5rem;
    border-radius: var(--radius-md);
    border: 1px solid #e2e8f0;
    margin-bottom: 2rem;
}

.system-info {
    font-size: 0.85rem;
    color: #94a3b8;
}

.backup-card {
    margin-bottom: 1.5rem;
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-md);
    padding: 1.5rem;
}

.backup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.backup-title {
    margin: 0 0 0.5rem 0;
}

.backup-note {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px dashed #e2e8f0;
    font-size: 0.85rem;
    color: #94a3b8;
}

/* About Tab */
.about-card {
    background: white;
    padding: 2rem;
    border-radius: var(--radius-md);
    text-align: center;
    border: 1px solid #e5e7eb;
}

.about-emoji {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.about-name {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.about-email {
    color: rgb(217, 146, 148);
}

/* Settings Toolbar (Moved from tab_settings.php) */
.settings-toolbar {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e2e8f0;
    flex-wrap: wrap;
    gap: 1rem;
}

.settings-nav-label {
    font-weight: 600;
    color: #64748b;
    margin-right: 1rem;
    font-size: 0.95rem;
}

.settings-nav-select {
    padding: 0.5rem 2rem 0.5rem 1rem;
    font-size: 1rem;
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    background-color: #fff;
    max-width: 350px;
    font-weight: 500;
    color: #334155;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.settings-nav-select:hover {
    border-color: #94a3b8;
}

.settings-nav-select:focus {
    border-color: #6366f1;
    outline: none;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.settings-table th {
    font-weight: 800 !important;
    color: #1f2937 !important;
}

/* Location Chips (Moved from tab_settings.php) */
.location-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.location-chip {
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 0.5rem 1rem;
    border-radius: 999px;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s;
}

.location-chip:hover {
    background: #e5e7eb;
    border-color: #d1d5db;
}

.location-delete-btn {
    background: #ef4444;
    color: white;
    border: none;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    cursor: pointer;
    line-height: 1;
}

.location-delete-btn:hover {
    background: #dc2626;
}

.add-location-form {
    display: flex;
    gap: 0.75rem;
    max-width: 500px;
    align-items: center;
    flex-wrap: wrap;
}

.add-location-input {
    flex: 1;
    padding: 0.6rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 1rem;
    outline: none;
    min-width: 200px;
}

.add-location-input:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

/* Pest Tab Styles (Moved from tab_pest.php) */
.pest-details-fields {
    background: #f8fafc;
    padding: 1.25rem;
    border-radius: 14px;
    border: 1px solid #e2e8f0;
    margin-top: 0.75rem;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.02);
}

/* HACCP Table Helpers */
.haccp-table th {
    white-space: nowrap;
}

.status-text-ok {
    color: #059669;
    font-weight: 700;
}

.status-text-warning {
    color: #f59e0b;
    font-weight: 700;
}

.status-text-critical {
    color: #ef4444;
    font-weight: 700;
}

.row-done {
    background-color: #f0fdf4 !important;
    /* light green */
}

.row-warning {
    background-color: #fffbeb !important;
    /* light yellow */
}

.row-critical {
    background-color: #fef2f2 !important;
    /* light red */
}

.w-input-xs {
    width: 80px;
}

.w-input-sm {
    width: 120px;
}

.w-input-md {
    width: 150px;
}

.w-input-lg {
    width: 200px;
}

/* Radio Button Group (Prevention) */
.check-input {
    display: none;
}

.check-btn,
.check-btn-red {
    padding: 4px 10px;
    font-size: 0.85rem;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    color: #64748b;
    background: #fff;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-block;
}

.check-input:checked+.check-btn {
    background-color: #dcfce7;
    border-color: #22c55e;
    color: #15803d;
    font-weight: 600;
}

.check-input:checked+.check-btn-red {
    background-color: #fee2e2;
    border-color: #ef4444;
    color: #b91c1c;
    font-weight: 600;
}

.hidden {
    display: none !important;
}

/* Theme Pink - Orphaned properties? Commenting out to fix syntax
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500; 
    */

.about-footer {
    margin-top: 2rem;
    color: var(--color-stone-500);
    font-size: 0.9rem;
}

.about-version {
    font-size: 0.8rem;
    opacity: 0.7;
}

/* Helper Utilities */
.w-full {
    width: 100%;
}

.flex-1 {
    flex: 1;
}

.gap-2 {
    gap: 0.5rem;
}

.flex {
    display: flex;
}

.items-center {
    align-items: center;
}

.justify-between {
    justify-content: space-between;
}

/* HACCP Deviations Refactoring */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.section-header h3 {
    margin: 0;
}

.empty-state {
    background: #f9fafb;
    padding: 3rem;
    text-align: center;
    color: #6b7280;
    border: 1px dashed #d1d5db;
    border-radius: var(--radius-md);
}

.empty-state-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.haccp-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.deviation-card {
    display: flex;
    align-items: flex-start;
    padding: 1rem;
    background-color: white;
    border-left-width: 4px;
    border-left-style: solid;
    border-radius: var(--radius-md);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    /* Subtle lift */
    transition: transform 0.1s ease;
}

.deviation-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* Status Variations */
.deviation-card.status-open {
    background-color: #fff1f2;
    border-left-color: #e11d48;
}

.deviation-card.status-in_progress {
    background-color: #fffbeb;
    border-left-color: #f59e0b;
}

.deviation-card.status-resolved {
    background-color: #ecfdf5;
    border-left-color: #10b981;
}

.deviation-content {
    flex: 1;
}

.deviation-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.deviation-date {
    color: #6b7280;
    font-size: 0.85rem;
}

.deviation-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-heading);
    margin-bottom: 0.5rem;
}

.deviation-detail {
    font-size: 0.9rem;
    margin-bottom: 4px;
    color: var(--color-text);
}

.deviation-label {
    font-weight: 600;
    color: var(--color-stone-500);
}

.deviation-footer {
    margin-top: 0.75rem;
    font-size: 0.85rem;
    color: #6b7280;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.deviation-actions {
    margin-left: 1rem;
    white-space: nowrap;
}

.deviation-actions form {
    display: flex;
    gap: 0.25rem;
}

.action-btn {
    cursor: pointer;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    background: white;
    font-size: 1.1rem;
}

.action-btn:hover {
    transform: scale(1.1);
}

/* Action Button Colors */
.action-btn.btn-open {
    border-color: #e11d48;
    color: #e11d48;
}

.action-btn.btn-open.active {
    background: #e11d48;
    color: white;
}

.action-btn.btn-progress {
    border-color: #f59e0b;
    color: #f59e0b;
}

.action-btn.btn-progress.active {
    background: #f59e0b;
    color: white;
}

.action-btn.btn-resolved {
    border-color: #10b981;
    color: #10b981;
}

.action-btn.btn-resolved.active {
    background: #10b981;
    color: white;
}

/* Archive Toggle */
.archive-section {
    margin-top: 3rem;
    border-top: 1px solid #e5e7eb;
    padding-top: 2rem;
}

.archive-summary {
    cursor: pointer;
    padding: 0.5rem 0;
    list-style: none;
    /* Hide default marker */
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
}

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

.archive-title {
    font-weight: 600;
    color: #4b5563;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.archive-icon {
    font-size: 1.2rem;
}

.archive-content {
    margin-top: 1.5rem;
    opacity: 0.9;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }

    to {
        opacity: 0.9;
        transform: translateY(0);
    }
}

/* Modal Polish */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(2px);
    /* Modern touch */
}

.modal-content {
    background: white;
    width: 90%;
    max-width: 500px;
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.modal-header {
    margin-top: 0;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 1rem;
    font-size: 1.25rem;
    font-weight: 600;
}

.modal-footer {
    text-align: right;
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
    margin-top: 2rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--color-heading);
}

.form-textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--color-stone-300);
    border-radius: var(--radius-sm);
    font-family: inherit;
    resize: vertical;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px var(--color-rose-verylight);
}

/* --- HACCP & Settings Refactoring --- */
.haccp-group {
    margin-bottom: 2rem;
}

.haccp-header {
    margin-top: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 0.5rem;
    color: #4b5563;
    font-size: 1.25rem;
    font-weight: 500;
}

.haccp-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid #e5e7eb;
}

.haccp-row:last-child {
    border-bottom: none;
}

.haccp-row.done {
    background-color: #f0fdf4;
}

.checklist-checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.checklist-checkbox {
    width: 20px;
    height: 20px;
}

.late-reason-input {
    width: 200px;
    padding: 4px;
    font-size: 0.8rem;
    border: 1px solid #d97706;
    background: #fffbeb;
    border-radius: 4px;
}

/* Modals */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.modal-title {
    margin-top: 0;
    margin-bottom: 1.5rem;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 2rem;
}

/* Location Tags */
.location-tag {
    background: #f3f4f6;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border: 1px solid #e5e7eb;
}

.location-delete-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: #991b1b;
    font-size: 1.1rem;
    padding: 0;
    line-height: 1;
}

.temp-warning {
    color: #dc2626;
    font-weight: bold;
}

/* --- HACCP Module Styles --- */

/* HACCP Layout Grid */
.haccp-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: var(--spacing-md);
    align-items: start;
}

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

/* Status Tables */
.haccp-table th {
    font-size: 0.85rem !important;
    color: var(--color-stone-500) !important;
    font-weight: 600 !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    padding-bottom: 1rem !important;
}

.haccp-table tr {
    transition: background-color 0.2s;
}

.row-done {
    background-color: #ecfdf5 !important;
    /* Emerald-50 */
}

.row-done td {
    opacity: 0.8;
}

.row-warning {
    background-color: #fffbeb !important;
    /* Amber-50 */
}

.row-critical {
    background-color: #fef2f2 !important;
    /* Red-50 */
}

/* Sortable Headers */
.sortable-header {
    cursor: pointer;
    user-select: none;
    transition: color 0.2s;
}

.sortable-header:hover {
    color: var(--color-primary);
}

.sort-icon {
    font-size: 0.8em;
    margin-left: 4px;
    opacity: 0.5;
}

/* HACCP Badges */
.badge-freq {
    font-weight: 500;
    font-size: 0.75rem;
    padding: 2px 8px;
    border-radius: 999px;
    border: 1px solid transparent;
}

.freq-daily {
    background: #fee2e2;
    color: #991b1b;
    border-color: #fecaca;
}

.freq-weekly {
    background: #e0f2fe;
    color: #075985;
    border-color: #bae6fd;
}

.freq-monthly {
    background: #f3f4f6;
    color: #374151;
    border-color: #e5e7eb;
}

/* Deviation Cards */
.deviation-card {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    background: white;
    padding: 1.25rem;
    border-radius: 12px;
    margin-bottom: 1rem;
    border: 1px solid #eee;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
    transition: transform 0.2s, box-shadow 0.2s;
}

.deviation-card:hover {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.deviation-card.status-open {
    border-left: 4px solid #e11d48;
}

.deviation-card.status-warning {
    border-left: 4px solid #f59e0b;
}

.deviation-card.status-resolved {
    border-left: 4px solid #10b981;
}

.deviation-header {
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.deviation-title {
    font-weight: 700;
    font-size: 1.1rem;
    color: #1f2937;
    margin-bottom: 0.4rem;
}

.deviation-description {
    color: #4b5563;
    margin-bottom: 0.8rem;
}

.deviation-detail {
    font-size: 0.9rem;
    color: #6b7280;
    margin-bottom: 0.2rem;
}

.deviation-detail strong {
    color: #374151;
}

.deviation-footer {
    margin-top: 0.8rem;
    font-size: 0.8rem;
    color: #9ca3af;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Quick Actions Box */
.quick-actions-box {
    margin-top: 2rem;
    padding: 1.25rem;
    background: #f9fafb;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
}

.late-reason-input {
    margin-top: 0.8rem;
    width: 100%;
}

/* Location Chips */
.location-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.location-chip {
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 0.5rem 1rem;
    border-radius: 999px;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s;
}

.location-chip:hover {
    background: #e5e7eb;
    border-color: #d1d5db;
}

/* Override existing location-delete-btn for consistency */
.location-delete-btn {
    background: #ef4444 !important;
    color: white !important;
    border: none !important;
    border-radius: 50% !important;
    width: 20px !important;
    height: 20px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 14px !important;
    cursor: pointer !important;
    line-height: 1 !important;
}

.location-delete-btn:hover {
    background: #dc2626 !important;
}

/* Archive Section */
.archive-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: #f3f4f6;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
}

.archive-content {
    padding: 1.5rem 0;
}

/* --- Mobile UI Optimizations --- */

/* Touch-Friendly Inputs */
@media (max-width: 768px) {

    input[type="text"],
    input[type="number"],
    input[type="date"],
    select,
    textarea,
    .btn {
        min-height: 48px;
        font-size: 16px !important;
        /* Prevents auto-zoom on iOS */
    }

    .checklist-checkbox {
        width: 28px !important;
        height: 28px !important;
    }

    .card {
        padding: 1rem !important;
        margin-bottom: 1rem !important;
        border-radius: 8px !important;
    }
}

/* Header Actions Area */
.haccp-header-actions {
    display: flex;
    align-items: center;
}

.haccp-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    gap: 1.5rem;
}

.haccp-actions-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: #f1f5f9;
    padding: 6px 14px;
    border-radius: 14px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

@media (max-width: 768px) {
    .haccp-header-flex {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }

    .haccp-header-actions {
        justify-content: flex-end;
    }
}

.date-input-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.haccp-actions-group .btn-circle {
    width: 38px !important;
    height: 38px !important;
    font-size: 1.1rem !important;
    /* Slightly smaller icon to fit 38px circle */
}

.haccp-date-input {
    height: 38px !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 10px !important;
    padding: 0 0.75rem !important;
    font-size: 0.95rem !important;
    font-weight: 500 !important;
    color: #1e293b !important;
    background: #ffffff !important;
    transition: all 0.2s ease !important;
    outline: none !important;
    cursor: pointer !important;
    font-family: 'Inter', -apple-system, sans-serif !important;
    display: inline-flex !important;
    align-items: center !important;
}

.haccp-date-input:hover {
    border-color: #94a3b8 !important;
}

.haccp-date-input:focus {
    border-color: #64748b !important;
    box-shadow: 0 0 0 3px rgba(100, 116, 139, 0.1) !important;
}

.haccp-date-label {
    font-weight: 600;
    color: #475569;
    font-size: 0.9rem;
    margin-right: 0.25rem;
    display: flex;
    align-items: center;
    height: 38px !important;
}

.haccp-date-form {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    background: transparent !important;
    /* Move background to parent group */
    padding: 0 !important;
}

.date-history-indicator {
    position: absolute;
    right: 34px;
    background: transparent;
    font-size: 1.1rem;
    cursor: help;
    pointer-events: none;
}

/* Tabs Navigation & Buttons */
.tabs-nav {
    display: flex;
    overflow-x: auto;
    overflow-y: visible;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    border-bottom: 2px solid #e2e8f0;
    margin-bottom: 2rem;
    gap: 0.5rem;
    padding-bottom: 1px;
}

.tabs-nav::-webkit-scrollbar {
    display: none;
}

.tab-btn {
    flex: 0 0 auto;
    padding: 0.75rem 1.25rem;
    font-weight: 600;
    color: #64748b;
    border-bottom: 3px solid transparent;
    transition: all 0.2s;
    font-size: 0.95rem;
}

.tab-btn:hover {
    color: #1e293b;
    background-color: #f8fafc;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

.tab-btn.active {
    color: #1e293b;
    border-bottom-color: #1e293b;
}

/* Responsive Tables (Card Pattern) */
@media (max-width: 640px) {
    .haccp-table thead {
        display: none;
        /* Hide header on mobile */
    }

    .haccp-table,
    .haccp-table tbody,
    .haccp-table tr,
    .haccp-table td {
        display: block;
        width: 100%;
    }

    .haccp-table tr {
        margin-bottom: 1rem;
        border: 1px solid #e5e7eb;
        border-radius: 8px;
        background: #fff;
        padding: 0.5rem;
        box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    }

    .haccp-table td {
        text-align: right;
        padding: 0.75rem 0.5rem;
        border-bottom: 1px solid #f3f4f6;
        display: flex;
        justify-content: space-between;
        align-items: center;
        min-height: 44px;
    }

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

    .haccp-table td::before {
        content: attr(data-label);
        font-weight: 700;
        text-transform: uppercase;
        font-size: 0.75rem;
        color: #6b7280;
        margin-right: 1rem;
        text-align: left;
    }

    .haccp-table td .flex {
        justify-content: flex-end;
    }
}

/* Pest Monitoring Styles */
.bg-success-lite {
    background-color: #f0fdf4 !important;
}

.pest-details-fields {
    margin-top: 0.5rem;
}

.pest-details-fields.hidden {
    display: none;
}

.pest-details-fields input,
.pest-details-fields textarea {
    width: 100%;
}

.badge-stone {
    background: #f5f5f4;
    color: #78716c;
    border: 1px solid #e7e5e4;
    padding: 2px 10px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 500;
    display: inline-block;
}
/* Auto-extracted semantic styles */
.extracted-style-1 { max-height: 44px; width: auto; }
.extracted-style-2 { margin-top: 1rem; font-size: 0.9rem; }
.extracted-style-3 { color: var(--color-text); margin-right: 1rem; text-decoration: none; }
.extracted-style-4 { color: var(--color-text); text-decoration: none; font-size: 0.9rem; }
.extracted-style-5 { max-width:400px; margin-top: 4rem; }
.extracted-style-6 { background:#fee2e2; color:#991b1b; padding:0.5rem; border-radius:4px; margin-bottom:1rem; }
.extracted-style-7 { width:100% }
.extracted-style-8 { color:#64748b; }
.extracted-style-9 { padding:0 12px; display:flex; align-items:center; }
.extracted-style-10 { display:none; position:fixed; top:0; left:0; width:100%; height:100%; background:#000; z-index:9999; flex-direction:column; }
.extracted-style-11 { padding:1rem; display:flex; justify-content:space-between; align-items:center; background:rgba(0,0,0,0.5); color:white; }
.extracted-style-12 { background:none; border:none; color:white; font-size:1.5rem; }
.extracted-style-13 { width:100%; flex:1; background:#000; }
.extracted-style-14 { padding:1rem; background:rgba(0,0,0,0.5); text-align:center; }
.extracted-style-15 { color:#ccc; margin:0; font-size:0.9rem; }
.extracted-style-16 { border: 2px dashed #cbd5e1; border-radius: 8px; padding: 2rem; text-align: center; cursor: pointer; background: #f8fafc; transition: all 0.2s ease; position: relative; }
.extracted-style-17 { opacity: 0; position: absolute; top:0; left:0; width:100%; height:100%; cursor: pointer; z-index: 2; }
.extracted-style-18 { font-size: 2rem; margin-bottom: 0.5rem; }
.extracted-style-19 { color: #64748b; margin: 0; font-weight: 500; }
.extracted-style-20 { color: #94a3b8; font-size: 0.85rem; margin-top: 0.25rem; }
.extracted-style-21 { position:relative; display:inline-block; }
.extracted-style-22 { position:absolute; top:-10px; right:-10px; background:red; color:white; border:none; border-radius:50%; width:24px; height:24px; cursor:pointer; font-weight:bold; line-height:24px; padding:0; box-shadow:0 2px 4px rgba(0,0,0,0.2); }
.extracted-style-23 { color: #64748b; font-size: 0.9rem; margin: 0; display:none; }
.extracted-style-24 { padding:1rem; background:var(--color-bg-100); border-radius:4px; }
.extracted-style-25 { display:block; margin-bottom:0.5rem; }
.extracted-style-26 { border:0; border-top:1px solid #eee; margin: 2rem 0; }
.extracted-style-27 { font-weight:700; font-size:1.1rem; color:#1C1917; margin-bottom:0.5rem; display:block; }
.extracted-style-28 { font-weight:400; font-size:0.9rem; color:#78716C; }
.extracted-style-29 { border: 1px solid #ddd; padding: 10px; max-height: 400px; overflow-y: auto; background: #fff; }
.extracted-style-30 { padding: 6px 0; border-bottom: 1px solid #f3f4f6; }
.extracted-style-31 { font-weight: normal; cursor: pointer; display: flex; align-items: center; justify-content: space-between; width: 100%; }
.extracted-style-32 { font-size: 0.95rem; }
.extracted-style-33 { font-weight:600; margin-top:15px; margin-bottom:5px; padding:4px 8px; background:#e7e5e4; border-radius:4px; font-size:0.85rem; color:#444; position:sticky; top:-10px; z-index:1; }
.extracted-style-34 { font-weight: normal; cursor: pointer; display: flex; align-items: flex-start; }
.extracted-style-35 { font-weight:500; display:block; }
.extracted-style-36 { color:#78716C; font-family:monospace; }
.extracted-style-37 { font-size:0.85rem; color:#555; display:block; margin-bottom:2px; }
.extracted-style-38 { display:flex; align-items:stretch; }
.extracted-style-39 { background:#e7e5e4; border:1px solid #d1d5db; border-left:0; border-radius:0 4px 4px 0; padding:0 10px; color:#444; font-size:0.85rem; display:flex; align-items:center; white-space:nowrap; }
.extracted-style-40 { color:#78716C; font-size:0.75rem; }
.extracted-style-41 { margin-top:2rem; padding-top:2rem; border-top:1px solid #eee; display:flex; justify-content:space-between; align-items:center; }
.extracted-style-42 { display:flex; gap:0.5rem; justify-content: flex-end; }
.extracted-style-43 { display:flex; justify-content:space-between; align-items:baseline; }
.extracted-style-44 { margin-top:0; margin-bottom: 1.5rem; }
.extracted-style-45 { display:none; color:var(--color-primary); }
.extracted-style-46 { margin-bottom: 1.5rem; display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:1rem; }
.extracted-style-47 { height: 48px; padding:0 20px; border:2px solid #d6d3d1; border-radius:30px; font-size:1rem; background:white; cursor:pointer; outline:none; box-sizing:border-box; }
.extracted-style-48 { font-size:0.9rem; color:#dc2626; text-decoration:none; margin-left:8px; }
.extracted-style-49 { height: 48px; border-radius:30px; display:inline-flex; align-items:center; }
.extracted-style-50 { height: 48px; width: 48px; border-radius:50%; display:inline-flex; justify-content:center; align-items:center; padding:0; }
.extracted-style-51 { height: 48px; width: 48px; border-radius:50%; display:inline-flex; justify-content:center; align-items:center; padding:0; color:#dc2626; border-color:#dc2626; }
.extracted-style-52 { text-decoration:none; color:inherit; display:flex; align-items:center; gap:6px; white-space:nowrap;  }
.extracted-style-53 { width: 40px; }
.extracted-style-54 { width:auto; }
.extracted-style-55 { width:140px; white-space:nowrap; }
.extracted-style-56 { width:160px; white-space:nowrap; }
.extracted-style-57 { width:80px; text-align:center; white-space:nowrap; }
.extracted-style-58 { width:180px; white-space:nowrap; text-align:right; }
.extracted-style-59 { text-align:center; padding:2rem; color:#78716C; }
.extracted-style-60 { overflow:hidden; text-overflow:ellipsis; }
.extracted-style-61 { white-space:normal; line-height:1.2; }
.extracted-style-62 { white-space:nowrap; text-align:right; position:relative; }
.extracted-style-63 { display:flex; align-items:center; justify-content:flex-end; }
.extracted-style-64 { padding:4px 12px; border-radius:25px; }
.extracted-style-65 { margin-top:2rem; display:flex; justify-content:space-between; align-items:center; border-top:1px solid #eee; padding-top:1rem; }
.extracted-style-66 { display:flex; align-items:center; gap:8px; white-space:nowrap; }
.extracted-style-67 { color:#666; font-size: 0.9rem; }
.extracted-style-68 { display:flex; gap:4px; }
.extracted-style-69 { display:inline-flex; align-items:center; padding:0 10px; color:#555; }
.extracted-style-70 { padding:0.25rem 0.5rem; border:1px solid #d1d5db; border-radius:0.25rem; font-size:0.875rem; }
.extracted-style-71 { display:inline; }
.extracted-style-72 { margin-top:1rem; border:1px solid #e5e7eb; box-shadow:none; }
.extracted-style-73 { width:120px; }
.extracted-style-74 { margin: 1rem 0; display:flex; justify-content:flex-end; }
.extracted-style-75 { border-color:#64748b; color:#475569; }
.extracted-style-76 { margin-top:2rem; padding-top:2rem; border-top:1px dashed #cbd5e1; }
.extracted-style-77 { padding:0.5rem; border:1px solid #cbd5e1; border-radius:0.5rem; }
.extracted-style-78 { color:#1C1917; }
.extracted-style-79 { display:flex; justify-content:space-between; align-items:start; }
.extracted-style-80 { height: 25px; width: auto; }
.extracted-style-81 { font-size: 11pt; margin-bottom: 0.2cm; color: #444; font-style: italic; }
.extracted-style-82 { font-size: 10pt; margin-bottom: 0.2cm; color: #1C1917; }
.extracted-style-83 { margin-bottom: 4px; }
.extracted-style-84 { margin-top:0; }
.extracted-style-85 { font-size: 8pt; color: #444; margin-left:10px; }
.extracted-style-86 { color: #444; font-weight:bold; }
.extracted-style-87 { text-align: left; width: 33%; }
.extracted-style-88 { white-space: nowrap; }
.extracted-style-89 { text-align: right; width: 33%; }
.extracted-style-90 { position:fixed; top:20px; right:20px; z-index:1000; }
.extracted-style-91 { padding:10px 20px; background:#1C1917; color:white; border:none; border-radius:4px; font-weight:bold; cursor:pointer; box-shadow:0 2px 10px rgba(0,0,0,0.2); }
.extracted-style-92 { display:none; color:#b91c1c; background:#fecaca; padding:10px; border-radius:4px; margin-bottom:1rem; }
.extracted-style-93 { width: 100%; max-width: 500px; margin: 0 auto 20px; }
.extracted-style-94 { display:none; margin-top:2rem; padding:1rem; border:1px solid var(--color-stone-300); border-radius:var(--radius-md); }
.extracted-style-95 { max-height:100px; margin-top:1rem; }
.extracted-style-96 { margin-top:0; margin-bottom: 0; }
.extracted-style-97 { background: #dcfce7; color: #166534; padding: 1rem; border-radius: 6px; margin-bottom: 1rem; }
.extracted-style-98 { background: #fee2e2; color: #991b1b; padding: 1rem; border-radius: 6px; margin-bottom: 1rem; }
.extracted-style-99 { color:var(--color-stone-500); font-weight:normal; }
.extracted-style-100 { padding:2rem; color:#6b7280; }
.extracted-style-101 { white-space:nowrap; }
.extracted-style-102 { font-weight:600; }
.extracted-style-103 { background:#f3f4f6; border-radius:50%; width:24px; height:24px; display:flex; align-items:center; justify-content:center; font-size:0.8rem; }
.extracted-style-104 { background:#f3f4f6; color:#374151; border:1px solid #e5e7eb; }
.extracted-style-105 { font-weight:500; }
.extracted-style-106 { font-size:0.85em; }
.extracted-style-107 { font-size:0.75em; margin-left:0.5rem; }
.extracted-style-108 { opacity:0.5; }
.extracted-style-109 { max-width: 150px; font-size: 0.85rem; }
.extracted-style-110 { max-width: 90px; font-size: 0.85rem; }
.extracted-style-111 { padding-left:2rem; padding-right:2rem; }
.extracted-style-112 { height:fit-content; }
.extracted-style-113 { font-size:0.9rem; }
.extracted-style-114 { border-top:none; }
.extracted-style-115 { border-top:none; text-align:right; }
.extracted-style-116 { padding: 0.5rem 0.25rem; }
.extracted-style-117 { font-weight:600; color:#374151; }
.extracted-style-118 { font-size:0.8em; }
.extracted-style-119 { display:block; color:#6b7280; font-size:0.9em; }
.extracted-style-120 { text-align:right; padding: 0.5rem 0.25rem; }
.extracted-style-121 { font-weight:500; color:#059669; }
.extracted-style-122 { font-size:0.75rem; }
.extracted-style-123 { margin-top:0; margin-bottom: 0.5rem; }
.extracted-style-124 { font-size: 0.9rem; margin-top: 0.5rem; padding-top: 0.5rem; border-top: 1px solid rgba(255,255,255,0.2); }
.extracted-style-125 { width: 25%; }
.extracted-style-126 { width: 15%; }
.extracted-style-127 { text-align:right; width: 100px; }
.extracted-style-128 { text-align:right; }
.extracted-style-129 { cursor:pointer; user-select:none; width: 20%; }
.extracted-style-130 { font-size:0.8em; color:#999; }
.extracted-style-131 { width: 35%; }
.extracted-style-132 { cursor:pointer; user-select:none; width: 15%; }
.extracted-style-133 { cursor:pointer; user-select:none; width: 30%; }
.extracted-style-134 { width: 30%; }
.extracted-style-135 { text-align:right; width: 10%; }
.extracted-style-136 { cursor:pointer; user-select:none; width: 65%; }
.extracted-style-137 { width: 20%; }
.extracted-style-138 { text-align:right; width: 15%; }
.extracted-style-139 { padding:1.5rem; background:transparent; border-style:dotted; }
.extracted-style-140 { text-align:right; margin-bottom:1rem; }
.extracted-style-141 { height:80px; }
.extracted-style-142 { height:60px; }
.extracted-style-143 { margin-left:4px; }
.extracted-style-144 { font-size:0.85rem; color:#666; }
.extracted-style-145 { display:flex; gap:0.5rem; margin-left:1rem; }
.extracted-style-146 { display:flex; gap:0.4rem; }
.extracted-style-147 { margin-top:3rem; border-top:1px solid #e5e7eb; padding-top:2rem; }
.extracted-style-148 { margin-top:0; margin-bottom:1rem; font-size:1.1rem; color:#444; }
.extracted-style-149 { width:100%; font-size:0.9rem; }
.extracted-style-150 { text-align:left; background:#f9fafb; }
.extracted-style-151 { padding:8px; }
.extracted-style-152 { border-bottom:1px solid #f3f4f6; }
.extracted-style-153 { margin-bottom:1rem; padding:1rem; background:#f0fdf4; border:1px solid #bbf7d0; }
.extracted-style-154 { float:right; }
.extracted-style-155 { border:1px solid #000; padding:1rem; margin-bottom:2rem; background:#fffbeb; }
.extracted-style-156 { font-weight: 800; color: #1f2937; }
.extracted-style-157 { min-width:200px; }
.extracted-style-158 { width: 25%; font-weight: bold; color: #111; }
.extracted-style-159 { width: 15%; font-weight: bold; color: #111; }
.extracted-style-160 { width: 20%; font-weight: bold; color: #111; }
.extracted-style-161 { width: 30%; font-weight: bold; color: #111; }
.extracted-style-162 { width: 10%; font-weight: bold; color: #111; }
.extracted-style-163 { border: 1px dashed #cbd5e1; }
.extracted-style-164 { max-width: 160px; font-size: 0.9rem; }
.extracted-style-165 { max-width: 100px; font-size: 0.9rem; }
.extracted-style-166 { width: 35%; font-weight: bold; color: #111; }
.extracted-style-167 { margin: 0 auto; max-width: 800px; }
.extracted-style-168 { color:var(--color-text-muted); padding-left:0; }
.extracted-style-169 { padding: 3rem; border:0; box-shadow: 0 10px 30px -10px rgba(0,0,0,0.05); }
.extracted-style-170 { margin-bottom:0.5rem; font-size: 2.75rem; line-height:1.2; letter-spacing:-0.02em; }
.extracted-style-171 { font-size:1.1rem; margin-bottom:1rem; color:#57534E; font-family:var(--font-body); }
.extracted-style-172 { border:0; border-top:1px solid #E7E5E4; margin: 3rem 0; }
.extracted-style-173 { font-family:var(--font-body); text-transform:uppercase; font-size:0.85rem; letter-spacing:0.1em; color:#78716C; margin-bottom:1.5rem; }
.extracted-style-174 { padding:0; list-style:none; }
.extracted-style-175 { display:inline-block; width:6px; height:6px; background:var(--color-primary); border-radius:50%; margin-top:9px; margin-right:12px; flex-shrink:0; }
.extracted-style-176 { line-height:1.6; }
.extracted-style-177 { margin-top:2px; }
.extracted-style-178 { color:#78716C; font-size:0.85rem; line-height:1.3; font-weight:500; }
.extracted-style-179 { color:var(--color-primary); font-weight:bold; margin-right:2px; }
.extracted-style-180 { margin-top:3rem; padding:1.5rem; background:#FAFAF9; border-radius:8px; border:1px solid #E7E5E4; }
.extracted-style-181 { display:block; margin-bottom:0.5rem; font-size:0.9rem; text-transform:uppercase; letter-spacing:0.05em; color:#57534E; }
.extracted-style-182 { margin-top:4rem; padding-top:1.5rem; border-top:1px solid #F5F5F4; display:flex; justify-content:space-between; align-items:center; color:#A8A29E; font-size:0.85rem; flex-wrap:wrap; gap:1rem; }
.extracted-style-183 { padding: 3rem; }
.extracted-style-184 { margin-bottom:0.5rem; min-height:24px; }
.extracted-style-185 { margin-left:5px; }
.extracted-style-186 { margin-bottom:0.25rem; }
.extracted-style-187 { margin-bottom:1rem; min-height:1.5em; }
.extracted-style-188 { margin-top:auto; }
.extracted-style-189 { font-family:var(--font-heading); font-weight:400; font-size: clamp(2.75rem, 5vw, 4.5rem); line-height:1.1; margin-bottom:1.5rem; color:#1c1917; }
.extracted-style-190 { color:#D99294; font-style:italic; }
.extracted-style-191 { font-family:var(--font-body); font-weight:300; font-size:1.125rem; line-height:1.65; color:#57534E; margin-bottom:2.5rem; max-width:480px; }
.extracted-style-192 { display:flex; gap:1rem; flex-wrap:wrap; align-items:center; }
.extracted-style-193 { box-shadow:0 4px 20px -2px rgba(0,0,0,0.08); border-radius: 8px; background:white; padding:4px; flex:1; max-width:380px; display:flex; }
.extracted-style-194 { border:none; padding:0.75rem 1rem; flex:1; font-weight:300; font-size:1rem; outline:none; }
.extracted-style-195 { border-radius:6px; padding:0.5rem 1.25rem !important; border:none; }
.extracted-style-196 { position:fixed; top:0; left:0; width:100%; height:100%; background:#000; z-index:9000; display:flex; flex-direction:column; }
.extracted-style-197 { padding:1rem; display:flex; justify-content:space-between; align-items:center; background:rgba(0,0,0,0.3); color:white; position:absolute; top:0; left:0; right:0; z-index:9001; }
.extracted-style-198 { margin:0; font-size:1.2rem; font-family:var(--font-heading); color:white; }
.extracted-style-199 { color:white; text-decoration:none; background:rgba(255,255,255,0.2); width:32px; height:32px; display:inline-flex; align-items:center; justify-content:center; border-radius:50%; font-weight:bold; }
.extracted-style-200 { width:100%; height:100%; object-fit:cover; }
.extracted-style-201 { position:absolute; bottom:0; left:0; right:0; background:linear-gradient(to top, rgba(0,0,0,0.9), transparent); padding:2rem 1.5rem 3rem 1.5rem; z-index:9001; text-align:center; }
.extracted-style-202 { color:#d1d5db; margin-bottom:1.5rem; font-size:0.95rem; }
.extracted-style-203 { background:rgba(255,255,255,0.9); color:#1c1917; border:none; width:100%; max-width:300px; }
.extracted-style-204 { position:absolute; bottom:-100%; left:0; right:0; background:white; border-radius:1rem 1rem 0 0; padding:1.5rem; transition:bottom 0.3s ease-in-out; z-index:9002; height:50%; }
.extracted-style-205 { border:none; background:none; font-size:1.5rem; }
.extracted-style-206 { color:#666; }
.extracted-style-207 { padding:1rem; border:1px solid #ddd; border-radius:8px; font-size:1.1rem; width:100%; box-sizing:border-box; }
.extracted-style-208 { width:100%; padding:1rem; }
.extracted-style-209 { color:#f87171; }
.extracted-style-210 { color:#4ade80; font-weight:bold; }
.extracted-style-211 { padding: 4rem 1rem; }
.extracted-style-212 { margin: 2rem auto; }
.extracted-style-213 { display:flex; width:100%; gap:0.5rem; justify-content:center; }
.extracted-style-214 { max-width:300px; }
