/**
 * Public styles - Calendar
 *
 * All styles are scoped to .ict-rc-wrapper to prevent theme conflicts.
 *
 * @package ICT_Reservation_Calendar
 */

.ict-rc-wrapper {
    --ict-rc-primary-color: #5CAD0D;
    --ict-rc-reserved-color: #8e8e93;
    --ict-rc-selected-color: #1d1d1f;
    --ict-rc-text-color: #1d1d1f;
    --ict-rc-text-light: #86868b;
    --ict-rc-border-color: #d2d2d7;
    --ict-rc-bg-light: #f5f5f7;
    --ict-rc-white: #fff;
    --ict-rc-header-bg: #1d1d1f;

    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    font-size: 16px;
    line-height: 1.5;
    color: var(--ict-rc-text-color);
    box-sizing: border-box;
}

.ict-rc-wrapper *,
.ict-rc-wrapper *::before,
.ict-rc-wrapper *::after {
    box-sizing: border-box;
}

/* Kalendarz chwilowo niedostępny – widoczny, wyszarzony, nieaktywny */
.ict-rc-wrapper.ict-rc-calendar-unavailable {
    position: relative;
}

.ict-rc-wrapper.ict-rc-calendar-unavailable .ict-rc-calendar-panel {
    opacity: 0.5;
    filter: grayscale(0.4);
    pointer-events: none;
}

.ict-rc-wrapper .ict-rc-calendar-body .ict-rc-calendar-unavailable-message {
    margin: 10px 0 -10px 0;
    padding: 0;
    font-size: 18px;
    font-weight: 500;
    color: var(--ict-rc-text-color);
    text-align: center;
}

.ict-rc-wrapper .ict-rc-location-selector {
    margin-bottom: 20px;
}

.ict-rc-wrapper .ict-rc-location-selector .ict-rc-label {
    display: block;
    font-size: 16px;
    font-weight: 500;
    color: var(--ict-rc-text-color);
    margin-bottom: 8px;
    padding: 0;
    background: none;
    border: none;
}

.ict-rc-wrapper .ict-rc-location-select {
    width: 100%;
    max-width: 300px;
    padding: 12px 40px 12px 16px;
    font-size: 18px;
    border: 1px solid var(--ict-rc-border-color);
    border-radius: 10px;
    background-color: var(--ict-rc-white);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%231d1d1f' d='M6 8L2 4h8z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 12px;
    color: var(--ict-rc-text-color);
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

.ict-rc-wrapper .ict-rc-location-select:focus {
    outline: none;
    border-color: var(--ict-rc-primary-color);
}

.ict-rc-wrapper .ict-rc-container {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .ict-rc-wrapper .ict-rc-container {
        flex-direction: column-reverse;
    }
}

.ict-rc-wrapper .ict-rc-form-panel {
    flex: 1;
    min-width: 300px;
    background: var(--ict-rc-white);
    border-radius: 10px;
    overflow: hidden;
    border: none;
    box-shadow: none;
}

.ict-rc-wrapper .ict-rc-form-header {
    background: var(--ict-rc-header-bg);
    color: var(--ict-rc-white);
    padding: 16px 20px;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.5px;
    border-radius: 10px;
    text-align: center;
    margin: 0;
    border: none;
}

.ict-rc-wrapper .ict-rc-form-body {
    padding: 15px 0 0;
}

.ict-rc-wrapper .ict-rc-form-info {
    margin-bottom: 15px;
}

.ict-rc-wrapper .ict-rc-info-row {
    margin-bottom: 10px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--ict-rc-border-color);
}

.ict-rc-wrapper .ict-rc-info-row:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.ict-rc-wrapper .ict-rc-info-label {
    display: block;
    font-size: 16px;
    color: var(--ict-rc-text-light);
    margin-bottom: 4px;
    padding: 0;
    background: none;
    border: none;
    font-weight: 400;
}

