/* ============================================
   CREEK ADMIN STYLES
   ============================================ */

/* Reset & Base */
.creek-admin-wrap {
    margin: 20px 20px 20px 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, sans-serif;
}

.creek-logo {
    font-size: 28px;
    font-weight: 700;
    color: #1e3a5f;
    margin: 0 0 15px 0;
    padding: 0;
    letter-spacing: -0.5px;
}

/* Tabs */
.creek-tabs {
    display: flex;
    gap: 0;
    border-bottom: 2px solid #e2e8f0;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.creek-tab {
    padding: 10px 18px;
    text-decoration: none;
    color: #64748b;
    font-weight: 500;
    font-size: 14px;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all 0.2s;
}

.creek-tab:hover {
    color: #1e3a5f;
    background: #f8fafc;
}

.creek-tab.active {
    color: #1e3a5f;
    border-bottom-color: #2563eb;
    font-weight: 600;
}

/* Content Area */
.creek-content {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 24px;
}

/* Page Header */
.creek-page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 10px;
}

.creek-page-header h2 {
    margin: 0;
    font-size: 22px;
    color: #1e293b;
}

/* Buttons */
.creek-btn {
    display: inline-block;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background: #fff;
    color: #374151;
    cursor: pointer;
    transition: all 0.15s;
    line-height: 1.4;
}

.creek-btn:hover {
    background: #f9fafb;
    border-color: #9ca3af;
    color: #111827;
}

.creek-btn-primary {
    background: #2563eb;
    color: #fff;
    border-color: #2563eb;
}

.creek-btn-primary:hover {
    background: #1d4ed8;
    border-color: #1d4ed8;
    color: #fff;
}

.creek-btn-danger {
    color: #dc2626;
    border-color: #fca5a5;
}

.creek-btn-danger:hover {
    background: #fef2f2;
    border-color: #dc2626;
    color: #dc2626;
}

.creek-btn-warning {
    background: #f59e0b;
    color: #fff;
    border-color: #f59e0b;
}

.creek-btn-warning:hover {
    background: #d97706;
    border-color: #d97706;
    color: #fff;
}

.creek-btn-sm {
    padding: 4px 10px;
    font-size: 12px;
}

/* Search Form */
.creek-search-form {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    align-items: center;
}

.creek-search-input {
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    width: 300px;
    max-width: 100%;
}

.creek-search-input:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Tables */
.creek-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.creek-table thead {
    background: #f8fafc;
}

.creek-table th {
    padding: 10px 14px;
    text-align: left;
    font-weight: 600;
    color: #475569;
    border-bottom: 2px solid #e2e8f0;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.creek-table td {
    padding: 10px 14px;
    border-bottom: 1px solid #f1f5f9;
    color: #334155;
    vertical-align: middle;
}

.creek-table tr:hover {
    background: #f8fafc;
}

.creek-sub-row {
    background: #fafbfd;
}

.creek-thumb {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
}

/* Forms */
.creek-form {
    max-width: 100%;
}

.creek-form-group {
    margin-bottom: 16px;
}

.creek-form-group label {
    display: block;
    font-weight: 600;
    color: #374151;
    margin-bottom: 6px;
    font-size: 13px;
}

.creek-input,
.creek-select,
.creek-textarea {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    color: #1e293b;
    box-sizing: border-box;
    background: #fff;
}

.creek-input:focus,
.creek-select:focus,
.creek-textarea:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.creek-textarea {
    resize: vertical;
}

.creek-form-row {
    display: flex;
    gap: 30px;
}

.creek-form-col {
    flex: 1;
    min-width: 0;
    position: relative;
}

.creek-form-col:first-child {
    z-index: 2;
}

.creek-form-col:last-child {
    z-index: 1;
}

.creek-form-row-inner {
    display: flex;
    gap: 12px;
}

.creek-form-row-inline {
    display: flex;
    gap: 16px;
    align-items: flex-end;
    flex-wrap: wrap;
}

