body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #f4f7fb;
    color: #1f2937;
}

.container {
    max-width: 1100px;
    margin: 2rem auto;
    padding: 1rem;
}

.container.small {
    max-width: 420px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.card {
    background: #fff;
    padding: 1rem;
    border-radius: 10px;
    margin-bottom: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.top-nav {
    display: flex;
    gap: 1rem;
    align-items: center;
}

form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

label {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    font-size: 0.95rem;
}

input, select, textarea, button {
    padding: 0.55rem;
    border-radius: 6px;
    border: 1px solid #d1d5db;
    font-size: 0.95rem;
}

button {
    border: none;
    background: #2563eb;
    color: #fff;
    cursor: pointer;
}

.grid-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.8rem;
}

.grid-form .full {
    grid-column: 1 / -1;
}

.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.mini-form {
    margin-bottom: 1rem;
}


.quick-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.feed {
    list-style: none;
    padding: 0;
    margin: 0;
}

.feed li {
    border-bottom: 1px solid #e5e7eb;
    padding: 0.65rem 0;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    border-bottom: 1px solid #e5e7eb;
    text-align: left;
    padding: 0.55rem;
    vertical-align: top;
}

.error {
    color: #b91c1c;
    font-weight: bold;
}

@media (max-width: 850px) {
    .two-col {
        grid-template-columns: 1fr;
    }
}


.form-actions {
    display: flex;
    gap: 0.6rem;
    align-items: center;
}

.button-link {
    display: inline-block;
    padding: 0.45rem 0.7rem;
    border-radius: 6px;
    border: 1px solid #2563eb;
    color: #2563eb;
    text-decoration: none;
    font-size: 0.9rem;
    background: #eff6ff;
}

.button-link:hover {
    background: #dbeafe;
}


.checkbox-label {
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1.3rem;
}

.checkbox-label input {
    width: auto;
    margin: 0;
    padding: 0;
}


.button-cta {
    display: inline-block;
    border: 1px solid #2563eb;
    background: #eff6ff;
    color: #2563eb;
}

.modal-open {
    overflow: hidden;
}

.modal {
    position: fixed;
    inset: 0;
    display: grid;
    place-items: center;
    z-index: 1000;
}

.modal[hidden] {
    display: none;
}

.modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(17, 24, 39, 0.55);
}

.modal-content {
    position: relative;
    width: min(900px, calc(100% - 2rem));
    max-height: calc(100vh - 2rem);
    overflow-y: auto;
    z-index: 1;
}

.modal-close {
    position: absolute;
    top: 0.6rem;
    right: 0.6rem;
    border: none;
    background: transparent;
    color: #1f2937;
    font-size: 1.5rem;
    line-height: 1;
    padding: 0.1rem 0.4rem;
}