.ict-rc-wrapper .ict-rc-info-value {
    font-size: 18px;
    color: var(--ict-rc-text-color);
    margin: 0;
    padding: 0;
}

.ict-rc-wrapper .ict-rc-info-value .ict-rc-info-name {
    display: block;
    font-weight: 600;
    font-size: 18px;
    color: var(--ict-rc-text-color);
}

.ict-rc-wrapper .ict-rc-info-value .ict-rc-info-address {
    display: block;
    font-size: 16px;
    color: var(--ict-rc-text-light);
    margin-top: 2px;
    font-weight: 400;
}

.ict-rc-wrapper .ict-rc-form-fields {
    margin-bottom: 24px;
}

.ict-rc-wrapper .ict-rc-field-group {
    margin-bottom: 5px;
}

.ict-rc-wrapper .ict-rc-field-group:last-child {
    margin-bottom: 0;
}

.ict-rc-wrapper .ict-rc-field-group .ict-rc-field-label {
    display: block;
    font-size: 16px;
    color: var(--ict-rc-text-light);
    margin-bottom: 6px;
    padding: 0;
    background: none;
    border: none;
    font-weight: 400;
}

.ict-rc-wrapper .ict-rc-field-group .ict-rc-input {
    width: 100%;
    padding: 12px 16px;
    font-size: 18px;
    border: none;
    border-radius: 10px;
    background: #E9E9E9;
    color: var(--ict-rc-text-color);
    box-sizing: border-box;
    margin: 0;
    font-family: inherit;
    line-height: 1.5;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

.ict-rc-wrapper .ict-rc-field-group .ict-rc-input:focus {
    outline: none;
}

.ict-rc-wrapper .ict-rc-field-group .ict-rc-input.ict-rc-field-error {
    border: 1px solid #ff3b30;
}

.ict-rc-wrapper .ict-rc-confirmation-box {
    background: var(--ict-rc-primary-color);
    border-radius: 10px;
    padding: 30px 20px;
    text-align: center;
    color: var(--ict-rc-white);
    border: none;
    box-shadow: none;
}

.ict-rc-wrapper .ict-rc-confirmation-text {
    margin: 0 0 12px;
    padding: 0;
    font-size: 18px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--ict-rc-white);
    background: none;
    border: none;
}

.ict-rc-wrapper .ict-rc-confirmation-phone {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 22px;
    font-weight: 600;
    color: var(--ict-rc-white);
    text-decoration: none;
    margin-bottom: 25px;
    background: none;
    border: none;
    padding: 0;
}

.ict-rc-wrapper .ict-rc-confirmation-phone:hover {
    color: var(--ict-rc-white);
    opacity: 0.9;
    text-decoration: none;
}

.ict-rc-wrapper .ict-rc-phone-icon-img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    background: #fff;
    padding: 9px;
    border-radius: 6px;
    border: none;
    box-shadow: none;
}

.ict-rc-wrapper .ict-rc-submit-btn {
    display: inline-block;
    padding: 12px 42px;
    font-size: 16px;
    font-weight: 400;
    color: #fff;
    background: #111;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: opacity 0.2s ease;
    font-family: inherit;
    line-height: 1.5;
    text-decoration: none;
    text-align: center;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    box-shadow: none;
    outline: none;
}

.ict-rc-wrapper .ict-rc-submit-btn:hover,
.ict-rc-wrapper .ict-rc-submit-btn:focus,
.ict-rc-wrapper .ict-rc-submit-btn:active {
    opacity: 0.9;
    color: #fff;
    background: #111;
    text-decoration: none;
    border: none;
    box-shadow: none;
    outline: none;
}

.ict-rc-wrapper .ict-rc-submit-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #111;
}

.ict-rc-wrapper .ict-rc-calendar-panel {
    width: 400px;
    background: #E9E9E9;
    border-radius: 10px;
    overflow: hidden;
    height: 100%;
    padding: 0 0 10px;
    border: none;
    box-shadow: none;
}

