@import url("./supplypilot-ui.css");

body.shopops-app h1,
body.shopops-auth h1 {
    font-size: 34px;
}

body.shopops-app h2,
body.shopops-auth h2 {
    font-size: 26px;
}

body.shopops-app h3,
body.shopops-auth h3 {
    font-size: 20px;
}

.brand-icon {
    border-radius: 12px;
    letter-spacing: 0;
}

.shopops-content {
    min-width: 0;
    overflow-x: auto;
}

.shopops-content > .container,
.shopops-content .container {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
}

.shopops-content .container > h4,
.shopops-content > h4 {
    display: block;
    margin: 0 0 20px;
    padding: 24px 28px;
    border: 1px solid var(--surface-border);
    border-radius: var(--radius-card-sm);
    background: var(--surface-bg);
    box-shadow: var(--shadow);
    color: var(--green-dark);
    font-size: 22px;
    font-weight: var(--font-weight-strong);
}

.shopops-content hr {
    margin: 18px 0 20px;
    border: 0;
    border-top: 1px solid var(--line);
    opacity: 1;
}

.shopops-content > .container > form,
.shopops-content > form {
    margin: 0 0 20px;
    padding: 22px;
    border: 1px solid var(--surface-border);
    border-radius: var(--radius-card-sm);
    background: var(--surface-bg-soft);
}

.shopops-content label {
    color: var(--green-dark);
    font-weight: var(--font-weight-strong);
}

.form-select,
.form-control {
    min-height: 44px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background-color: rgba(255, 255, 255, 0.78);
    color: var(--ink);
    font: inherit;
}

.form-select:focus,
.form-control:focus {
    border-color: var(--green);
    box-shadow: inset 0 0 0 2px rgba(31, 111, 74, 0.18);
}

.btn {
    display: inline-flex;
    min-height: var(--control-height-md);
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 0 var(--control-padding-md);
    border-radius: var(--radius-pill);
    font-family: inherit;
    font-weight: var(--font-weight-strong);
    line-height: var(--line-height-control);
    white-space: nowrap;
}

.btn-sm {
    min-height: var(--control-height-sm);
    padding: 0 var(--control-padding-sm);
    font-size: var(--font-size-sm);
}

.btn-primary,
.btn-success,
.btn-outline-primary:hover {
    border-color: transparent;
    background: var(--green);
    color: #fff;
}

.btn-primary:hover,
.btn-success:hover,
.btn-outline-primary {
    border-color: transparent;
    background: var(--green-dark);
    color: #fff;
}

.btn-secondary,
.btn-outline-secondary {
    border-color: var(--line);
    background: rgba(255, 255, 255, 0.46);
    color: var(--green-dark);
}

.btn-secondary:hover,
.btn-outline-secondary:hover {
    border-color: rgba(31, 111, 74, 0.34);
    background: rgba(255, 255, 255, 0.76);
    color: var(--green-dark);
}

.btn-danger {
    border-color: rgba(159, 44, 36, 0.35);
    background: rgba(159, 44, 36, 0.08);
    color: var(--sp-color-danger);
}

.btn-danger:hover {
    border-color: rgba(159, 44, 36, 0.46);
    background: rgba(159, 44, 36, 0.14);
    color: var(--sp-color-danger-dark);
}

.btn-block {
    width: auto;
}

.shopops-content .table {
    width: 100%;
    margin: 20px 0 0;
    border: 1px solid var(--surface-border);
    border-radius: var(--radius-card);
    border-collapse: separate;
    border-spacing: 0;
    background: var(--surface-bg);
    box-shadow: var(--shadow);
    overflow: hidden;
    vertical-align: middle;
}

.shopops-content .table > :not(caption) > * > * {
    padding: 14px 14px;
    border-bottom: 1px solid var(--line);
    background: transparent;
    color: var(--ink);
    line-height: var(--line-height-table);
}

.shopops-content .table thead th {
    color: var(--green-dark);
    font-weight: var(--font-weight-strong);
    white-space: nowrap;
}

.shopops-content .table tbody tr:hover > * {
    background: rgba(31, 111, 74, 0.06);
}

.shopops-content .table tbody tr:last-child > * {
    border-bottom: 0;
}

.shopops-content .table td,
.shopops-content .table th {
    overflow-wrap: anywhere;
}

.statement-status {
    font-weight: var(--font-weight-strong);
    line-height: 1.4;
}

.shopops-content .table td .statement-status-ok {
    color: var(--green) !important;
}

.shopops-content .table td .statement-status-error {
    color: var(--sp-color-danger) !important;
}

.statement-status-item {
    display: block;
}

.hidden {
    display: none !important;
}

.full-filename-input {
    width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.auth-card .form-signin {
    display: grid;
    gap: 14px;
}

.auth-card .auth-error {
    min-height: 24px;
    color: var(--sp-color-danger);
    font-weight: var(--font-weight-bold);
}

@media (max-width: 980px) {
    body.shopops-app h1,
    body.shopops-auth h1 {
        font-size: 30px;
    }

    .shopops-content .table {
        min-width: 860px;
    }
}

@media (max-width: 620px) {
    body.shopops-app h1,
    body.shopops-auth h1 {
        font-size: 28px;
    }

    .shopops-content > .container > form,
    .shopops-content > form {
        padding: 18px;
    }
}
