* {
box-sizing: border-box;
}

body {
margin: 0;
padding: 24px;
font-family: Arial, sans-serif;
background: #f3f5f9;
color: #1f2937;
}

.page {
margin: 0 auto;
background: #ffffff;
border: 1px solid #e5e7eb;
border-radius: 12px;
padding: 20px;
box-shadow: 0 10px 24px rgba(17, 24, 39, 0.08);
}

h2 {
margin: 0 0 16px;
font-size: 24px;
}

.toolbar {
display: flex;
justify-content: flex-end;
margin-bottom: 14px;
}

.table-wrap {
overflow-x: auto;
border: 1px solid #e5e7eb;
border-radius: 10px;
}

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

th,
td {
padding: 12px 14px;
text-align: left;
border-bottom: 1px solid #eef2f7;
vertical-align: middle;
}

th {
background: #f8fafc;
font-weight: 600;
}

tr:hover td {
background: #fafcff;
}

tr.row-warning td {
background: #fef3c7;
}

tr.row-warning:hover td {
background: #fde68a;
}

tr.row-full td {
background: #fee2e2;
}

tr.row-full:hover td {
background: #fecaca;
}

button {
border: 0;
border-radius: 8px;
padding: 8px 12px;
font-size: 14px;
cursor: pointer;
}

button:disabled {
opacity: 0.6;
cursor: not-allowed;
}

.btn-primary {
background: #2563eb;
color: #ffffff;
}

.btn-primary:hover {
background: #1d4ed8;
}

.btn-secondary {
background: #e5e7eb;
color: #111827;
}

.btn-secondary:hover {
background: #d1d5db;
}

.btn-warning {
background: #f59e0b;
color: #ffffff;
}

.btn-warning:hover {
background: #d97706;
}

.btn-info {
background: #0ea5e9;
color: #ffffff;
margin-left: 8px;
}

.btn-info:hover {
background: #0284c7;
}

.btn-danger {
background: #dc2626;
color: #ffffff;
margin-left: 8px;
}

.btn-danger:hover {
background: #b91c1c;
}

.modal {
display: none;
position: fixed;
inset: 0;
background: rgba(15, 23, 42, 0.45);
backdrop-filter: blur(2px);
align-items: center;
justify-content: center;
z-index: 1000;
}

.modal-content {
background: #fff;
padding: 18px;
border-radius: 12px;
min-width: 320px;
box-shadow: 0 16px 30px rgba(15, 23, 42, 0.2);
}

.modal-content h3 {
margin-top: 0;
margin-bottom: 14px;
}

.form-row {
margin-bottom: 12px;
}

.form-row label {
display: block;
font-size: 13px;
font-weight: 600;
margin-bottom: 6px;
}

.form-row input,
.table-select {
width: 100%;
padding: 10px;
border: 1px solid #cbd5e1;
border-radius: 8px;
font-size: 14px;
background: #ffffff;
}

.table-select {
padding: 8px 10px;
min-width: 84px;
}

.form-row textarea {
width: 100%;
padding: 10px;
border: 1px solid #cbd5e1;
border-radius: 8px;
font-size: 14px;
background: #ffffff;
min-height: 120px;
resize: vertical;
}

.modal-actions {
display: flex;
justify-content: flex-end;
gap: 8px;
}