@media (max-width: 768px) {
    .ict-rc-wrapper .ict-rc-calendar-panel {
        width: 100%;
    }
}

.ict-rc-wrapper .ict-rc-calendar-header {
    background: var(--ict-rc-header-bg);
    color: var(--ict-rc-white);
    padding: 16px 20px;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-align: center;
    margin: 0;
    border: none;
}

.ict-rc-wrapper .ict-rc-calendar-body {
    padding: 20px;
}

.ict-rc-wrapper .ict-rc-calendar-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
}

.ict-rc-wrapper .ict-rc-nav-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    cursor: pointer;
    border-radius: 10px;
    transition: background-color 0.2s ease;
    padding: 0;
    margin: 0;
    font-family: inherit;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    box-shadow: none;
    outline: none;
}

.ict-rc-wrapper .ict-rc-nav-btn:hover,
.ict-rc-wrapper .ict-rc-nav-btn:focus,
.ict-rc-wrapper .ict-rc-nav-btn:active {
    background: var(--ict-rc-bg-light);
    border: none;
    box-shadow: none;
    outline: none;
}

.ict-rc-wrapper .ict-rc-arrow-left,
.ict-rc-wrapper .ict-rc-arrow-right {
    font-size: 25px;
    line-height: 1;
    color: var(--ict-rc-text-color);
}

.ict-rc-wrapper .ict-rc-arrow-left::before {
    content: "⭠";
}

.ict-rc-wrapper .ict-rc-arrow-right::before {
    content: "⭢";
}

.ict-rc-wrapper .ict-rc-current-month {
    font-size: 18px;
    font-weight: 600;
    color: var(--ict-rc-text-color);
    margin: 0;
    padding: 0;
}

.ict-rc-wrapper .ict-rc-calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    margin-bottom: 8px;
}

.ict-rc-wrapper .ict-rc-weekday {
    text-align: center;
    font-size: 14px;
    font-weight: 400;
    color: var(--ict-rc-text-light);
    padding: 8px 0;
    margin: 0;
    background: none;
    border: none;
}

.ict-rc-wrapper .ict-rc-calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
}

.ict-rc-wrapper .ict-rc-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 400;
    color: var(--ict-rc-text-color);
    background: var(--ict-rc-white);
    border: 1px solid var(--ict-rc-border-color);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    margin: 0;
    padding: 0;
    text-decoration: none;
    box-shadow: none;
}

.ict-rc-wrapper .ict-rc-day:hover:not(.ict-rc-day-empty):not(.ict-rc-day-unavailable):not(.ict-rc-day-reserved) {
    background-color: var(--ict-rc-primary-color);
    border-color: var(--ict-rc-primary-color);
    color: #fff;
}

.ict-rc-wrapper .ict-rc-day.ict-rc-day-empty {
    background: transparent;
    border-color: transparent;
    cursor: default;
}

.ict-rc-wrapper .ict-rc-day.ict-rc-day-unavailable {
    background: var(--ict-rc-bg-light);
    color: var(--ict-rc-text-light);
    border-radius: 6px;
    cursor: not-allowed;
}

.ict-rc-wrapper .ict-rc-day.ict-rc-day-reserved {
    background: var(--ict-rc-reserved-color);
    border-color: var(--ict-rc-reserved-color);
    color: var(--ict-rc-white);
    border-radius: 10px;
    cursor: not-allowed;
}

.ict-rc-wrapper .ict-rc-day.ict-rc-day-available {
    background: transparent;
    border: 1px solid #111111;
    border-radius: 6px;
    color: var(--ict-rc-text-color);
}

.ict-rc-wrapper .ict-rc-day.ict-rc-day-selected {
    background-color: var(--ict-rc-primary-color);
    border-color: var(--ict-rc-primary-color);
    color: #fff;
}