.creek-form-row-inline .creek-form-group {
    margin-bottom: 0;
}

.creek-form-group-grow {
    flex: 1;
    min-width: 200px;
}

.creek-form-group-btn {
    display: flex;
    gap: 8px;
    padding-bottom: 2px;
}

.creek-form-third {
    flex: 1;
}

.creek-help {
    font-size: 12px;
    color: #94a3b8;
    margin: 4px 0 0 0;
}

/* Upload Areas */
.creek-upload-area {
    border: 2px dashed #d1d5db;
    border-radius: 8px;
    padding: 20px 16px;
    text-align: center;
    transition: all 0.2s;
    position: relative;
    cursor: pointer;
}

.creek-upload-area:hover {
    border-color: #2563eb;
    background: #f8fafc;
}

.creek-file-input {
    width: 0.1px;
    height: 0.1px;
    opacity: 0;
    overflow: hidden;
    position: absolute;
    z-index: -1;
}

.creek-upload-label {
    color: #64748b;
    font-size: 13px;
    cursor: pointer;
    display: block;
    padding: 5px 0;
}

.creek-photo-preview {
    display: inline-block;
    position: relative;
    margin: 8px;
}

.creek-photo-preview img {
    width: 120px;
    height: 90px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
}

.creek-remove-photo {
    position: absolute;
    top: -6px;
    right: -6px;
    width: 22px;
    height: 22px;
    background: #dc2626;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    text-decoration: none;
    line-height: 1;
}

.creek-additional-preview {
    display: inline-block;
}

/* Toggle Switch */
.creek-toggle-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}

.creek-toggle {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 26px;
}

.creek-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.creek-toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #22c55e;
    border-radius: 26px;
    transition: 0.3s;
}

.creek-toggle-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    border-radius: 50%;
    transition: 0.3s;
}

.creek-toggle input:checked + .creek-toggle-slider {
    background-color: #dc2626;
}

.creek-toggle input:checked + .creek-toggle-slider:before {
    transform: translateX(22px);
}

.creek-toggle-label {
    font-weight: 600;
    font-size: 14px;
    color: #374151;
}

/* Sections */
.creek-section {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 16px;
}

.creek-section h3 {
    margin: 0 0 12px 0;
    font-size: 16px;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Badges */
.creek-badge {
    background: #e2e8f0;
    color: #475569;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 12px;
    font-weight: 600;
}

.creek-badge-danger {
    background: #fef2f2;
    color: #dc2626;
}

/* Status Labels */
.creek-status-active {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    background: #dcfce7;
    color: #16a34a;
}

.creek-status-inactive,
.creek-status-banned {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    background: #fef2f2;
    color: #dc2626;
}

/* Visitation List */
.creek-visit-list {
    max-height: 300px;
    overflow-y: auto;
}

.creek-visit-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #e2e8f0;
    font-size: 13px;
    gap: 10px;
    flex-wrap: wrap;
}

.creek-visit-item:last-child {
    border-bottom: none;
}

.creek-visit-amount {
    font-weight: 600;
    color: #16a34a;
}

/* Violation List */
.creek-violation-list {
    max-height: 500px;
    overflow-y: auto;
}

.creek-violation-item {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 12px;
    margin-bottom: 8px;
}

.creek-violation-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
}

.creek-violation-cat {
    font-size: 11px;
    background: #e2e8f0;
    padding: 2px 8px;
    border-radius: 10px;
    color: #475569;
}

.creek-violation-policy {
    font-size: 13px;
    color: #475569;
    margin: 4px 0;
}

.creek-violation-info {
    font-size: 13px;
    color: #64748b;
    margin: 4px 0;
}

.creek-violation-files {
    margin-top: 6px;
}

.creek-file-link {
    display: inline-block;
    font-size: 12px;
    color: #2563eb;
    text-decoration: none;
    margin-right: 10px;
}

