/* /css/sop.css */
@import url('https://fonts.googleapis.com/css2?family=Roboto+Slab:wght@400;700&family=Roboto:wght@400;500;700&display=swap');

body {
    font-family: 'Roboto', sans-serif;
    background-color: #e2e8f0; /* slate-200 */
    color: #1e293b; /* slate-800 */
}

.sop-container {
    max-width: 8.5in;
    min-height: 11in;
    margin: 2rem auto;
    padding: 0.75in;
    background-color: white;
    box-shadow: 0 0 15px rgba(0,0,0,0.15);
    display: flex;
    flex-direction: column;
}

.sop-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    border-bottom: 4px solid #334155; /* slate-700 */
    padding-bottom: 1rem;
    margin-bottom: 1rem;
}
.sop-header-title h1 {
    font-family: 'Roboto Slab', serif;
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0;
    color: #1e293b;
}
.sop-header-title p {
    font-size: 1.25rem;
    color: #475569; /* slate-600 */
    margin-top: 0.25rem;
}

.sop-header-meta {
    border: 1px solid #cbd5e1; /* slate-300 */
    border-radius: 0.25rem;
    padding: 0.5rem;
    font-size: 0.8rem;
    text-align: right;
    width: 250px;
}
.sop-header-meta div {
    display: flex;
    justify-content: space-between;
}
.sop-header-meta span:first-child {
    font-weight: bold;
    color: #475569;
}
.sop-header-meta span:last-child {
    color: #1e293b;
}

.sop-section {
    margin-bottom: 2rem;
}

.sop-section-title {
    font-family: 'Roboto Slab', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #0d9488; /* teal-600 */
    border-bottom: 2px solid #99f6e4; /* teal-200 */
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}
.sop-section-title .icon {
    margin-right: 0.75rem;
    font-size: 1.25rem;
    background-color: #ccfbf1; /* teal-100 */
    color: #115e59; /* teal-800 */
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.sop-section-content p, .sop-section-content ul {
    line-height: 1.6;
    margin-bottom: 1rem;
}
.sop-section-content ul {
    list-style-position: inside;
}
.sop-section-content li {
    margin-bottom: 0.5rem;
}

.procedure-steps {
    list-style-type: none;
    counter-reset: step-counter;
    padding-left: 0;
}
.procedure-steps li {
    counter-increment: step-counter;
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.25rem;
}
.procedure-steps li::before {
    content: counter(step-counter);
    font-family: 'Roboto Slab', serif;
    font-weight: 700;
    font-size: 1.5rem;
    color: #14b8a6; /* teal-500 */
    background-color: #f0fdfa; /* teal-50 */
    border-radius: 50%;
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    border: 1px solid #ccfbf1;
}
.procedure-steps h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}
.procedure-steps p {
    margin: 0;
    line-height: 1.5;
    color: #334155; /* slate-700 */
}

.sop-footer {
    margin-top: auto; /* Pushes footer to the bottom */
    padding-top: 1rem;
    border-top: 1px solid #cbd5e1;
    font-size: 0.75rem;
    color: #64748b; /* slate-500 */
    display: flex;
    justify-content: space-between;
}