@charset "UTF-8";

/* Workwear installer — static UI, loads last after theme CSS */

.pj-install-body {
    --pj-i-primary: #F97316;
    --pj-i-primary-dark: #C2410C;
    --pj-i-primary-light: #FFF1E6;
    --pj-i-primary-soft: rgba(249, 115, 22, 0.08);
    --pj-i-success: #10B981;
    --pj-i-danger: #EF4444;
    --pj-i-text: #0F172A;
    --pj-i-muted: #64748B;
    --pj-i-border: #E2E8F0;
    --pj-i-bg: #F8FAFC;
    --pj-i-card: #ffffff;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
    background: var(--pj-i-bg) !important;
    color: var(--pj-i-text);
    margin: 0;
    min-height: 100vh;
}

.pj-install-wrap {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 32px 20px 24px;
    box-sizing: border-box;
}

/* ---- Card ---- */
.pj-install-card {
    width: 100%;
    max-width: 900px;
    background: var(--pj-i-card);
    border-radius: 20px;
    border: 1px solid var(--pj-i-border);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.pj-install-card__header {
    text-align: center;
    padding: 28px 32px 24px;
    background: linear-gradient(180deg, var(--pj-i-primary-soft) 0%, var(--pj-i-card) 100%);
    border-bottom: 1px solid var(--pj-i-border);
}

.pj-install-card__brand {
    display: inline-block;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--pj-i-muted);
    text-decoration: none;
    margin-bottom: 10px;
}

.pj-install-card__brand:hover {
    color: var(--pj-i-primary);
}

.pj-install-card__title {
    margin: 0;
    font-size: 26px;
    font-weight: 800;
    color: var(--pj-i-text);
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.pj-install-card__body {
    padding: 0;
}

.pj-install-site-footer {
    margin-top: 24px;
    font-size: 13px;
    color: var(--pj-i-muted);
    text-align: center;
}

.pj-install-site-footer a {
    color: var(--pj-i-primary);
    text-decoration: none;
}

.pj-install-site-footer a:hover {
    text-decoration: underline;
}

/* Legacy wrappers */
.pj-install-body .page-wrapper,
.pj-install-body .main,
.pj-install-body .container,
.pj-install-body .text-center.m-b-md,
.pj-install-body .page-wrapper > .header,
.pj-install-body .page-footer {
    display: none !important;
}

/* ---- Simple panels (step 0, messages) ---- */
.pj-install-panel {
    padding: 32px 40px 36px;
}

.pj-install-panel--message {
    text-align: center;
    max-width: 560px;
    margin: 0 auto;
}

.pj-install-panel__heading {
    margin: 0 0 16px;
    font-size: 22px;
    font-weight: 700;
    color: var(--pj-i-text);
}

.pj-install-panel__text {
    margin: 0 0 14px;
    font-size: 15px;
    line-height: 1.65;
    color: var(--pj-i-muted);
}

.pj-install-panel__text a,
.pj-install-panel__help a {
    color: var(--pj-i-primary);
    font-weight: 600;
    text-decoration: none;
}

.pj-install-panel__text a:hover,
.pj-install-panel__help a:hover {
    text-decoration: underline;
}

.pj-install-panel__help {
    margin: 28px 0 0;
    padding-top: 24px;
    border-top: 1px dashed var(--pj-i-border);
    font-size: 14px;
    color: var(--pj-i-muted);
}

/* ---- jQuery Steps wizard inside card ---- */
.pj-install-body .pj-install-card__body .wizard {
    width: 100%;
}

/* Stepper track */
.pj-install-body .wizard > .steps {
    padding: 20px 24px 16px;
    background: var(--pj-i-primary-soft);
    border-bottom: 1px solid var(--pj-i-border);
    overflow-x: auto;
}

.pj-install-body .wizard > .steps > ul {
    display: flex;
    flex-wrap: nowrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
    min-width: 640px;
    counter-reset: pj-step;
}

.pj-install-body .wizard > .steps > ul > li {
    flex: 1 1 0;
    min-width: 0;
    width: auto !important;
    max-width: none !important;
    float: none !important;
    position: relative;
    counter-increment: pj-step;
    padding: 0 6px;
    text-align: center;
}

.pj-install-body .wizard > .steps > ul > li:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 17px;
    left: calc(50% + 20px);
    width: calc(100% - 40px);
    height: 2px;
    background: var(--pj-i-border);
    z-index: 0;
}

.pj-install-body .wizard > .steps > ul > li.done:not(:last-child)::after {
    background: var(--pj-i-primary);
}