.creek-file-link:hover {
    text-decoration: underline;
}

/* Policy Checklist */
.creek-policies-checklist {
    max-height: 400px;
    overflow-y: auto;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 12px;
}

.creek-policy-category {
    margin-bottom: 16px;
}

.creek-policy-category h4 {
    margin: 0 0 8px 0;
    font-size: 14px;
    color: #1e293b;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 4px;
}

.creek-policy-subcategory {
    margin-left: 16px;
    margin-top: 8px;
}

.creek-policy-subcategory h5 {
    margin: 0 0 6px 0;
    font-size: 13px;
    color: #475569;
}

.creek-checkbox-label {
    display: block;
    padding: 4px 0;
    font-size: 13px;
    color: #334155;
    cursor: pointer;
}

.creek-checkbox-label input {
    margin-right: 8px;
}

/* Event Packages */
.creek-package-row,
.creek-date-price-row {
    display: flex;
    gap: 10px;
    margin-bottom: 8px;
    align-items: center;
}

.creek-remove-package,
.creek-remove-date-price {
    flex-shrink: 0;
}

.creek-date-price-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 12px;
}

.creek-date-price-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.creek-date-price-card-header .creek-input {
    max-width: 200px;
}

.creek-date-price-grid {
    display: flex;
    gap: 20px;
}

.creek-date-price-col {
    flex: 1;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 12px;
}

.creek-date-price-col h5 {
    margin: 0 0 10px;
    font-size: 13px;
    color: #475569;
    font-weight: 600;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 8px;
}

.creek-date-price-col h5 small {
    font-weight: 400;
    color: #94a3b8;
}