.ict-rc-wrapper .ict-rc-day.ict-rc-day-range {
    background-color: var(--ict-rc-primary-color);
    border-color: var(--ict-rc-primary-color);
    color: #fff;
}

.ict-rc-wrapper .ict-rc-day-info {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 14px;
    height: 14px;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 50%;
    color: var(--ict-rc-white);
    margin: 0;
    padding: 0;
}

.ict-rc-wrapper .ict-rc-reserve-btn,
.ict-rc-wrapper .ict-rc-change-date-btn,
.ict-rc-wrapper .ict-rc-accept-date-btn {
    width: 100%;
    padding: 14px 20px;
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 0.5px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: opacity 0.2s ease;
    margin-top: 20px;
    font-family: inherit;
    line-height: 1.5;
    text-decoration: none;
    text-align: center;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    box-shadow: none;
    outline: none;
}

.ict-rc-wrapper .ict-rc-reserve-btn {
    background: var(--ict-rc-primary-color);
    color: var(--ict-rc-white);
}

.ict-rc-wrapper .ict-rc-reserve-btn:hover:not(:disabled),
.ict-rc-wrapper .ict-rc-reserve-btn:focus:not(:disabled),
.ict-rc-wrapper .ict-rc-reserve-btn:active:not(:disabled) {
    opacity: 0.9;
    color: var(--ict-rc-white);
    background: var(--ict-rc-primary-color);
    text-decoration: none;
    border: none;
    box-shadow: none;
    outline: none;
}

.ict-rc-wrapper .ict-rc-reserve-btn:disabled {
    background: var(--ict-rc-reserved-color);
    cursor: not-allowed;
    opacity: 1;
}

.ict-rc-wrapper .ict-rc-change-date-btn {
    background: var(--ict-rc-header-bg);
    color: var(--ict-rc-white);
    font-weight: 400;
}

.ict-rc-wrapper .ict-rc-change-date-btn:hover,
.ict-rc-wrapper .ict-rc-change-date-btn:focus,
.ict-rc-wrapper .ict-rc-change-date-btn:active {
    opacity: 0.9;
    color: var(--ict-rc-white);
    background: var(--ict-rc-header-bg);
    text-decoration: none;
    border: none;
    box-shadow: none;
    outline: none;
}

.ict-rc-wrapper .ict-rc-change-date-hint {
    margin-top: 10px;
    padding: 10px 14px;
    font-size: 13px;
    color: var(--ict-rc-text-color);
    background: var(--ict-rc-bg-light);
    border-radius: 10px;
    text-align: center;
    border: none;
    box-shadow: none;
}

.ict-rc-wrapper .ict-rc-accept-date-btn {
    background: var(--ict-rc-primary-color);
    color: var(--ict-rc-white);
}

.ict-rc-wrapper .ict-rc-accept-date-btn:hover,
.ict-rc-wrapper .ict-rc-accept-date-btn:focus,
.ict-rc-wrapper .ict-rc-accept-date-btn:active {
    opacity: 0.9;
    color: var(--ict-rc-white);
    background: var(--ict-rc-primary-color);
    text-decoration: none;
    border: none;
    box-shadow: none;
    outline: none;
}

.ict-rc-wrapper.ict-rc-calendar-standalone {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
}

.ict-rc-wrapper.ict-rc-calendar-only .ict-rc-container {
    justify-content: center;
}

.ict-rc-wrapper .ict-rc-hidden {
    display: none;
}

.ict-rc-wrapper .ict-rc-success-message {
    text-align: center;
    padding: 60px 40px;
    background: var(--ict-rc-primary-color);
    border-radius: 10px;
    border: none;
    box-shadow: none;
}

.ict-rc-wrapper .ict-rc-success-message .ict-rc-success-title {
    margin: 0 0 12px;
    padding: 0;
    font-size: 22px;
    font-weight: 600;
    color: var(--ict-rc-white);
    background: none;
    border: none;
}

