@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@100..900&display=swap');

:root {
    --background-color: #ffffff;
    --background-color-2: #2596be;
    --btn-color: #000000;
    --text-color: #80162d;
    --anchors-selected-color: #666666;
    --green-color: #176B4D;
    --gold-color: #D4AF37;
    --text-font-1: 'Outfit', sans-serif;
    --diary-color: #F3E9D2;
}

.employees-main-painel-diary, .admins-main-painel-spreadsheets-diary {
    position: absolute;
    width: 100%;
    height: 100%;
    padding: 1.5rem;
    background: var(--diary-color);
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: var(--text-font-1);
    box-sizing: border-box;
    left: -200%;
    z-index: 10;
}

.employees-main-painel-diary.opened, .admins-main-painel-spreadsheets-diary.opened {
    left: 0;
}

.diary-page {
    position: relative;
    width: min(50rem, 100%);
    height: min(35rem, 90vh);
    min-height: 25rem;
    padding: clamp(2rem, 5vw, 3.5rem)
             clamp(2.5rem, 7vw, 4.5rem);
    background: #fffdf5;
    box-sizing: border-box;
    box-shadow:
        0 12px 30px rgba(80, 55, 20, 0.15),
        0 2px 6px rgba(80, 55, 20, 0.08);
    border-radius: 2px;
    display: flex;
    flex-direction: column;
}

.diary-page::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: clamp(1.25rem, 3vw, 2rem);
    width: 2px;
    background: rgba(128, 22, 45, 0.12);
}

.diary-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: clamp(1.5rem, 4vw, 2.2rem);
    color: var(--text-color);
    flex-wrap: wrap;
}

.diary-label {
    font-size: clamp(0.75rem, 1.5vw, 0.875rem);
    font-weight: 700;
    letter-spacing: clamp(0.15rem, 0.5vw, 0.3rem);
}

.diary-date {
    font-size: clamp(0.7rem, 1.5vw, 0.8125rem);
    font-weight: 500;
    opacity: 0.65;
    white-space: nowrap;
}

.employees-main-painel-diary-title {
    width: 100%;
    padding: 0.5rem 0 0.9rem;
    border: none;
    border-bottom: 2px solid rgba(128, 22, 45, 0.25);
    background: transparent;
    outline: none;
    color: var(--text-color);
    font-family: var(--text-font-1);
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 700;
    box-sizing: border-box;
}

.employees-main-painel-diary-title::placeholder {
    color: rgba(128, 22, 45, 0.35);
}

.employees-main-painel-diary-description {
    width: 100%;
    height: 100%;
    flex: 1;
    overflow-y: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    min-height: 0;
    margin-top: clamp(1.25rem, 3vw, 1.8rem);
    padding: 0.3rem 0;
    border: none;
    outline: none;
    resize: none;
    background-color: transparent;
    color: #4b4035;
    font-family: var(--text-font-1);
    font-size: clamp(0.9rem, 2vw, 1.0625rem);
    line-height: clamp(1.8rem, 4vw, 2.125rem);
    box-sizing: border-box;
    background-image: repeating-linear-gradient(
        to bottom,
        transparent 0,
        transparent calc(clamp(1.8rem, 4vw, 2.125rem) - 1px),
        rgba(128, 22, 45, 0.12) calc(clamp(1.8rem, 4vw, 2.125rem) - 1px),
        rgba(128, 22, 45, 0.12) clamp(1.8rem, 4vw, 2.125rem)
    );
}

.employees-main-painel-diary-description::placeholder {
    color: rgba(75, 64, 53, 0.35);
}

.diary-commands {
    display: flex;
    justify-content: flex-end;
    margin-top: 1.25rem;
    gap: 0.5rem;
}