.creek-mini-field {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.creek-mini-field label {
    font-size: 12px;
    color: #64748b;
    min-width: 75px;
    font-weight: 500;
}

.creek-mini-field .creek-input {
    max-width: 110px;
    padding: 6px 8px;
    font-size: 13px;
}

@media (max-width: 768px) {
    .creek-date-price-grid {
        flex-direction: column;
    }
}

.creek-date-price-fields {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 12px;
}

/* Date Linking */
.creek-link-check {
    width: 20px;
    height: 20px;
    cursor: pointer;
    flex-shrink: 0;
    accent-color: #22c55e;
}

.creek-link-badge {
    display: inline-block;
    background: #dcfce7;
    color: #16a34a;
    font-size: 12px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 12px;
    margin-left: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.creek-date-linked .creek-date-price-fields {
    opacity: 0.5;
    pointer-events: none;
}

.creek-date-linked {
    border-left: 3px solid #22c55e;
}

/* Settings */
.creek-settings-section {
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 20px;
    margin-bottom: 20px;
}

.creek-settings-section:last-of-type {
    border-bottom: none;
}

.creek-settings-section h3 {
    font-size: 16px;
    color: #1e293b;
    margin: 0 0 16px 0;
}

/* Settings sidebar layout */
.creek-settings-layout {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

.creek-settings-nav {
    flex: 0 0 200px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 8px;
    position: sticky;
    top: 40px;
}

.creek-settings-nav-item {
    display: block;
    padding: 10px 14px;
    color: #475569;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    border-radius: 6px;
    transition: all 0.15s;
}

.creek-settings-nav-item:hover {
    background: #f1f5f9;
    color: #1e293b;
}

.creek-settings-nav-item.active {
    background: #2563eb;
    color: #fff;
    font-weight: 600;
}

.creek-settings-main {
    flex: 1;
    min-width: 0;
}

.creek-settings-panel {
    display: none;
}

.creek-settings-panel.active {
    display: block;
}

@media (max-width: 768px) {
    .creek-settings-layout {
        flex-direction: column;
    }

    .creek-settings-nav {
        flex: none;
        width: 100%;
        display: flex;
        flex-wrap: wrap;
        gap: 4px;
        position: static;
    }

    .creek-settings-nav-item {
        flex: 1;
        text-align: center;
        min-width: 100px;
        font-size: 12px;
        padding: 8px 10px;
    }
}

.creek-shortcode-display {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f1f5f9;
    padding: 10px 14px;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
}

.creek-shortcode-display code {
    font-size: 15px;
    font-weight: 600;
    color: #1e293b;
    background: none;
}

/* Empty States */
.creek-empty {
    text-align: center;
    color: #94a3b8;
    padding: 40px;
    font-size: 15px;
}

.creek-empty-sm {
    color: #94a3b8;
    font-size: 13px;
    font-style: italic;
}

.creek-info {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    padding: 10px 14px;
    border-radius: 6px;
    font-size: 14px;
    color: #1e40af;
    margin-bottom: 20px;
}

.creek-error {
    background: #fef2f2;
    border: 1px solid #fca5a5;
    padding: 10px 14px;
    border-radius: 6px;
    font-size: 14px;
    color: #dc2626;
}

/* ============================================
   CALENDAR STYLES
   ============================================ */

.creek-calendar-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 10px;
}

.creek-cal-views {
    display: flex;
    gap: 0;
    background: #f1f5f9;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
}

.creek-cal-view-btn {
    padding: 8px 16px;
    border: none;
    background: transparent;
    font-size: 13px;
    font-weight: 500;
    color: #64748b;
    cursor: pointer;
    transition: all 0.15s;
}

.creek-cal-view-btn:hover {
    background: #e2e8f0;
}

.creek-cal-view-btn.active {
    background: #2563eb;
    color: #fff;
}

.creek-cal-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.creek-cal-title {
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
    min-width: 200px;
}

.creek-calendar-container {
    overflow-x: auto;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
}

.creek-cal-loading {
    padding: 60px;
    text-align: center;
    color: #94a3b8;
}

/* Calendar Grid */
.creek-cal-grid {
    display: table;
    width: 100%;
    min-width: 800px;
    border-collapse: collapse;
}

.creek-cal-header-row {
    display: table-row;
    background: #f8fafc;
}

.creek-cal-row {
    display: table-row;
}

.creek-cal-row:hover {
    background: #fafbfd;
}

.creek-cal-resource-cell {
    display: table-cell;
    padding: 10px 14px;
    font-weight: 600;
    font-size: 13px;
    color: #1e293b;
    border-bottom: 1px solid #e2e8f0;
    border-right: 2px solid #e2e8f0;
    min-width: 140px;
    max-width: 180px;
    position: sticky;
    left: 0;
    background: #fff;
    z-index: 2;
    vertical-align: middle;
}

.creek-cal-header-row .creek-cal-resource-cell {
    background: #f8fafc;
    font-weight: 700;
    color: #475569;
    font-size: 12px;
    text-transform: uppercase;
}

.creek-cal-date-cell {
    display: table-cell;
    min-width: 38px;
    padding: 6px 2px;
    text-align: center;
    font-size: 12px;
    color: #64748b;
    border-bottom: 1px solid #f1f5f9;
    border-right: 1px solid #f1f5f9;
    vertical-align: middle;
    position: relative;
    cursor: default;
}

.creek-cal-header-row .creek-cal-date-cell {
    font-weight: 600;
    color: #475569;
    border-bottom: 2px solid #e2e8f0;
    padding: 8px 2px;
}

.creek-cal-row .creek-cal-date-cell {
    background: #fff;
}

.creek-cal-row .creek-cal-date-cell .creek-cal-date-num {
    display: block;
    font-size: 11px;
    font-weight: 400;
    color: #cbd5e1;
    pointer-events: none;
}

.creek-cal-row .creek-cal-date-cell .creek-cal-week-label {
    display: none;
}

.creek-cal-row:hover .creek-cal-date-cell {
    background: #fafbfd;
}

.creek-cal-date-cell.creek-cal-today,
.creek-cal-row .creek-cal-date-cell.creek-cal-today {
    background: #eff6ff;
}

.creek-cal-date-cell.creek-cal-weekend {
    color: #dc2626;
}

.creek-cal-date-cell.creek-cal-event-day,
.creek-cal-row .creek-cal-date-cell.creek-cal-event-day {
    background: #fef3c7;
}

/* Booking blocks */
.creek-cal-booking {
    background: #2563eb;
    color: #fff;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 3px;
    cursor: pointer;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
    margin: 1px 0;
    line-height: 1.4;
}

.creek-cal-booking:hover {
    background: #1d4ed8;
}

.creek-cal-booking-span {
    position: absolute;
    top: 2px;
    left: 0;
    right: 0;
    bottom: 2px;
    background: #2563eb;
    opacity: 0.15;
    border-radius: 3px;
    pointer-events: none;
}

.creek-cal-week-label {
    font-size: 10px;
    color: #94a3b8;
    display: block;
}

.creek-cal-date-num {
    font-size: 13px;
    font-weight: 500;
}

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

.creek-modal-content {
    background: #fff;
    border-radius: 12px;
    width: 500px;
    max-width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.creek-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #e2e8f0;
}

.creek-modal-header h3,
.creek-modal-header h2 {
    margin: 0;
    font-size: 18px;
    color: #1e293b;
}

.creek-modal-close {
    font-size: 24px;
    cursor: pointer;
    color: #94a3b8;
    line-height: 1;
}

.creek-modal-close:hover {
    color: #475569;
}

.creek-modal-body {
    padding: 20px;
}

.creek-modal-detail {
    margin-bottom: 12px;
}

.creek-modal-detail label {
    font-size: 11px;
    text-transform: uppercase;
    color: #94a3b8;
    font-weight: 600;
    letter-spacing: 0.05em;
    display: block;
    margin-bottom: 2px;
}

.creek-modal-detail span {
    font-size: 15px;
    color: #1e293b;
    font-weight: 500;
}

.creek-modal-actions {
    display: flex;
    gap: 8px;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #e2e8f0;
}

.creek-edit-booking-form .creek-form-group {
    margin-bottom: 12px;
}

.creek-edit-booking-form .creek-form-group label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    color: #94a3b8;
    margin-bottom: 4px;
}

.creek-edit-booking-form .creek-input,
.creek-edit-booking-form .creek-select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 14px;
    box-sizing: border-box;
}