.ict-rc-wrapper .ict-rc-success-message .ict-rc-success-text {
    margin: 0;
    padding: 0;
    font-size: 18px;
    color: var(--ict-rc-white);
    background: none;
    border: none;
}

.ict-rc-wrapper .ict-rc-error {
    padding: 20px;
    background: #fff5f5;
    border: 1px solid #ffcdd2;
    border-radius: 10px;
    color: #c62828;
    text-align: center;
    margin: 0;
}

.ict-rc-wrapper .ict-rc-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    color: var(--ict-rc-text-light);
    grid-column: 1 / -1;
}

.ict-rc-wrapper .ict-rc-loading::after {
    content: "";
    display: block;
    width: 30px;
    height: 30px;
    border: 3px solid var(--ict-rc-border-color);
    border-top-color: var(--ict-rc-primary-color);
    border-radius: 50%;
    animation: ict-rc-spin 0.8s linear infinite;
}

@keyframes ict-rc-spin {
    to {
        transform: rotate(360deg);
    }
}

.ict-rc-wrapper .ict-rc-alert-message {
    margin-top: 10px;
    padding: 10px 16px;
    background: #ff3b30;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    border-radius: 10px;
    border: none;
    box-shadow: none;
}

.ict-rc-wrapper .ict-rc-alert-message.ict-rc-hidden {
    display: none;
}

/* Strona zarządzania [ict_rc_management] – niezależna od motywu */
.ict-rc-wrapper.ict-rc-management {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    font-size: 16px;
    line-height: 1.5;
    color: #1d1d1f;
    box-sizing: border-box;
}

.ict-rc-wrapper.ict-rc-management *,
.ict-rc-wrapper.ict-rc-management *::before,
.ict-rc-wrapper.ict-rc-management *::after {
    box-sizing: border-box;
}

/* Reset klas motywu (np. .wrap) wewnątrz zarządzania */
.ict-rc-wrapper.ict-rc-management .wrap {
    margin: 0;
    padding: 0;
    max-width: none;
    background: none;
    border: none;
    box-shadow: none;
}

/* Elementy formularzy – jawne style, bez dziedziczenia z motywu */
.ict-rc-wrapper.ict-rc-management button,
.ict-rc-wrapper.ict-rc-management input,
.ict-rc-wrapper.ict-rc-management select,
.ict-rc-wrapper.ict-rc-management textarea {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    font-size: 16px;
    line-height: 1.5;
    color: #1d1d1f;
    margin: 0;
}

.ict-rc-wrapper.ict-rc-management label {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    font-size: 16px;
    font-weight: 500;
    color: #1d1d1f;
    margin: 0;
    padding: 0;
    background: none;
    border: none;
}

.ict-rc-wrapper.ict-rc-management table {
    border-collapse: collapse;
    border-spacing: 0;
    border: none;
    outline: none;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    font-size: 14px;
    color: #1d1d1f;
}

/* Brak ciemnych linii z motywu – tabela i pierwszy wiersz/kolumna */
.ict-rc-wrapper.ict-rc-management .ict-rc-table-wrapper {
    outline: none;
    box-shadow: none;
}

.ict-rc-wrapper.ict-rc-management .ict-rc-table th,
.ict-rc-wrapper.ict-rc-management .ict-rc-table td {
    border-top: none;
    border-left: none;
}

.ict-rc-wrapper.ict-rc-management .ict-rc-table thead th {
    border-top: none;
}

.ict-rc-wrapper.ict-rc-management .ict-rc-table th:first-child,
.ict-rc-wrapper.ict-rc-management .ict-rc-table td:first-child {
    border-left: none;
}

.ict-rc-wrapper.ict-rc-management a {
    color: inherit;
    text-decoration: none;
}

.ict-rc-wrapper.ict-rc-management a:hover,
.ict-rc-wrapper.ict-rc-management a:focus {
    color: inherit;
    text-decoration: none;
}

