/* Tenant - Manage Companies screen */

.company-status-pill {
    display: inline-block;
    font: 600 11px/1 var(--font-ui, inherit);
    padding: 3px 8px;
    border-radius: 10px;
    white-space: nowrap;
}

.company-status-pill.status-active { background: rgba(179, 209, 141, .30); color: #4B7A2B; }
.company-status-pill.status-provisioning { background: rgba(151, 186, 227, .30); color: #2B5C8A; }
.company-status-pill.status-failed { background: rgba(227, 162, 163, .25); color: #B5484A; }
.company-status-pill.status-scheduled { background: rgba(227, 195, 141, .30); color: #8A5A00; }
.company-status-pill.status-inactive { background: rgba(180, 185, 195, .30); color: #5A6270; }

/* Icon colour swatch shown in the grid cell */
.company-colour-swatch {
    display: inline-block;
    width: 18px;
    height: 18px;
    border-radius: 3px;
    border: 0.5px solid #C5C5C5;
    vertical-align: middle;
}

/* Create/Edit dialog body — wide enough to fit the full colour palette on one row.
   padding-bottom gives the auto-sized dialog a couple px of slack so the edit form doesn't
   render a vertical scrollbar from a too-tight height measure. */
.company-dialog-body {
    width: 640px;
    padding-bottom: 8px;
    box-sizing: border-box;
}

/* Delete-confirmation dialog body (narrower than the edit dialog). */
.company-delete-body {
    padding: 4px 0 8px 0;
    box-sizing: border-box;
}

.company-dialog-subtitle {
    font-size: 12px;
    font-weight: 400;
    color: #8B93A4;
    margin: -4px 0 14px 0;
}

/* Icon colour palette selector (create/edit dialog) — mirrors the dashboard tile wizard */
.company-colour-selector {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 6px;
    padding: 4px 0;
}

.company-colour-item-wrapper {
    height: 34px;
    width: 34px;
    padding: 2px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 3px;
    border: 1px solid transparent;
}

.company-colour-item-wrapper.selected {
    border: 1px solid #A5A5AA;
}

.company-colour-item {
    width: 30px;
    height: 30px;
    border-radius: 3px;
}

.company-colour-item:hover {
    cursor: pointer;
    box-shadow: 2px 2px 3px #00000029;
}

/* Create-company wizard */
.company-wizard {
    display: flex;
    flex-direction: column;
    min-height: 400px;
}

.company-wizard-step {
    flex: 1;
    min-height: 360px;
    padding-bottom: 10px;
}

.company-wizard-nav {
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    gap: 10px;
    padding-top: 12px;
    border-top: 1px solid #DBDBDD;
}

.company-wizard .wizard-centered {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 12px 0;
}

.company-wizard .wizard-heading {
    font-weight: 700;
    color: #111827;
    margin: 0 0 4px 0;
}

.company-wizard .wizard-detail {
    color: #5A6270;
    font-size: 13px;
    margin: 0;
}

.company-wizard .wizard-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 14px;
}

.company-wizard .wizard-field > label {
    font-weight: 600;
    font-size: 13px;
    color: #464C55;
}

.company-wizard .wizard-experience-message {
    background: #F5F6F8;
    border: 0.5px solid #E1E1E6;
    border-radius: 4px;
    padding: 10px 12px;
    margin-top: 4px;
}

.wizard-summary-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.wizard-summary-table th,
.wizard-summary-table td {
    text-align: left;
    padding: 6px 8px;
    border-bottom: 1px solid #EDEDF0;
}

.wizard-summary-table th {
    color: #8B93A4;
    font-weight: 600;
}

/* Copy-company wizard (design-matched) — shared with the Create-company wizard's identity step */
.cc-step-heading {
    font-weight: 700;
    font-size: 15px;
    color: #111827;
    margin: 0 0 2px 0;
}

.cc-step-subtitle {
    color: #6B7280;
    font-size: 12.5px;
    margin: 0 0 16px 0;
}

.cc-card {
    border: 1px solid #E1E1E6;
    border-radius: 6px;
    padding: 18px 18px 4px 18px;
    margin-bottom: 16px;
}

.cc-card-title {
    font-weight: 700;
    font-size: 13px;
    color: #464C55;
    margin: 0 0 12px 0;
}

.cc-identity-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px 20px;
}

.cc-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 14px;
}

.cc-field > label {
    font-weight: 600;
    font-size: 12.5px;
    color: #464C55;
}

.cc-field .cc-hint {
    font-size: 11px;
    color: #8B93A4;
}

.cc-required { color: #DE7676; }

.cc-preview {
    display: flex;
    align-items: center;
    gap: 8px;
}

.cc-preview-chip {
    width: 30px;
    height: 30px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font: 700 11px/1 var(--font-ui, inherit);
    text-transform: uppercase;
}

.cc-mode-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

.cc-mode-card {
    border: 1px solid #D6D9E0;
    border-radius: 6px;
    padding: 12px 14px;
    cursor: pointer;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    transition: border-color .12s, background-color .12s;
}

.cc-mode-card:hover { border-color: #A9B4CC; }

.cc-mode-card.selected {
    border-color: #3B5EDA;
    background: #EEF2FF;
}

.cc-mode-radio {
    width: 14px;
    height: 14px;
    flex: 0 0 14px;
    margin: 2px 0 0 0;
    accent-color: #3B5EDA;
}

/* Title + description fill the rest of the card width, left-aligned next to the radio. */
.cc-mode-body {
    flex: 1 1 auto;
    min-width: 0;
    text-align: left;
}

.cc-mode-title {
    font-weight: 700;
    font-size: 13px;
    color: #111827;
    margin: 0 0 4px 0;
}

.cc-mode-desc {
    font-size: 12px;
    color: #5A6270;
    margin: 0;
}

.cc-info-banner {
    background: #EEF2FF;
    border: 1px solid #C7D2FE;
    border-radius: 6px;
    padding: 10px 14px;
    font-size: 12px;
    color: #3A4A7A;
}

.cc-review-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 16px;
}

.cc-review-head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 12px;
    margin-bottom: 6px;
    border-bottom: 1px solid #EDEDF0;
}

.cc-review-head .cc-review-name {
    font-weight: 700;
    font-size: 14px;
    color: #111827;
}

.cc-review-head .cc-review-sub {
    font-size: 11.5px;
    color: #8B93A4;
}

.cc-review-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12.5px;
}

.cc-review-table th,
.cc-review-table td {
    text-align: left;
    padding: 7px 4px;
    border-bottom: 1px solid #F0F0F3;
    vertical-align: top;
}

.cc-review-table th {
    color: #8B93A4;
    font-weight: 600;
    width: 44%;
    white-space: nowrap;
}

.cc-order-card {
    background: #F8F9FB;
    border: 1px solid #E1E1E6;
    border-radius: 6px;
    padding: 14px 16px;
}

.cc-order-card h4 {
    margin: 0 0 10px 0;
    font-weight: 700;
    font-size: 12.5px;
    color: #464C55;
}

.cc-order-list {
    margin: 0;
    padding-left: 18px;
}

.cc-order-list li {
    font-size: 12px;
    color: #5A6270;
    margin-bottom: 5px;
    text-wrap: pretty;
}
