#company-leave { display: grid; gap: 22px; color: #263b37; }
#company-leave[hidden] { display: none; }
.leave-head, .leave-person-title, .leave-admin-intro { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.leave-head h3, .leave-person h4 { margin: 4px 0 8px; }
.leave-head p, .leave-person-title p, .leave-muted { margin: 0; color: #677b74; }
.leave-head .leave-source { margin-top: 8px; font-size: .87rem; }
.leave-head label, .leave-form label { display: grid; gap: 6px; font-weight: 600; }
.leave-head select, .leave-form input, .leave-form select { border: 1px solid #cad8d0; border-radius: 10px; padding: 10px 12px; background: #fff; color: inherit; }
.leave-admin-intro { align-items: center; padding: 13px 16px; background: #eff6f1; border-radius: 12px; }
.leave-admin-intro button, .leave-person-title button, .leave-form button { border: 0; border-radius: 10px; padding: 10px 14px; background: #275b46; color: #fff; cursor: pointer; font: inherit; font-weight: 700; }
.leave-table-wrap { overflow-x: auto; border: 1px solid #dce6de; border-radius: 14px; background: #fff; }
.leave-table { width: 100%; border-collapse: collapse; text-align: left; }
.leave-table th, .leave-table td { padding: 11px 15px; border-bottom: 1px solid #edf1ed; }
.leave-table th { background: #f5f8f5; color: #536b5e; }
.leave-table tr:last-child td { border-bottom: 0; }
.leave-table td button { border: 0; background: transparent; color: #215b43; padding: 0; font: inherit; font-weight: 700; text-align: left; cursor: pointer; }
.leave-table small { display: block; color: #8b6b3b; }
.leave-person { padding: 20px; border: 1px solid #dce6de; border-radius: 16px; background: #fff; }
.leave-person h5, .leave-form h5 { margin: 22px 0 10px; font-size: 1rem; }
.leave-summary { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 18px; }
.leave-summary > div { display: grid; gap: 8px; padding: 16px; border-radius: 12px; background: #f3f7f3; }
.leave-summary span { color: #60776a; }
.leave-summary strong { font-size: 1.5rem; }
.leave-summary .leave-balance { background: #e3f3e7; }
.leave-entries { margin: 0; padding: 0; list-style: none; }
.leave-entries li { display: flex; gap: 15px; padding: 8px 0; border-bottom: 1px solid #edf1ed; }
.leave-entries li span { flex: 1; }
.leave-entries li button { align-self: start; border: 1px solid #c58d83; border-radius: 8px; padding: 5px 9px; background: #fff; color: #9a453c; font: inherit; font-size: .8rem; cursor: pointer; }
.leave-entries li button:disabled { opacity: .5; cursor: wait; }
.leave-entry-voided { color: #77877d; text-decoration: line-through; }
.leave-entry-voided strong { color: #9a453c; text-decoration: none; }
.leave-entries time { min-width: 96px; color: #60776a; }
.leave-form { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; margin-top: 18px; padding: 18px; border-radius: 12px; background: #f6f8f5; }
.leave-form h5, .leave-note, .leave-form-status, .leave-form-actions { grid-column: 1 / -1; }
.leave-form h5 { margin: 0; }
.leave-form button { justify-self: start; }
.leave-form button:disabled { opacity: .55; cursor: wait; }
.leave-form-status { margin: 0; color: #8b413a; }
.leave-form-actions { display: flex; gap: 10px; }
.leave-form-actions button:last-child { background: #e3e9e3; color: #345346; }
.leave-message { padding: 20px; border-radius: 12px; background: #f5f8f5; }
@media (max-width: 680px) { .leave-head, .leave-person-title, .leave-admin-intro { flex-direction: column; } .leave-summary, .leave-form { grid-template-columns: 1fr; } }
