/*
Theme Name: Zakaz
Theme URI: 
Author: 
Description: Тема для производственного портала
Version: 1.0
*/

body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #f0f2f5;
}

.site-header {
    background: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    padding: 15px 0;
    margin-bottom: 30px;
}

.site-header .container {
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.site-title {
    font-size: 24px;
    font-weight: bold;
    margin: 0;
}

.site-title a {
    color: #0073aa;
    text-decoration: none;
}

.site-nav a {
    margin-left: 20px;
    text-decoration: none;
    color: #333;
}

.site-nav a:hover {
    color: #0073aa;
}

.container {
    margin: 0 auto;
    padding: 0 20px;
}

.site-footer {
    background: #fff;
    text-align: center;
    padding: 20px;
    margin-top: 50px;
    border-top: 1px solid #ddd;
    color: #666;
}

/* ========================================== */
/* СТИЛИ ДЛЯ БЛОКА ЗАКАЗОВ НА ГЛАВНОЙ         */
/* ========================================== */

.pd-frontpage-orders {
    margin: 30px 0;
    padding: 25px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.pd-frontpage-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e9ecef;
}

.pd-frontpage-header h2 {
    margin: 0;
    font-size: 28px;
    color: #2c3e50;
}

.pd-frontpage-auth {
    display: flex;
    gap: 15px;
    align-items: center;
}

.pd-user-greeting {
    color: #6c757d;
    font-size: 16px;
}

.pd-button {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 15px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.pd-button-primary {
    background: #0073aa;
    color: #fff;
}

.pd-button-primary:hover {
    background: #005a87;
    color: #fff;
}

.pd-button-secondary {
    background: #6c757d;
    color: #fff;
}

.pd-button-secondary:hover {
    background: #5a6268;
    color: #fff;
}

.pd-frontpage-table-wrapper {
    overflow-x: auto;
}

.pd-frontpage-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 16px;
}

.pd-frontpage-table th,
.pd-frontpage-table td {
    padding: 14px 12px;
    text-align: left;
    border-bottom: 1px solid #e9ecef;
}

.pd-frontpage-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #495057;
    white-space: nowrap;
    font-size: 16px;
}

.pd-frontpage-table tbody tr:hover {
    background: #f8f9fa;
}

.pd-counter {
    width: 50px;
    text-align: center;
    font-weight: 600;
    color: #6c757d;
    font-size: 16px;
}

.pd-urgent {
    font-weight: 600;
    font-size: 16px;
}

.pd-overdue {
    font-weight: 700;
    text-decoration: line-through;
    font-size: 16px;
}

.pd-days-left {
    display: inline-block;
    margin-left: 8px;
    font-size: 13px;
    background: #ffe5e5;
    padding: 2px 8px;
    border-radius: 10px;
}

.pd-overdue-label {
    display: inline-block;
    margin-left: 8px;
    font-size: 13px;
    color: #fff;
    background: #dc3545;
    padding: 2px 8px;
    border-radius: 10px;
}

.pd-priority-high {
    background: #dc3545;
    color: #fff;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 14px;
    display: inline-block;
}

.pd-priority-medium {
    background: #ffc107;
    color: #212529;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 14px;
    display: inline-block;
}

.pd-priority-low {
    background: #28a745;
    color: #fff;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 14px;
    display: inline-block;
}

.pd-frontpage-footer {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #e9ecef;
    text-align: right;
}

.pd-total-count {
    font-size: 15px;
    color: #6c757d;
}

.pd-empty-orders {
    text-align: center;
    padding: 50px;
    color: #6c757d;
    font-size: 18px;
}

.pd-frontpage-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e9ecef;
}

.pd-frontpage-header h2 {
    margin: 0;
    font-size: 28px;
    color: #2c3e50;
}

.pd-frontpage-auth {
    display: flex;
    gap: 15px;
    align-items: center;
}

.pd-user-greeting {
    color: #6c757d;
    font-size: 16px;
}

.pd-button {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 15px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.pd-button-primary {
    background: #0073aa;
    color: #fff;
}

.pd-button-primary:hover {
    background: #005a87;
    color: #fff;
}

.pd-button-secondary {
    background: #6c757d;
    color: #fff;
}

.pd-button-secondary:hover {
    background: #5a6268;
    color: #fff;
}