/* Notification */
.creek-notification {
    position: fixed;
    top: 40px;
    right: 20px;
    z-index: 100001;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    animation: creekSlideIn 0.3s ease;
}

.creek-notification-success {
    background: #dcfce7;
    color: #16a34a;
    border: 1px solid #86efac;
}

.creek-notification-error {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fca5a5;
}

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

/* Responsive */
@media (max-width: 768px) {
    .creek-form-row {
        flex-direction: column;
    }

    .creek-form-row-inner {
        flex-direction: column;
    }

    .creek-calendar-controls {
        flex-direction: column;
        align-items: flex-start;
    }

    .creek-page-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Badge variants */
.creek-badge-success {
    background: #dcfce7;
    color: #16a34a;
}

.creek-badge-warning {
    background: #fef9c3;
    color: #a16207;
}

.creek-badge-muted {
    background: #f1f5f9;
    color: #64748b;
}

/* Report Icon Cards */
.creek-report-cards {
    display: flex;
    gap: 24px;
    justify-content: center;
    padding: 40px 0;
    flex-wrap: wrap;
}

.creek-report-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 200px;
    height: 180px;
    background: #fff;
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.2s;
    gap: 12px;
}

.creek-report-card:hover {
    border-color: #2563eb;
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.12);
    transform: translateY(-2px);
}

.creek-report-card-icon {
    font-size: 48px;
    line-height: 1;
}

