/* Ampelos Staff App */
.ampelos-wrap {
    margin: 40px auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.ampelos-wrap--narrow {
    max-width: 520px;
}

.ampelos-stack > * + * {
    margin-top: 24px;
}

.ampelos-grid {
    display: grid;
    gap: 24px;
}

.ampelos-grid--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ampelos-grid--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ampelos-card,
.ampelos-stat-card,
.ampelos-request-card,
.ampelos-message-card,
.ampelos-calendar-day {
    background: #ffffff;
    border: 1px solid #e6e8ec;
    border-radius: 18px;
    box-shadow: 0 8px 24px rgba(16, 24, 40, 0.06);
    box-sizing: border-box;
}

.ampelos-card,
.ampelos-request-card,
.ampelos-message-card,
.ampelos-calendar-day {
    padding: 20px;
}

.ampelos-login-card {
    padding: 28px;
}

.ampelos-card h1,
.ampelos-card h2,
.ampelos-card h3,
.ampelos-stat-card strong,
.ampelos-request-card h3,
.ampelos-message-card h3,
.ampelos-portal-header h1 {
    margin-top: 0;
}

.ampelos-card h1,
.ampelos-portal-header h1 {
    margin-bottom: 8px;
    font-size: 32px;
    line-height: 1.15;
}

.ampelos-card h2 {
    margin-bottom: 16px;
    font-size: 22px;
    line-height: 1.2;
}

.ampelos-card h3,
.ampelos-request-card h3,
.ampelos-message-card h3 {
    margin-bottom: 10px;
    font-size: 18px;
    line-height: 1.25;
}

.ampelos-subtitle {
    margin: 0;
    color: #667085;
    font-size: 14px;
    line-height: 1.5;
}

.ampelos-note {
    margin: 14px 0 0;
    color: #667085;
    font-size: 13px;
    line-height: 1.5;
}

.ampelos-portal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.ampelos-form {
    display: grid;
    gap: 14px;
}

.ampelos-form--inline {
    display: flex;
    align-items: end;
    gap: 12px;
    flex-wrap: wrap;
}

.ampelos-form--compact {
    margin-top: 14px;
}

.ampelos-form label,
.ampelos-schedule-row label {
    display: grid;
    gap: 6px;
}

.ampelos-form span,
.ampelos-schedule-row span {
    font-size: 13px;
    font-weight: 600;
    color: #344054;
}

.ampelos-form input[type="text"],
.ampelos-form input[type="email"],
.ampelos-form input[type="password"],
.ampelos-form input[type="date"],
.ampelos-form input[type="time"],
.ampelos-form input[type="month"],
.ampelos-form input[type="number"],
.ampelos-form select,
.ampelos-form textarea,
.ampelos-schedule-row input[type="time"] {
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid #d0d5dd;
    border-radius: 12px;
    background: #fff;
    color: #101828;
    box-sizing: border-box;
    font: inherit;
}

.ampelos-form textarea {
    min-height: 110px;
    resize: vertical;
}

.ampelos-form input:focus,
.ampelos-form select:focus,
.ampelos-form textarea:focus,
.ampelos-schedule-row input:focus {
    outline: none;
    border-color: #98a2b3;
    box-shadow: 0 0 0 3px rgba(152, 162, 179, 0.18);
}

.ampelos-inline-check {
    display: flex !important;
    align-items: center;
    gap: 10px;
}

.ampelos-inline-check input[type="checkbox"] {
    width: 18px;
    height: 18px;
    min-height: auto;
    margin: 0;
}

.ampelos-inline-check span {
    font-size: 14px;
    font-weight: 500;
}

.ampelos-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 16px;
    border: 1px solid #111827;
    border-radius: 12px;
    background: #111827;
    color: #ffffff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.ampelos-button:hover {
    background: #1f2937;
    border-color: #1f2937;
    color: #ffffff;
}

.ampelos-button--ghost {
    background: #ffffff;
    color: #111827;
    border-color: #d0d5dd;
}

.ampelos-button--ghost:hover {
    background: #f9fafb;
    color: #111827;
    border-color: #98a2b3;
}

.ampelos-button--danger {
    background: #b42318;
    border-color: #b42318;
}

.ampelos-button--danger:hover {
    background: #912018;
    border-color: #912018;
}

.ampelos-button--small {
    min-height: 36px;
    padding: 8px 12px;
    font-size: 13px;
    border-radius: 10px;
}

.ampelos-button--full {
    width: 100%;
}

.ampelos-alert {
    padding: 14px 16px;
    border-radius: 14px;
    font-size: 14px;
    line-height: 1.5;
    border: 1px solid transparent;
}

.ampelos-alert--success {
    background: #ecfdf3;
    border-color: #abefc6;
    color: #067647;
}

.ampelos-alert--error {
    background: #fef3f2;
    border-color: #fecdca;
    color: #b42318;
}