.ict-rc-wrapper.ict-rc-management form {
    margin: 0;
    padding: 0;
    border: none;
    background: none;
}

.ict-rc-wrapper.ict-rc-management h2,
.ict-rc-wrapper.ict-rc-management p {
    margin: 0 0 8px;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    color: #1d1d1f;
    background: none;
    border: none;
}

.ict-rc-wrapper.ict-rc-management-login {
    max-width: 480px;
    margin: 40px auto;
}

.ict-rc-wrapper.ict-rc-management-login .ict-rc-input {
    width: 100%;
    padding: 12px 16px;
    font-size: 16px;
    color: #1d1d1f;
    background: #E9E9E9;
    border: none;
    border-radius: 10px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

.ict-rc-wrapper.ict-rc-management-login .ict-rc-input:focus {
    outline: none;
    border: none;
}

.ict-rc-wrapper.ict-rc-management-login .ict-rc-submit-btn {
    width: 100%;
    padding: 12px 42px;
    font-size: 16px;
    font-weight: 400;
    color: #fff;
    background: #111;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    box-shadow: none;
    outline: none;
}

.ict-rc-wrapper.ict-rc-management .ict-rc-login-box {
    background: #fff;
    border-radius: 10px;
    padding: 32px;
    border: none;
    box-shadow: none;
}

.ict-rc-wrapper.ict-rc-management .ict-rc-login-title {
    margin: 0 0 8px;
    padding: 0;
    font-size: 22px;
    font-weight: 600;
    color: #1d1d1f;
    background: none;
    border: none;
}

.ict-rc-wrapper.ict-rc-management .ict-rc-login-desc {
    margin: 0 0 24px;
    padding: 0;
    font-size: 16px;
    color: #86868b;
}

.ict-rc-wrapper .ict-rc-login-form .ict-rc-field-group {
    margin-bottom: 16px;
}

.ict-rc-wrapper .ict-rc-login-form .ict-rc-form-actions {
    margin-top: 24px;
}

.ict-rc-wrapper .ict-rc-login-error {
    margin: 12px 0 0;
    padding: 10px 14px;
    font-size: 14px;
    color: #fff;
    background: #ff3b30;
    border-radius: 10px;
    border: none;
}

.ict-rc-wrapper .ict-rc-login-error.ict-rc-hidden {
    display: none;
}

.ict-rc-wrapper.ict-rc-management-no-access .ict-rc-login-box {
    text-align: center;
}

.ict-rc-wrapper .ict-rc-logout-link {
    display: inline-block;
    text-decoration: none;
}

.ict-rc-wrapper.ict-rc-management-dashboard {
    max-width: 1200px;
    margin: 20px auto;
}

.ict-rc-wrapper .ict-rc-management-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 16px;
    margin-bottom: 24px;
}

.ict-rc-wrapper .ict-rc-management-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 24px;
    padding: 0;
    list-style: none;
    border-bottom: 1px solid #d2d2d7;
}

.ict-rc-wrapper .ict-rc-management-tabs .ict-rc-tab-link {
    display: inline-block;
    padding: 12px 16px;
    font-size: 16px;
    font-weight: 500;
    color: #86868b;
    text-decoration: none;
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    background: none;
    border-radius: 0;
}

.ict-rc-wrapper .ict-rc-management-tabs .ict-rc-tab-link:hover {
    color: #1d1d1f;
}

.ict-rc-wrapper .ict-rc-management-tabs .ict-rc-tab-link.ict-rc-tab-active {
    color: #1d1d1f;
    border-bottom-color: #5CAD0D;
}

/* Karty i formularze w panelu zarządzania – spójne z [ict_booking_form] */
.ict-rc-wrapper.ict-rc-management-dashboard .ict-rc-admin .ict-rc-card {
    background: #fff;
    border-radius: 10px;
    border: none;
    box-shadow: none;
}