.creek-report-card-label {
    font-size: 14px;
    font-weight: 700;
    color: #1e293b;
    text-align: center;
    padding: 0 12px;
}


/* Bookings Chooser */
.creek-bookings-chooser {
    text-align: center;
}

.creek-choose-buttons {
    display: flex;
    gap: 24px;
    justify-content: center;
    padding: 40px 0;
    flex-wrap: wrap;
}

.creek-choose-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 200px;
    height: 180px;
    background: #fff;
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.2s;
    gap: 12px;
}

.creek-choose-btn:hover {
    border-color: #2563eb;
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.12);
    transform: translateY(-2px);
}

.creek-choose-icon {
    font-size: 48px;
    line-height: 1;
}

.creek-choose-label {
    font-size: 14px;
    font-weight: 700;
    color: #1e293b;
    text-align: center;
    padding: 0 12px;
}

/* Report Modal Wide */
.creek-modal-wide {
    max-width: 1000px;
    width: 95%;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
}

.creek-modal-wide .creek-modal-body {
    overflow-y: auto;
    flex: 1;
    padding: 16px 24px 24px;
}

.creek-report-modal-search-wrap {
    padding: 0 24px 12px;
}

.creek-report-modal-search-wrap .creek-input {
    width: 100%;
    padding: 10px 14px;
    font-size: 14px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    box-sizing: border-box;
    transition: border-color 0.2s;
}

.creek-report-modal-search-wrap .creek-input:focus {
    border-color: #2563eb;
    outline: none;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.creek-report-modal-toolbar {
    padding: 0 24px 12px;
    display: flex;
    gap: 12px;
    align-items: center;
}

.creek-report-modal-toolbar .creek-input {
    flex: 1;
    padding: 10px 14px;
    font-size: 14px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    box-sizing: border-box;
    transition: border-color 0.2s;
}

.creek-report-modal-toolbar .creek-input:focus {
    border-color: #2563eb;
    outline: none;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.creek-report-modal-toolbar .creek-select {
    padding: 10px 14px;
    font-size: 14px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    background: #fff;
}

/* Financial Report */
.creek-financial-toolbar {
    flex-wrap: wrap;
}

.creek-financial-filters {
    display: flex;
    gap: 12px;
    align-items: flex-end;
    flex-wrap: wrap;
    width: 100%;
}

.creek-financial-filters .creek-form-group {
    min-width: 120px;
}

.creek-financial-filters .creek-input {
    flex: none;
    width: 100%;
}

.creek-fin-type-checks {
    display: flex;
    gap: 12px;
    padding: 8px 0;
}

.creek-fin-check {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    font-weight: 500;
    color: #334155;
    cursor: pointer;
    white-space: nowrap;
}

.creek-fin-check input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.creek-badge-info {
    background-color: #dbeafe;
    color: #1e40af;
}

/* Toggle Switch */
.creek-toggle {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    cursor: pointer;
}

.creek-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.creek-toggle-slider {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: #ef4444;
    border-radius: 24px;
    transition: background-color 0.3s;
}

.creek-toggle-slider::before {
    content: '';
    position: absolute;
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: #fff;
    border-radius: 50%;
    transition: transform 0.3s;
}

.creek-toggle input:checked + .creek-toggle-slider {
    background-color: #22c55e;
}

.creek-toggle input:checked + .creek-toggle-slider::before {
    transform: translateX(20px);
}

.creek-btn-reminder {
    background: #f59e0b;
    color: #fff;
    border: none;
}

.creek-btn-reminder:hover {
    background: #d97706;
}

.creek-actions-cell {
    white-space: nowrap;
}

tr.creek-reminder-sent {
    background-color: #dbeafe !important;
}

tr.creek-reminder-sent:hover {
    background-color: #bfdbfe !important;
}

/* Report Sections (legacy cleanup) */
.creek-report-section {
    margin-bottom: 32px;
}

/* Manual Booking */
.creek-manual-customer-tabs {
    display: flex;
    gap: 6px;
    margin-bottom: 8px;
}

.creek-manual-cust-tab.active {
    background: #2563eb;
    color: #fff;
}

.creek-manual-cust-results {
    display: none;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    max-height: 200px;
    overflow-y: auto;
    margin-top: 6px;
    background: #fff;
}

.creek-manual-cust-option {
    padding: 10px 14px;
    cursor: pointer;
    border-bottom: 1px solid #f1f5f9;
    transition: background 0.15s;
}

.creek-manual-cust-option:last-child {
    border-bottom: none;
}

.creek-manual-cust-option:hover {
    background: #f0f6ff;
}

.creek-manual-cust-none {
    cursor: default;
    color: #94a3b8;
    font-style: italic;
}

.creek-manual-cust-none:hover {
    background: transparent;
}

.creek-manual-cust-selected {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 6px;
    padding: 10px 14px;
    font-size: 14px;
}

.creek-manual-cust-selected .creek-manual-cust-clear {
    margin-left: 8px;
    color: #2563eb;
    text-decoration: none;
    font-size: 13px;
}

.creek-manual-email-match {
    background: #fef9c3;
    border: 1px solid #fbbf24;
    border-radius: 6px;
    padding: 10px 14px;
    font-size: 13px;
    color: #92400e;
    margin-top: 6px;
}

.creek-manual-email-match a {
    color: #2563eb;
    font-weight: 600;
    text-decoration: none;
}

.creek-manual-email-match a:hover {
    text-decoration: underline;
}

.creek-manual-pricing {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 14px 18px;
    margin-bottom: 12px;
}

.creek-manual-pricing-row {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.creek-manual-pricing-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 100px;
}

.creek-manual-pricing-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
    font-weight: 600;
}

.creek-manual-pricing-value {
    font-size: 17px;
    font-weight: 700;
    color: #1e293b;
}

.creek-price-green {
    color: #16a34a;
}

/* Empty State */
.creek-empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #94a3b8;
    font-size: 15px;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px dashed #e2e8f0;
}