/* Step anchors — override custom.css green blocks */
.pj-install-body .wizard > .steps a,
.pj-install-body .wizard > .steps a:hover,
.pj-install-body .wizard > .steps a:active,
.pj-install-body .wizard > .steps .current a,
.pj-install-body .wizard > .steps .current a:hover,
.pj-install-body .wizard > .steps .current a:active,
.pj-install-body .wizard > .steps .done a,
.pj-install-body .wizard > .steps .done a:hover,
.pj-install-body .wizard > .steps .done a:active,
.pj-install-body .wizard > .steps .disabled a,
.pj-install-body .wizard > .steps .disabled a:hover,
.pj-install-body .wizard > .steps .disabled a:active {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    width: 100% !important;
    position: relative;
    z-index: 1;
    text-decoration: none !important;
    color: #636e72 !important;
}

.pj-install-body .wizard > .steps a::before {
    content: counter(pj-step);
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    background: var(--pj-i-card);
    border: 2px solid var(--pj-i-border);
    color: var(--pj-i-muted);
    flex-shrink: 0;
}

.pj-install-body .wizard > .steps a .number {
    display: none !important;
}

.pj-install-body .wizard > .steps a .title {
    display: block !important;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.25;
    color: var(--pj-i-muted) !important;
    max-width: 100%;
    word-wrap: break-word;
}

.pj-install-body .wizard > .steps .current a::before {
    background: var(--pj-i-primary) !important;
    border-color: var(--pj-i-primary) !important;
    color: #fff !important;
    box-shadow: 0 3px 10px rgba(249, 115, 22, 0.3);
}

.pj-install-body .wizard > .steps .current a .title {
    color: var(--pj-i-primary) !important;
    font-weight: 700 !important;
}

.pj-install-body .wizard > .steps .done a::before {
    content: '';
    background: var(--pj-i-primary) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center no-repeat;
    border-color: var(--pj-i-primary);
}

.pj-install-body .wizard > .steps .done a .title {
    color: var(--pj-i-text) !important;
}

/* Content */
.pj-install-body .wizard > .content {
    background: var(--pj-i-card) !important;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 0 !important;
    min-height: 0 !important;
    overflow: visible !important;
}

.pj-install-body .wizard > .content > .body {
    float: none !important;
    position: relative !important;
    left: auto !important;
    top: auto !important;
    width: 100% !important;
    height: auto !important;
    padding: 32px 40px 24px !important;
    box-sizing: border-box;
}

.pj-install-body .wizard > .content > .body fieldset {
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    min-width: 0;
}

.pj-install-body .wizard > .content > .body > h2 {
    display: none !important;
}

.pj-install-body .wizard > .content > .title {
    position: absolute !important;
    left: -9999px !important;
}

.pj-install-body .wizard .m-b-md p {
    margin: 0 0 20px;
    font-size: 15px;
    line-height: 1.65;
    color: var(--pj-i-muted);
}

.pj-install-body .wizard > .content > .body > p {
    margin: 20px 0 0;
    font-size: 14px;
    color: var(--pj-i-muted);
}

.pj-install-body .wizard > .content > .body > p a {
    color: var(--pj-i-primary);
    font-weight: 600;
}

.pj-install-body .wizard .hr-line-dashed {
    display: none !important;
}

/* Table */
.pj-install-body .pj-install-table-wrap {
    border: 1px solid var(--pj-i-border);
    border-radius: 12px;
    overflow: hidden;
}

.pj-install-body .wizard .table {
    margin: 0;
    font-size: 14px;
}

.pj-install-body .wizard .table thead th {
    background: var(--pj-i-primary-soft);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--pj-i-text);
    padding: 11px 18px;
    border-bottom: 1px solid var(--pj-i-border);
}

.pj-install-body .wizard .table tbody td {
    padding: 11px 18px;
    vertical-align: middle;
    border-color: var(--pj-i-border);
}

.pj-install-body .wizard .table-striped > tbody > tr:nth-of-type(odd) {
    background: #fafbfc;
}

.pj-install-body .wizard .table .text-info {
    color: var(--pj-i-primary) !important;
    font-weight: 600;
}

.pj-install-body .wizard .table .text-info .fa-check {
    color: var(--pj-i-success);
    margin-right: 4px;
}

.pj-install-body .wizard .alert-danger {
    border-radius: 12px;
    margin-bottom: 20px;
}

/* Actions footer inside card */
.pj-install-body .wizard > .actions {
    padding: 18px 40px 28px !important;
    margin: 0 !important;
    background: #f8f9fa !important;
    border-top: 1px solid var(--pj-i-border);
    clear: both;
    width: 100% !important;
    box-sizing: border-box;
}

.pj-install-body .wizard > .actions > ul {
    display: flex !important;
    justify-content: flex-end !important;
    align-items: center;
    gap: 12px;
    float: none !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none;
}