.ict-rc-wrapper.ict-rc-management-dashboard .ict-rc-admin .ict-rc-card-header {
    border-bottom: 1px solid #d2d2d7;
    border-radius: 10px 10px 0 0;
}

.ict-rc-wrapper.ict-rc-management-dashboard .ict-rc-admin .ict-rc-input,
.ict-rc-wrapper.ict-rc-management-dashboard .ict-rc-admin .ict-rc-select,
.ict-rc-wrapper.ict-rc-management-dashboard .ict-rc-admin .ict-rc-textarea {
    background-color: #E9E9E9;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    margin-top: 5px;
}

.ict-rc-wrapper.ict-rc-management-dashboard .ict-rc-admin .ict-rc-btn-primary {
    background: #111;
    color: #fff;
    border: none;
    border-radius: 10px;
}

.ict-rc-wrapper.ict-rc-management-dashboard .ict-rc-admin .ict-rc-btn-primary:hover,
.ict-rc-wrapper.ict-rc-management-dashboard .ict-rc-admin .ict-rc-btn-primary:focus {
    background: #111;
    color: #fff;
    opacity: 0.9;
}

.ict-rc-wrapper.ict-rc-management-dashboard .ict-rc-admin .ict-rc-btn-secondary {
    background: #1d1d1f;
    color: #fff;
    border: none;
    border-radius: 10px;
}

.ict-rc-wrapper.ict-rc-management-dashboard .ict-rc-admin .ict-rc-btn-secondary:hover,
.ict-rc-wrapper.ict-rc-management-dashboard .ict-rc-admin .ict-rc-btn-secondary:focus {
    background: #1d1d1f;
    color: #fff;
    opacity: 0.9;
}

.ict-rc-wrapper.ict-rc-management-dashboard .ict-rc-admin .ict-rc-filter-clear {
    background: #e5e5ea;
    color: #1d1d1f;
    border: none;
    text-decoration: none;
    display: inline-block;
    padding: 10px 16px;
    border-radius: 10px;
    font-size: 15px;
    font-family: inherit;
    cursor: pointer;
}

.ict-rc-wrapper.ict-rc-management-dashboard .ict-rc-admin .ict-rc-filter-clear:hover,
.ict-rc-wrapper.ict-rc-management-dashboard .ict-rc-admin .ict-rc-filter-clear:focus {
    background: #d2d2d7;
    color: #1d1d1f;
    opacity: 1;
}

/* Przycisk Usuń, statusy, tabela – jawne style, niezależne od motywu */
.ict-rc-wrapper.ict-rc-management-dashboard .ict-rc-admin .ict-rc-btn-danger {
    background: #ff3b30;
    color: #fff;
    border: none;
    border-radius: 10px;
}

.ict-rc-wrapper.ict-rc-management-dashboard .ict-rc-admin .ict-rc-btn-danger:hover,
.ict-rc-wrapper.ict-rc-management-dashboard .ict-rc-admin .ict-rc-btn-danger:focus {
    background: #d63027;
    color: #fff;
    border: none;
    opacity: 0.9;
}

.ict-rc-wrapper.ict-rc-management-dashboard .ict-rc-admin .ict-rc-status-btn {
    background: transparent;
    border: 1px solid;
    border-radius: 10px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    font-size: 13px;
    padding: 6px 12px;
    cursor: pointer;
    margin: 0;
}

.ict-rc-wrapper.ict-rc-management-dashboard .ict-rc-admin .ict-rc-table-wrapper {
    border: 1px solid #e5e5ea;
    border-radius: 10px;
    background: #fff;
    outline: none;
    box-shadow: none;
}

.ict-rc-wrapper.ict-rc-management-dashboard .ict-rc-admin .ict-rc-table {
    border: none;
    outline: none;
}

