/* ===== Manager CRM ===== */

.manager-page {
    padding: 60px 0 80px;
    min-height: 70vh;
    background: #f4f7fa;
}

/* Login */
.manager-login-wrap {
    max-width: 400px;
    margin: 0 auto;
    background: #fff;
    border: 1px solid #e5e9ef;
    border-radius: 12px;
    padding: 40px;
}
.manager-login-wrap__title {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 24px;
    text-align: center;
    color: #1a2332;
}
.manager-login-wrap #loginform label { font-size: 14px; font-weight: 600; display: block; margin-bottom: 4px; }
.manager-login-wrap #loginform .input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d0d5dd;
    border-radius: 8px;
    font-size: 15px;
    box-sizing: border-box;
    margin-bottom: 14px;
    font-family: inherit;
}
.manager-login-wrap #loginform .input:focus { border-color: #92afc4; outline: none; }
.manager-login-wrap #loginform .submit { margin-top: 4px; }
.manager-login-wrap #loginform .submit .button-primary {
    background: #92afc4;
    border-color: #92afc4;
    color: #fff;
    padding: 11px 24px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    box-shadow: none;
    transition: background 0.2s;
}
.manager-login-wrap #loginform .submit .button-primary:hover { background: #7a9ab0; border-color: #7a9ab0; }

/* Header */
.mgr-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 24px;
    background: #fff;
    border: 1px solid #e5e9ef;
    border-radius: 12px;
    padding: 20px 24px;
}
.mgr-title {
    font-size: 24px;
    font-weight: 700;
    margin: 0;
    color: #1a2332;
}
.mgr-header__right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.mgr-count {
    font-size: 14px;
    color: #888;
}

/* Buttons */
.mgr-btn {
    padding: 10px 20px;
    border-radius: 8px;
    border: 1px solid #d0d5dd;
    background: #fff;
    color: #444;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    line-height: 1.2;
    white-space: nowrap;
}
.mgr-btn:hover { border-color: #92afc4; color: #92afc4; background: #f0f6fa; }
.mgr-btn--primary { background: #92afc4; border-color: #92afc4; color: #fff; }
.mgr-btn--primary:hover { background: #7a9ab0; border-color: #7a9ab0; color: #fff; }
.mgr-btn--danger { border-color: #e5595b; color: #e5595b; }
.mgr-btn--danger:hover { background: #e5595b; border-color: #e5595b; color: #fff; }
.mgr-btn--sm { padding: 6px 12px; font-size: 13px; }
.mgr-btn--logout { color: #888; border-color: #ddd; text-decoration: none; }
.mgr-btn--logout:hover { color: #e5595b; border-color: #e5595b; background: #fde8e8; }

/* Form */
.mgr-form-wrap {
    background: #fff;
    border: 1px solid #e5e9ef;
    border-radius: 12px;
    padding: 28px 28px 24px;
    margin-bottom: 20px;
}
.mgr-form-title {
    font-size: 17px;
    font-weight: 700;
    margin: 0 0 20px;
    color: #1a2332;
}
.mgr-form__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 20px;
}
.mgr-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 13px;
    color: #555;
    font-weight: 600;
}
.mgr-field input,
.mgr-field select {
    padding: 10px 12px;
    border: 1px solid #d0d5dd;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s;
    background: #fff;
    color: #333;
}
.mgr-field input:focus,
.mgr-field select:focus { border-color: #92afc4; }
.mgr-form__actions { display: flex; gap: 10px; }

/* Filters */
.mgr-filters {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}
.mgr-filter-btn {
    padding: 7px 18px;
    border-radius: 20px;
    border: 1px solid #d0d5dd;
    background: #fff;
    color: #555;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}
.mgr-filter-btn:hover { border-color: #92afc4; color: #92afc4; }
.mgr-filter-btn.is-active { background: #92afc4; border-color: #92afc4; color: #fff; }

/* Table */
.mgr-table-wrap {
    background: #fff;
    border: 1px solid #e5e9ef;
    border-radius: 12px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.mgr-table {
    width: 100%;
    min-width: 600px;
    border-collapse: collapse;
    font-size: 14px;
}
.mgr-table thead th {
    background: #f4f7fa;
    padding: 11px 16px;
    text-align: left;
    font-size: 11px;
    font-weight: 700;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid #e5e9ef;
}
.mgr-th--sort {
    cursor: pointer;
    user-select: none;
    white-space: nowrap;
}
.mgr-th--sort::after {
    content: ' ↑';
    opacity: 0.25;
    font-size: 10px;
}
.mgr-th--sort:hover { color: #555; }
.mgr-th--sort:hover::after { opacity: 0.5; }
.mgr-th--sort.is-sort-active { color: #1a2332; }
.mgr-th--sort.is-sort-active::after { opacity: 1; color: #92afc4; }
.mgr-table tbody tr { border-bottom: 1px solid #f0f2f5; transition: background 0.12s; }
.mgr-table tbody tr:last-child { border-bottom: none; }
.mgr-table tbody tr:hover { background: #f8fafc; }
.mgr-table td { padding: 11px 16px; color: #333; vertical-align: middle; }
.mgr-actions { white-space: nowrap; text-align: right; }

/* Status badges */
.mgr-status {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}
.mgr-status--free     { background: #e6f7ee; color: #1a7a45; }
.mgr-status--reserved { background: #fff8e1; color: #b56a00; }
.mgr-status--sold     { background: #fde8e8; color: #c0392b; }

/* Empty state */
.mgr-empty {
    padding: 48px;
    text-align: center;
    color: #bbb;
    font-size: 15px;
}

/* Responsive */
@media (max-width: 768px) {
    .mgr-form__grid { grid-template-columns: 1fr 1fr; }
    .mgr-table { font-size: 13px; }
    .mgr-table td, .mgr-table thead th { padding: 10px 10px; }
}
@media (max-width: 480px) {
    .mgr-form__grid { grid-template-columns: 1fr; }
    .mgr-header { flex-direction: column; align-items: flex-start; }
    .mgr-header__right { width: 100%; }
}
