.workplace-search-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 24px;
}

.workplace-search-stage {
    max-width: 1180px;
    margin: 0 auto;
}

.workplace-search-form,
.workplace-results-preview,
.section-placeholder {
    border: 1px solid #dbe3ec;
    border-radius: 8px;
    background: #fbfdff;
}

.workplace-search-form {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.9fr);
    gap: 18px 20px;
    align-items: start;
    padding: 20px;
}

.workplace-search-form fieldset {
    padding: 0;
    margin: 0;
    border: 0;
}

.workplace-search-form legend {
    width: auto;
    margin-bottom: 12px;
    border: 0;
    color: #1f2933;
    font-size: 15px;
    font-weight: 700;
}

.workplace-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.workplace-form-grid label,
.account-month-control {
    display: block;
    margin: 0;
    color: #52616b;
    font-size: 12px;
    font-weight: 700;
}

.workplace-form-wide {
    grid-column: 1 / -1;
}

.workplace-form-grid span,
.account-month-control span {
    display: block;
    margin-bottom: 6px;
}

.workplace-form-grid .workplace-advanced-switch {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 7px;
    align-self: end;
    width: max-content;
    max-width: 100%;
    height: 36px;
    min-height: 36px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.workplace-form-grid .workplace-advanced-switch input[type="checkbox"] {
    width: 14px;
    height: 14px;
    padding: 0;
    margin: 0;
    border: 1px solid #98a9b8;
    border-radius: 3px;
    accent-color: #0063B0;
    box-shadow: none;
}

.workplace-advanced-switch span {
    margin: 0;
    color: #334e68;
    font-size: 12px;
    line-height: 14px;
    white-space: nowrap;
}

.workplace-form-grid input,
.workplace-form-grid select,
.account-month-control select {
    width: 100%;
    height: 36px;
    padding: 7px 10px;
    border: 1px solid #c6d3df;
    border-radius: 6px;
    background: #fff;
    color: #1f2933;
    font-size: 14px;
    line-height: 20px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.workplace-form-grid input:focus,
.workplace-form-grid select:focus,
.account-month-control select:focus {
    border-color: #0063B0;
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 99, 176, 0.14);
}

.workplace-advanced-fields {
    grid-column: 1 / -1;
    padding-top: 16px !important;
    border-top: 1px solid #e5ebf1 !important;
}

.workplace-alt-search {
    grid-column: 1 / -1;
    padding: 16px 0 0;
    margin-top: 4px;
    border-top: 1px solid #e5ebf1;
}

.workplace-alt-search label {
    display: block;
    margin: 0;
    color: #52616b;
    font-size: 12px;
    font-weight: 700;
}

.workplace-alt-search label span {
    display: block;
    margin-bottom: 6px;
}

.workplace-alt-search input {
    width: 100%;
    height: 38px;
    padding: 7px 10px;
    border: 1px solid #c6d3df;
    border-radius: 6px;
    background: #fff;
    color: #1f2933;
    font-size: 14px;
}

.workplace-alt-search input:focus {
    border-color: #0063B0;
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 99, 176, 0.14);
}

.workplace-alt-search small {
    display: block;
    margin-top: 7px;
    color: #6b7c8f;
    font-size: 12px;
    line-height: 1.4;
}

.workplace-form-actions,
.account-toolbar-actions,
.account-action-buttons {
    display: flex;
    align-items: center;
    gap: 10px;
}

.workplace-form-actions {
    grid-column: 1 / -1;
    justify-content: flex-end;
    padding-top: 4px;
}

.workplace-btn,
.workplace-icon-btn,
.workplace-icon-action {
    border: 0;
    border-radius: 6px;
    font-weight: 700;
    transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.workplace-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    padding: 6px 10px;
    font-size: 12px;
    line-height: 16px;
    white-space: nowrap;
}

.workplace-btn .glyphicon {
    margin-right: 5px;
    color: currentColor;
}

.workplace-btn_primary {
    background: #0063B0;
    color: #fff;
}

.workplace-btn_secondary {
    background: #e7f2fb;
    color: #0063B0;
}

.workplace-btn_accent {
    background: #e66a00;
    color: #fff;
}

.workplace-btn_muted {
    background: #eef3f7;
    color: #52616b;
}

.workplace-btn:hover,
.workplace-icon-btn:hover,
.workplace-icon-action:hover {
    box-shadow: 0 6px 16px rgba(31, 41, 51, 0.14);
    transform: translateY(-1px);
}

.workplace-btn_primary:hover {
    background: #004f8d;
    color: #fff;
}

.workplace-btn_secondary:hover {
    background: #d5eafa;
    color: #004f8d;
}

.workplace-btn_accent:hover {
    background: #c75800;
    color: #fff;
}

.workplace-btn_muted:hover {
    background: #e1e9f0;
    color: #1f2933;
}

.workplace-btn:disabled,
.workplace-icon-btn:disabled,
.workplace-icon-action:disabled {
    cursor: not-allowed;
    opacity: 0.55;
    box-shadow: none;
    transform: none;
}

.workplace-btn:focus,
.workplace-icon-btn:focus,
.workplace-icon-action:focus,
.demo-header-back:focus,
.account-tabs button:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 99, 176, 0.22);
}

.workplace-results-preview {
    min-width: 0;
    padding: 18px;
}

.workplace-results-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.workplace-results-header h3 {
    margin: 0;
    color: #1f2933;
    font-size: 16px;
    font-weight: 700;
}

.workplace-results-header span,
.workplace-note {
    color: #6b7c8f;
    font-size: 12px;
}

.workplace-table-wrap {
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-x: contain;
    border: 1px solid #dbe3ec;
    border-radius: 6px;
    background: #fff;
}

.workplace-table {
    width: 100%;
    min-width: 860px;
    margin: 0;
    border-collapse: collapse;
    font-size: 13px;
}

.workplace-table_history {
    min-width: 720px;
}

.workplace-table th,
.workplace-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #e6edf3;
    vertical-align: middle;
}

.workplace-table .workplace-action-col {
    width: 78px;
    text-align: center;
}

.workplace-table th {
    background: #eef5fb;
    color: #334e68;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.workplace-table tr:last-child td {
    border-bottom: 0;
}

.workplace-icon-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    background: #00a99d;
    color: #fff;
    font-size: 12px;
    line-height: 1;
}

.workplace-icon-action_warning {
    background: #b7791f;
}

.payments-table .workplace-action-col {
    width: 92px;
}

.payments-table td.workplace-action-col {
    display: flex;
    justify-content: center;
    gap: 6px;
}

.workplace-note {
    margin: 12px 0 0;
}

.workplace-empty-state {
    padding: 42px 20px;
    border: 1px dashed #c6d3df;
    border-radius: 6px;
    background: #fff;
    color: #52616b;
    text-align: center;
}

.workplace-empty-state .glyphicon {
    display: block;
    margin-bottom: 12px;
    color: #0063B0;
    font-size: 28px;
}

.workplace-empty-state strong {
    display: block;
    color: #1f2933;
    font-size: 15px;
}

.workplace-empty-state p {
    margin: 6px 0 0;
    font-size: 13px;
}