/* Report: Customer Cards */
.creek-report-violations {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.creek-report-customer-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
}

.creek-report-customer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.creek-report-customer-header h3 {
    margin: 0;
    font-size: 16px;
    color: #1e293b;
}

.creek-report-customer-meta {
    font-size: 13px;
    color: #64748b;
}

.creek-report-violations-list {
    padding: 0;
}

.creek-report-violation-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 20px;
    border-bottom: 1px solid #f1f5f9;
}

.creek-report-violation-row:last-child {
    border-bottom: none;
}

.creek-report-violation-detail {
    flex: 1;
}

.creek-report-violation-date {
    font-weight: 600;
    font-size: 13px;
    color: #1e293b;
    margin-bottom: 4px;
}

.creek-report-violation-policy {
    font-size: 14px;
    color: #334155;
    margin-top: 4px;
}

.creek-report-violation-info {
    font-size: 13px;
    color: #64748b;
    margin-top: 4px;
}

.creek-report-violation-files {
    margin-top: 6px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.creek-report-violation-files .creek-file-link {
    font-size: 12px;
    color: #2563eb;
    text-decoration: none;
}

.creek-report-violation-files .creek-file-link:hover {
    text-decoration: underline;
}

.creek-report-violation-actions {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex-shrink: 0;
}

/* Table wrap */
.creek-table-wrap {
    overflow-x: auto;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.creek-table-wrap .creek-table {
    margin: 0;
    border: none;
}

@media (max-width: 768px) {
    .creek-report-customer-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .creek-report-violation-row {
        flex-direction: column;
    }

    .creek-report-violation-actions {
        flex-direction: row;
    }

    .creek-report-cards {
        gap: 16px;
    }

    .creek-report-card {
        width: 150px;
        height: 140px;
    }

    .creek-report-card-icon {
        font-size: 36px;
    }
}
