@import url(//fonts.googleapis.com/css?family=Ubuntu);

body {
    margin:0;
    padding:0;
    font-family:helvetica, sans-serif;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5 , h6 {
    font-family: 'Ubuntu', sans-serif; font-weight:normal;
}

h1 { font-size: 48px; }
h2 { font-size: 36px; }
h3 { font-size: 24px; }

a {
    text-decoration:none;
    color: #000;
}

a.button, input[type="submit"] {
    color:#fff;
    background:#303030;
    border-radius:4px;
    padding:10px 20px;
    font-size:14px;
    border:0;
    margin: 15px 0 15px 0;
}

a.button.light {
    color:#666;
    background:#ededed;
}

.text-left { text-align:left; }
.text-right { text-align:right; }

table {
    width:100%;
    border-spacing:0;
    border-collapse: collapse;
}

table th, table td {
    text-align:left;
    font-size:14px;
    padding:10px;
    margin:0;
}

tbody tr:nth-child(odd) { background:#efefef; }
tbody tr.subtotal { background:#ccc; }
thead th, tbody tr.total {
    background:#313131;
    color:#fff;
    font-weight:bold;
}

.neg { color:#dc1616; }

.container {
    max-width: 1300px;
    box-sizing: border-box;
    margin: 0 auto;
    margin-top: 40px;
}

#content {
    padding:0 100px;
    overflow:hidden;
}

/* Сообщения */
.messages-container {
    max-width: 1300px;
    margin: 10px auto;
    padding: 0 20px;
}

.alert {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 10px;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.alert-icon { margin-right: 12px; font-size: 20px; }

.alert-success {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    color: #155724;
    border-left: 4px solid #28a745;
}

.alert-warning {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    color: #856404;
    border-left: 4px solid #ff9f43;
}

.alert-error, .alert-danger {
    background: linear-gradient(135deg, #f8d7da 0%, #f5b7b7 100%);
    color: #721c24;
    border-left: 4px solid #dc3545;
}

.alert-info {
    background: linear-gradient(135deg, #d1ecf1 0%, #bee5eb 100%);
    color: #0c5460;
    border-left: 4px solid #17a2b8;
}

.alert-close {
    margin-left: auto;
    background: none;
    border: none;
    font-size: 28px;
    color: inherit;
    cursor: pointer;
    padding: 0 5px;
    line-height: 1;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.alert-close:hover { opacity: 1; }

.status-paid { color: green; font-weight: bold; }
.status-unpaid { color: red; font-weight: bold; }

.pagination {
    display: flex;
    justify-content: center;
    margin: 30px 0;
    flex-wrap: wrap;
}

.page-item { margin: 0 3px; }

.page-link {
    padding: 8px 14px;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #007bff;
    text-decoration: none;
}

.page-link:hover {
    background-color: #f8f9fa;
    color: #0056b3;
}

.page-item.active .page-link {
    background-color: #007bff;
    color: white;
    border-color: #007bff;
}

.page-item.disabled .page-link {
    color: #6c757d;
    pointer-events: none;
}

.btn {
    padding: 10px 25px;
    border-radius: 6px;
    font-weight: 500;
}