.pj-install-body .wizard > .actions > ul > li {
    float: none !important;
    margin: 0 !important;
}

.pj-install-body .wizard > .actions > ul > li:first-child.disabled {
    display: none !important;
}

.pj-install-body .wizard > .actions a {
    display: inline-block !important;
    width: auto !important;
    max-width: none !important;
    float: none !important;
    padding: 12px 32px !important;
    border-radius: 50px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    font-family: inherit !important;
    line-height: 1.2 !important;
    text-decoration: none !important;
    border: 2px solid var(--pj-i-border) !important;
    background: transparent !important;
    background-color: transparent !important;
    color: var(--pj-i-muted) !important;
}

.pj-install-body .wizard > .actions a[href="#next"],
.pj-install-body .wizard > .actions a[href="#finish"] {
    background: var(--pj-i-primary) !important;
    background-color: var(--pj-i-primary) !important;
    border-color: var(--pj-i-primary) !important;
    color: #fff !important;
}

.pj-install-body .wizard > .actions a[href="#next"]:hover,
.pj-install-body .wizard > .actions a[href="#finish"]:hover {
    background: var(--pj-i-primary-dark) !important;
    background-color: var(--pj-i-primary-dark) !important;
    border-color: var(--pj-i-primary-dark) !important;
}

.pj-install-body .wizard > .actions a[href="#previous"]:hover {
    border-color: var(--pj-i-primary) !important;
    color: var(--pj-i-primary) !important;
}

/* Finish step */
.pj-install-body #frmStep7 .wizard > .content > .body h2 {
    font-size: 22px;
    font-weight: 800;
    color: var(--pj-i-primary);
    margin: 0 0 12px;
    text-align: center;
}

.pj-install-body #frmStep7 .wizard > .content > .body p {
    text-align: center;
}

/* ---- Forms & buttons (admin UI — overrides Inspinia 1px radius) ---- */
.pj-install-body .form-control,
.pj-install-body input.form-control,
.pj-install-body select.form-control,
.pj-install-body textarea.form-control,
.pj-install-body input.pj-form-field.form-control,
.pj-install-body .wizard .table .form-control,
.pj-install-body .wizard .table input.pj-form-field {
    display: block;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    height: 40px;
    padding: 8px 14px !important;
    font-size: 14px !important;
    font-family: inherit !important;
    line-height: 1.5 !important;
    color: var(--pj-i-text) !important;
    background: #fff !important;
    background-color: #fff !important;
    border: 1px solid var(--pj-i-border) !important;
    border-radius: 8px !important;
    box-shadow: none !important;
    -moz-box-shadow: none !important;
    -webkit-box-shadow: none !important;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.pj-install-body select.form-control {
    height: 40px !important;
    padding: 8px 36px 8px 14px !important;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='none' stroke='%23F97316' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M1 1l5 5 5-5'/></svg>") !important;
    background-repeat: no-repeat !important;
    background-position: right 12px center !important;
    background-size: 12px 8px !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    cursor: pointer;
}

.pj-install-body select.form-control::-ms-expand {
    display: none;
}

.pj-install-body textarea.form-control {
    height: auto !important;
    min-height: 90px;
    resize: vertical;
    padding: 10px 14px !important;
}

.pj-install-body .form-control:focus,
.pj-install-body input.pj-form-field.form-control:focus {
    border-color: var(--pj-i-primary) !important;
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.12) !important;
    -moz-box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.12) !important;
    -webkit-box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.12) !important;
}

.pj-install-body .form-control::placeholder {
    color: var(--pj-i-muted);
    opacity: 1;
}

.pj-install-body .form-group {
    margin-bottom: 20px;
}

.pj-install-body .form-group > label,
.pj-install-body .wizard .i-title,
.pj-install-body .wizard .form-group label {
    display: block;
    margin: 0 0 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--pj-i-text);
    line-height: 1.4;
}

.pj-install-body .form-group small,
.pj-install-body .wizard .form-group small {
    display: block;
    margin-top: 8px;
    font-size: 12px;
    line-height: 1.5;
    color: var(--pj-i-muted);
}

.pj-install-body .text-danger,
.pj-install-body .i-red {
    color: var(--pj-i-danger) !important;
}

.pj-install-body label.error {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    font-weight: 500;
    color: var(--pj-i-danger) !important;
}

.pj-install-body .wizard .table td p {
    margin: 0;
}

.pj-install-body .wizard .table .i-title {
    margin-bottom: 10px;
}

