:root {
    --bg: #f4f6f8;
    --surface: #ffffff;
    --panel: #2c3e50;
    --text: #222222;
    --muted: #6f7c8a;
    --link: #3791ff;
    --border: #dde2e7;
}
* {
    box-sizing: border-box;
}
body {
    margin: 0;
    min-height: 100vh;
	background: #fbfdff;
    color: var(--text);
    font-family: "Segoe UI", Tahoma, Arial, sans-serif;
	display: flex;
    flex-direction: column;
}
img {
    max-width: 100%;
    height: auto;
}
a {
    color: inherit;
    text-decoration: none;
}
.page-content {
    flex: 1;
	padding: 16px 16px 28px;
}
.content-panel {
        background: #fff;
        border: 1px solid #d2d4d7;
        border-radius: 20px;
        box-shadow: 0 18px 10px rgba(15, 23, 42, 0.01);
        padding: 22px;
        margin-bottom: 28px;
    }

    .content-panel-title {
        margin-top: 0;
        margin-bottom: 30px;
        color: #5474a7af;
        font-size: 1.1rem;
    }
.content-panel h2 {
    margin: 0 0 18px;
    font-size: 1.5rem;
    color: #111827;
}
.content-panel p {
    margin: 0 0 16px;
    line-height: 1.6;
    color: #374151;
}
.form-grid {
    display: grid;
    gap: 16px;
}
.form-field {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.form-label {
    font-size: 0.92rem;
    color: #4b5563;
}
input[list],
input[type="text"],
input[type="number"],
input[type="email"],
input[type="tel"],
input[type="search"],
input[type="password"],
select,
textarea,
datalist {
    width: 100%;
    min-width: 0;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 10px 12px;
    font-size: 0.95rem;
    background: #fbfdff;
    color: var(--text);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
textarea {
    min-height: 110px;
    resize: vertical;
}
datalist option {
    background: #fbfdff;
    color: var(--text);
    padding: 8px 12px;
}
input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--link);
    box-shadow: 0 0 0 4px rgba(55,145,255,0.16);
}
button,
input[type="submit"],
input[type="button"],
input[type="reset"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 18px;
    border: none;
    border-radius: 12px;
    background: var(--link);
    color: white;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.15s ease;
}
button:hover,
input[type="submit"]:hover,
input[type="button"]:hover,
input[type="reset"]:hover {
    background: #1f6feb;
}
button:disabled,
input[type="submit"]:disabled,
input[type="button"]:disabled,
input[type="reset"]:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}
.small-button {
    padding: 10px 14px;
    font-size: 0.92rem;
}
.results-table {
        width: 100%;
        border-collapse: collapse;
        border: 1px solid #d2d4d7;
        border-radius: 16px;
        overflow: hidden;
        background: #fff;
        box-shadow: 0 16px 30px rgba(15, 23, 42, 0.06);
        margin-top: 10px;
    }
    .results-table th, .results-table td {
        padding: 12px;
        text-align: left;
        border-bottom: 1px solid #d2d4d7;
        border-right: 1px solid #d2d4d7;
    }
    .results-table th {
        background: #dbeafe;
        color: #111827;
        font-weight: 700;
    }
    .results-table tr:last-child td { border-bottom: none; }
    .results-table tbody tr:nth-child(even) { background: #edf3fca4; }

.results-table.plain {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border: 1px solid #d2d4d7;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 18px;
}
.results-table.plain thead {
    background: #f8fafc;
    border-bottom: 2px solid #d2d4d7;
}
.results-table.plain th {
    padding: 12px 16px;
    text-align: left;
    font-weight: 700;
    color: #475569;
    font-size: 0.95rem;
}
.results-table.plain td {
    padding: 12px 16px;
    border-bottom: 1px solid #e2e8f0;
    color: #111827;
    font-size: 0.95rem;
}
.results-table.plain tbody tr:hover {
    background: #f8fafc;
}

.order-summary {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 25px;
}
.order-summary h3 {
    margin-top: 0;
    color: #1e293b;
    border-bottom: 2px solid #3791ff;
    padding-bottom: 10px;
    font-size: 1.2rem;
}
.summary-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 15px;
}
.info-label {
    color: #5474a7af;
    margin-bottom: 5px;
}
.info-value {
    font-size: 1rem;
    color: #1e293b;
    margin-bottom: 10px;
    font-weight: 500;
}
.success-badge {
    display: inline-block;
    background: #dcfce7;
    color: #166534;
    padding: 5px 12px;
    border-radius: 20px;
    font-weight: bold;
    margin-bottom: 15px;
    font-size: 0.9rem;
}
.form-grid.wide-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}
.action-bar {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 20px;
}
.center-actions {
    text-align: center;
    margin-top: 24px;
}
.center-actions.compact {
    margin-top: 18px;
}
.mt-18 {
    margin-top: 18px;
}
.mt-24 {
    margin-top: 24px;
}
.mb-20 {
    margin-bottom: 20px;
}
.self-end {
    margin-top: auto;
}
.results-summary.alt {
    margin-bottom: 10px;
    color: #4b5563;
}
.delete-row {
    display: flex;
    gap: 12px;
    align-items: flex-end;
    justify-content: flex-end;
}
.form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}
.tables-row {
    display: flex;
    gap: 30px;
    align-items: flex-start;
    margin-bottom: 40px;
}
.tables-row .form-section {
    flex: 1;
    margin-bottom: 0;
}
.line-top {
    border-top: 1px solid #e2e8f0;
    padding-top: 20px;
}
.btn-row {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-top: 10px;
}
.input-350 {
    width: 350px;
}
.input-250 {
    width: 250px;
}
.textarea-500 {
    width: 500px;
}
.table-summary-row {
    background: #f8fafc;
    font-weight: bold;
}
.text-right {
    text-align: right;
}
.text-center {
    text-align: center;
}
.ml-auto {
    margin-left: auto;
}
.page-inner {
    padding: 16px 16px 24px;
}
.section-heading {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 15px;
}
.content-panel-title--strong {
    margin: 0 0 18px;
    font-size: 1.15rem;
    color: #111827;
    font-weight: 700;
}
.span-2 {
    grid-column: span 2;
}

