:root {
    --oc-primary: #d97706;
    --oc-primary-hover: #b45309;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --border: #e2e8f0;
    --cell-bg: #f8fafc;
    --danger: #ef4444;
    --success: #10b981;
}

.main-content {
    padding: 2rem;
    display: flex;
    justify-content: center;
}

.oc-wrapper {
    background-color: #ffffff;
    width: 100%;
    max-width: 900px;
    padding: 3rem;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.doc-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--oc-primary);
    padding-bottom: 1.5rem;
    gap: 2rem;
}

.oc-title-section h1 {
    font-size: 2rem;
    color: var(--oc-primary);
    margin-bottom: 0.5rem;
    letter-spacing: 2px;
}

.oc-title-section p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.hidden-input, .hidden-input-inline {
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-main);
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s;
    padding: 0.25rem;
    border-radius: 0.25rem;
}
.hidden-input:hover, .hidden-input:focus, .hidden-input-inline:hover, .hidden-input-inline:focus {
    border-color: var(--border);
    background: var(--cell-bg);
}

.employee-meta {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 0.75rem 1.5rem;
    margin-bottom: 2rem;
}

.meta-field .hidden-input-inline {
    width: 100%;
    box-sizing: border-box;
    display: block;
}

.meta-field label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-bottom: 0.25rem;
}

/* Progress bar */
.progress-section {
    margin-bottom: 2rem;
}

.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.progress-header strong {
    color: var(--text-main);
}

.progress-bar-track {
    width: 100%;
    height: 10px;
    background: var(--cell-bg);
    border: 1px solid var(--border);
    border-radius: 999px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--oc-primary), var(--success));
    border-radius: 999px;
    transition: width 0.3s ease;
    width: 0%;
}

/* Checklist sections */
.checklist-section {
    margin-bottom: 2rem;
}

.checklist-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border);
}

.checklist-section-header h3 {
    font-size: 1rem;
    color: var(--text-main);
    font-weight: 700;
}

.checklist-section-count {
    font-size: 0.8rem;
    color: var(--text-muted);
    background: var(--cell-bg);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 0.15rem 0.65rem;
}

.checklist-items {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.checklist-item {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    padding: 0.4rem 0.25rem;
    border-radius: 0.375rem;
}

.checklist-item .checkbox-box {
    margin-top: 2px;
}

.checklist-item:hover {
    background: var(--cell-bg);
}

.checkbox-box {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    border: 2px solid #cbd5e1;
    border-radius: 5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s;
    background: #ffffff;
}

.checkbox-box svg {
    width: 14px;
    height: 14px;
    stroke: white;
    opacity: 0;
    transition: opacity 0.1s;
}

.checklist-item.checked .checkbox-box {
    background: var(--success);
    border-color: var(--success);
}
.checklist-item.checked .checkbox-box svg {
    opacity: 1;
}
.checklist-item.checked .item-text {
    color: var(--text-muted);
    text-decoration: line-through;
}

.item-text {
    flex: 1;
    font-size: 0.95rem;
    font-family: inherit;
    color: var(--text-main);
    border: 1px solid transparent;
    background: transparent;
    resize: none;
    overflow: hidden;
    white-space: normal;
    overflow-wrap: break-word;
    line-height: 1.4;
    padding: 0.15rem 0.25rem;
}

.item-delete {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.2rem;
    border-radius: 0.25rem;
    opacity: 0;
    transition: opacity 0.15s;
}
.checklist-item:hover .item-delete { opacity: 1; }
.item-delete:hover { color: var(--danger); background: #fee2e2; }

.add-item-row {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.add-item-input {
    flex: 1;
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--border);
    border-radius: 0.375rem;
    font-size: 0.9rem;
    font-family: inherit;
}

.add-item-btn-small {
    background: var(--cell-bg);
    border: 1px solid var(--border);
    color: var(--text-main);
    padding: 0.5rem 0.9rem;
    border-radius: 0.375rem;
    cursor: pointer;
    font-size: 0.85rem;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}
.add-item-btn-small:hover { background: #eef2f7; }

.oc-actions .btn-primary {
    background-color: var(--oc-primary);
}
.oc-actions .btn-primary:hover {
    background-color: var(--oc-primary-hover);
}

@media print {
    body { background: white; }
    .hide-in-pdf { display: none !important; }
    .main-content { padding: 0; }
    .oc-wrapper { box-shadow: none; padding: 0; }
    .hidden-input, .hidden-input-inline { border: none !important; background: transparent !important; }
    .checklist-item { break-inside: avoid; }
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .main-content { padding: 1rem; }
    .oc-wrapper { padding: 1.5rem; min-width: unset; }
    .doc-header { flex-direction: column; gap: 1rem; }
    .employee-meta { grid-template-columns: 1fr; }
    .add-item-row { flex-direction: column; }
}