/* Standalone buttons (change installer, etc.) */
.pj-install-body .btn {
    display: inline-block;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    line-height: 1.35;
    border-radius: 8px !important;
    border: 2px solid transparent;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.pj-install-body .btn-primary,
.pj-install-body .ladda-button.btn-primary {
    background-color: var(--pj-i-primary) !important;
    border-color: var(--pj-i-primary) !important;
    color: #fff !important;
}

.pj-install-body .btn-primary:hover,
.pj-install-body .btn-primary:focus,
.pj-install-body .ladda-button.btn-primary:hover,
.pj-install-body .ladda-button.btn-primary:focus {
    background-color: var(--pj-i-primary-dark) !important;
    border-color: var(--pj-i-primary-dark) !important;
    color: #fff !important;
}

.pj-install-body .btn-default,
.pj-install-body .btn-outline {
    background: #fff !important;
    border-color: var(--pj-i-border) !important;
    color: var(--pj-i-muted) !important;
}

.pj-install-body .btn-default:hover,
.pj-install-body .btn-outline:hover {
    border-color: var(--pj-i-primary) !important;
    color: var(--pj-i-primary) !important;
}

.pj-install-body .btn-lg {
    padding: 12px 28px;
    font-size: 15px;
    border-radius: 50px !important;
}

.pj-install-body .alert-danger {
    border-radius: 12px;
    border: 1px solid rgba(220, 53, 69, 0.25);
    background: #fef2f2;
    color: #991b1b;
    padding: 14px 18px;
    font-size: 14px;
    line-height: 1.5;
}

@media (max-width: 768px) {
    .pj-install-wrap {
        padding: 16px 12px;
        justify-content: flex-start;
    }

    .pj-install-card__header {
        padding: 20px 20px 16px;
    }

    .pj-install-card__title {
        font-size: 22px;
    }

    .pj-install-panel,
    .pj-install-body .wizard > .content > .body {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }

    .pj-install-body .wizard > .actions {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }

    .pj-install-body .wizard > .steps > ul > li a .title {
        font-size: 9px;
    }
}

/* ---- Force current step to a round badge (override custom.css orange square) ---- */
body.pj-install-body .wizard > .steps li.current a,
body.pj-install-body .wizard > .steps li.current a:hover,
body.pj-install-body .wizard > .steps li.current a:active,
body.pj-install-body .wizard > .steps li.current a:focus {
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
}

body.pj-install-body .wizard > .steps li.current a::before {
    width: 34px !important;
    height: 34px !important;
    border-radius: 50% !important;
    box-sizing: border-box !important;
    background: var(--pj-i-primary) !important;
    border: 2px solid var(--pj-i-primary) !important;
    color: #fff !important;
    box-shadow: 0 3px 10px rgba(249, 115, 22, 0.30) !important;
}

/* ---- Compact layout so the whole step fits without scrolling ---- */
.pj-install-wrap { padding: 20px 20px 16px !important; }
.pj-install-card__header { padding: 18px 32px 14px !important; }
.pj-install-card__brand { margin-bottom: 5px !important; }
.pj-install-card__title { font-size: 23px !important; }
.pj-install-body .wizard > .steps { padding: 14px 24px 10px !important; }
.pj-install-body .wizard > .content > .body { padding: 14px 24px !important; }
.pj-install-body .wizard > .content p { margin-top: 0 !important; margin-bottom: 12px !important; }
.pj-install-body .wizard > .content table th,
.pj-install-body .wizard > .content table td { padding-top: 11px !important; padding-bottom: 11px !important; }
.pj-install-body .wizard > .actions { padding: 10px 24px 14px !important; }

/* ---- Status "Ok" text matches its green check (clean success look) ---- */
.pj-install-body .wizard > .content table td:has(> .fa-check) { color: var(--pj-i-success) !important; }
.pj-install-body .wizard > .content table td .fa-check { color: var(--pj-i-success) !important; }

/* ---- Disabled action buttons (e.g. while Install is running) ---- */
.pj-install-body .wizard > .actions ul li.disabled a,
.pj-install-body .wizard > .actions ul li.btnDisabled a,
.pj-install-body .wizard > .actions ul li.disabled a[href="#next"],
.pj-install-body .wizard > .actions ul li.disabled a[href="#finish"],
.pj-install-body .wizard > .actions ul li.btnDisabled a[href="#next"],
.pj-install-body .wizard > .actions ul li.btnDisabled a[href="#finish"] {
    background: var(--pj-i-border) !important;
    background-color: var(--pj-i-border) !important;
    border-color: var(--pj-i-border) !important;
    color: var(--pj-i-muted) !important;
    cursor: not-allowed !important;
    pointer-events: none !important;
    opacity: 0.65 !important;
    box-shadow: none !important;
}