.ampelos-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.ampelos-stat-card {
    padding: 18px 20px;
}

.ampelos-stat-card span {
    display: block;
    color: #667085;
    font-size: 13px;
    margin-bottom: 10px;
}

.ampelos-stat-card strong {
    display: block;
    color: #111827;
    font-size: 30px;
    line-height: 1;
}

.ampelos-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 14px;
}

.ampelos-calendar-day {
    min-height: 150px;
}

.ampelos-calendar-date {
    font-size: 15px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 12px;
}

.ampelos-calendar-meta {
    display: grid;
    gap: 10px;
    color: #475467;
    font-size: 13px;
    line-height: 1.5;
}

.ampelos-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    max-width: 100%;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    border: 1px solid transparent;
    box-sizing: border-box;
}

.ampelos-badge--pending {
    background: #fffaeb;
    border-color: #fedf89;
    color: #b54708;
}

.ampelos-badge--approved {
    background: #ecfdf3;
    border-color: #abefc6;
    color: #067647;
}

.ampelos-badge--rejected {
    background: #fef3f2;
    border-color: #fecdca;
    color: #b42318;
}

.ampelos-badge--open {
    background: #eff8ff;
    border-color: #b2ddff;
    color: #175cd3;
}

.ampelos-badge--closed {
    background: #f2f4f7;
    border-color: #d0d5dd;
    color: #344054;
}

.ampelos-badge--work {
    background: #ecfdf3;
    border-color: #abefc6;
    color: #067647;
}

.ampelos-badge--leave {
    background: #fef3f2;
    border-color: #fecdca;
    color: #b42318;
}

.ampelos-mini-list,
.ampelos-simple-list {
    margin: 0;
    padding-left: 18px;
}

.ampelos-mini-list li,
.ampelos-simple-list li {
    margin-bottom: 8px;
    color: #344054;
    line-height: 1.45;
}

.ampelos-mini-list small {
    display: block;
    margin-top: 4px;
    color: #667085;
}

.ampelos-simple-list {
    padding-left: 0;
    list-style: none;
}

.ampelos-simple-list li {
    padding: 12px 0;
    border-bottom: 1px solid #eaecf0;
}

.ampelos-simple-list li:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.ampelos-request-card,
.ampelos-message-card {
    margin-bottom: 16px;
}

.ampelos-request-card:last-child,
.ampelos-message-card:last-child {
    margin-bottom: 0;
}

.ampelos-request-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 12px;
    color: #667085;
    font-size: 13px;
}

.ampelos-admin-note {
    margin-top: 12px;
    padding: 12px 14px;
    background: #f8fafc;
    border: 1px solid #e4e7ec;
    border-radius: 12px;
    color: #344054;
    font-size: 14px;
    line-height: 1.55;
}

.ampelos-table-wrap {
    width: 100%;
    overflow-x: auto;
}

.ampelos-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 680px;
}

.ampelos-table th,
.ampelos-table td {
    padding: 12px 10px;
    border-bottom: 1px solid #eaecf0;
    text-align: left;
    vertical-align: top;
    font-size: 14px;
    line-height: 1.45;
}

.ampelos-table th {
    color: #475467;
    font-weight: 700;
    background: #f8fafc;
}

.ampelos-table td {
    color: #101828;
}

.ampelos-table tr:last-child td {
    border-bottom: 0;
}

.ampelos-schedule-row {
    display: grid;
    grid-template-columns: 140px auto 1fr 1fr;
    gap: 12px;
    align-items: end;
    padding: 14px 0;
    border-bottom: 1px solid #eaecf0;
}

.ampelos-schedule-row:last-of-type {
    border-bottom: 0;
}

.ampelos-schedule-row strong {
    font-size: 15px;
    color: #111827;
    line-height: 44px;
}

@media (max-width: 1200px) {
    .ampelos-grid--3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ampelos-calendar-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .ampelos-stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .ampelos-grid--2,
    .ampelos-grid--3,
    .ampelos-stats-grid,
    .ampelos-calendar-grid {
        grid-template-columns: 1fr;
    }

    .ampelos-portal-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .ampelos-form--inline {
        flex-direction: column;
        align-items: stretch;
    }

    .ampelos-schedule-row {
        grid-template-columns: 1fr;
        align-items: stretch;
    }

    .ampelos-schedule-row strong {
        line-height: 1.4;
    }
}

@media (max-width: 600px) {
    .ampelos-wrap {
        margin: 24px auto;
        padding: 0 14px;
    }

    .ampelos-card,
    .ampelos-request-card,
    .ampelos-message-card,
    .ampelos-calendar-day {
        padding: 16px;
        border-radius: 14px;
    }

    .ampelos-card h1,
    .ampelos-portal-header h1 {
        font-size: 26px;
    }

    .ampelos-card h2 {
        font-size: 20px;
    }

    .ampelos-table {
        min-width: 560px;
    }
}