.ict-rc-wrapper.ict-rc-management-dashboard .ict-rc-admin .ict-rc-table th,
.ict-rc-wrapper.ict-rc-management-dashboard .ict-rc-admin .ict-rc-table td {
    padding: 12px 16px;
    text-align: right;
    background: #fff;
    border-bottom: 1px solid #e5e5ea;
    border-right: 1px solid #e5e5ea;
    border-top: none;
    border-left: none;
}

.ict-rc-wrapper.ict-rc-management-dashboard .ict-rc-admin .ict-rc-table thead th {
    border-top: none;
}

.ict-rc-wrapper.ict-rc-management-dashboard .ict-rc-admin .ict-rc-table th:first-child,
.ict-rc-wrapper.ict-rc-management-dashboard .ict-rc-admin .ict-rc-table td:first-child {
    border-left: none;
}

.ict-rc-wrapper.ict-rc-management-dashboard .ict-rc-admin .ict-rc-table th:last-child,
.ict-rc-wrapper.ict-rc-management-dashboard .ict-rc-admin .ict-rc-table td:last-child {
    border-right: none;
}

.ict-rc-wrapper.ict-rc-management-dashboard .ict-rc-admin .ict-rc-table tbody tr:last-child td {
    border-bottom: none;
}

.ict-rc-wrapper.ict-rc-management-dashboard .ict-rc-admin .ict-rc-table tbody tr:nth-child(even) td {
    background: #f5f5f7;
}

/* Przycisk Wyloguj w headerze zarządzania */
.ict-rc-wrapper.ict-rc-management .ict-rc-submit-btn,
.ict-rc-wrapper.ict-rc-management .ict-rc-logout-btn {
    display: inline-block;
    padding: 12px 42px;
    font-size: 16px;
    font-weight: 400;
    color: #fff;
    background: #111;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    text-decoration: none;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    box-shadow: none;
    outline: none;
}

.ict-rc-wrapper.ict-rc-management .ict-rc-submit-btn:hover,
.ict-rc-wrapper.ict-rc-management .ict-rc-submit-btn:focus,
.ict-rc-wrapper.ict-rc-management .ict-rc-logout-btn:hover,
.ict-rc-wrapper.ict-rc-management .ict-rc-logout-btn:focus {
    color: #fff;
    background: #111;
    opacity: 0.9;
    text-decoration: none;
    border: none;
    box-shadow: none;
}

/* Zakładka Lokalizacje – tylko lista, bez dodawania */
.ict-rc-wrapper .ict-rc-locations-management .ict-rc-location-edit-panel.ict-rc-hidden {
    display: none;
}

.ict-rc-wrapper .ict-rc-locations-management .ict-rc-location-edit-panel {
    margin-bottom: 24px;
}

.ict-rc-wrapper .ict-rc-locations-management.ict-rc-editing .ict-rc-locations-list-wrap {
    display: none;
}

.ict-rc-wrapper .ict-rc-locations-management .ict-rc-locations-list-simple {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ict-rc-wrapper .ict-rc-locations-management .ict-rc-locations-list-simple .ict-rc-location-item {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 5px;
    padding: 5px 20px 15px;
    background: #f5f5f7;
    border-radius: 10px;
    border: 1px solid #e5e5ea;
}

.ict-rc-wrapper .ict-rc-locations-management .ict-rc-locations-list-simple .ict-rc-location-item-main {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    flex: 1;
    min-width: 0;
}

.ict-rc-wrapper .ict-rc-locations-management .ict-rc-locations-list-simple .ict-rc-location-name {
    font-weight: 300;
    font-size: 22px;
    color: #1d1d1f;
}

.ict-rc-wrapper .ict-rc-locations-management .ict-rc-locations-list-simple .ict-rc-location-address {
    width: 100%;
    font-size: 14px;
    color: #86868b;
    margin: 0 0 5px;
    padding: 0;
}

.ict-rc-wrapper .ict-rc-locations-management .ict-rc-locations-list-simple .ict-rc-location-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}