.search-panel {
    background: #fff;
    border: 1px solid #d2d4d7;
    border-radius: 20px;
    box-shadow: 0 18px 10px rgba(15, 23, 42, 0.01);
    padding: 22px;
    margin-bottom: 28px;
}
.search-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
}
.search-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.search-field label {
    font-size: 0.9rem;
    color: #4b5563;
}
.search-field input,
.search-field datalist,
.search-field select {
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 8px 10px;
    font-size: 0.9rem;
    background: #fbfdff;
    color: #111827;
}
.search-actions {
    margin-top: 24px;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 12px;
}
.results-summary {
    margin: 0 0 18px;
    color: #374151;
    font-size: 1.2rem;
}
.status-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 12px;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 700;
}
.status-pill.green {
    background: #d1fae5;
    color: #166534;
}
.status-pill.blue {
    background: #dbeafe;
    color: #1d4ed8;
}
.status-pill.yellow {
    background: #fef3c7;
    color: #92400e;
}
.vidmova {
    color: #dc2626;
    font-weight: 600;
    text-align: center;
    font-size: 14px;
}
.pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 24px;
}
.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    padding: 10px 14px;
    border-radius: 999px;
    border: 1px solid #d1d5db;
    background: #fff;
    color: #111827;
    text-decoration: none;
    font-weight: 600;
}
.pagination a:hover {
    background: #f8fafc;
}
.pagination .active {
    background: #3791ff;
    color: #fff;
    border-color: #3791ff;
}
.pagination .disabled {
    opacity: 0.5;
    cursor: default;
}

input.small-input {
    width: auto;
    max-width: 120px;
}
.content-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
}
.site-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 24px;
    background: var(--panel);
    color: white;
}
.site-header .brand {
    display: flex;
    align-items: center;
    gap: 14px;
}
.site-header h1 {
    margin: 0;
    font-size: 22px;
    letter-spacing: 0.02em;
}
.site-header .user-actions {
    font-size: 0.95rem;
}
.site-header .user-actions a {
    color: #e9f1ff;
    padding: 10px 14px;
    border-radius: 8px;
    background: rgba(255,255,255,0.08);
}
.site-header .user-actions a:hover {
    background: rgba(255,255,255,0.16);
}
.main-nav {
    background: var(--panel);
    padding: 8px 16px;
}
.main-nav ul {
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    justify-content: center;
    gap: 10px;
}
.main-nav li {
    flex: 1 1 140px;
    text-align: center;
}
.main-nav a.menu {
    display: inline-block;
    width: 100%;
    padding: 12px 10px;
    border-radius: 10px;
    color: white;
    font-weight: 600;
    transition: transform 0.2s ease, background 0.2s ease;
}
.main-nav a.menu:hover {
    transform: translateY(-1px);
    background: #34495e;
}
.main-nav a.menu.active {
    background: #f39c12;
}
.site-footer {
    background: var(--panel);
    color: #d5dae3;
    text-align: center;
    padding: 20px 18px;
    font-size: 0.95rem;
}
.site-footer p {
    margin: 8px 0;
}
.site-footer a {
    color: var(--link);
}
.flex {
	display: flex;
}
.justify-center {
    justify-content: center;
}
.justify-end {
    justify-content: flex-end;
}
.align-center {
    align-items: center;
}
.flex-col {
    flex-direction: column;
}
.primary-button {
        background: #21a353!important;
        color: #fff;
        border: none;
        border-radius: 12px;
        padding: 12px 25px;
        font-size: 0.96rem;
        font-weight: 700;
        cursor: pointer;
    }

    .primary-button:hover {
        background: #1e7c45!important;
    }

	.details-button {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 4px 8px;
        border-radius: 8px;
        border: none;
        background: #3791ff;
        color: #fff;
        font-weight: 600;
        text-decoration: none;
        font-size: 0.85rem;
        cursor: pointer;
        transition: background 0.2s ease;
    }

    .details-button:hover {
        background: #1f6feb;
    }

    .primary-button.small, .details-button.small {
        padding: 5px 10px;
        font-size: 0.8rem;
        border-radius: 8px;
    }

	.primary-button.danger, .details-button.danger {
        background: #fee2e2!important;
		color:#b91c1c;
    }

	.primary-button.danger:hover, .details-button.danger:hover {
        background: #f8cccc!important;
    }

    .gap-8 {
		gap: 8px;
	}

	.gap-20 {
		gap: 20px;
	}
