/* settings pages: Profile, Company profile, Invoice & GST settings, Staff, Change password. */

/* An icon on a soft square, coloured like the row (android IconTile). */
.icon-tile { display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; background: var(--info-bg); color: var(--navy); flex: none; }
.icon-tile.amber { background: var(--accent-bg); color: var(--accent-dark); }
.icon-tile.muted { background: var(--muted-bg); color: var(--text2); }

/* Profile: who is signed in, on the brand colours. */
.profile-head { display: flex; align-items: center; gap: 16px; padding: 20px 22px; border-radius: var(--radius); color: #fff;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%); box-shadow: var(--shadow); }
.profile-head h2 { font-size: 20px; font-weight: 800; color: #fff; overflow-wrap: anywhere; }
.profile-head .avatar { background: var(--accent); color: var(--navy-dark); }
.profile-contact { color: rgba(255, 255, 255, .8); font-size: 13px; margin: 2px 0 6px; overflow-wrap: anywhere; }
.profile-pill { display: inline-block; background: var(--accent); color: var(--navy-dark); border-radius: 999px; padding: 2px 10px; font-size: 12px; font-weight: 700; max-width: 100%; overflow-wrap: anywhere; }
.profile-pill.soft { background: rgba(255, 255, 255, .16); color: #fff; }
.profile-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
@media (max-width: 800px) { .profile-grid { grid-template-columns: minmax(0, 1fr); } }
.profile-foot { display: flex; justify-content: center; }
.btn.sign-out { color: var(--bad); border-color: var(--bad); border-width: 1.5px; min-width: 220px; }
.btn.sign-out:hover { background: var(--bad-bg); }

/* The rows of a Profile card: icon, title and a line, then a value or an arrow. */
.menu-card .card-head { margin-bottom: 4px; }
.menu-row { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 60px; padding: 8px 6px; margin: 0 -6px; width: calc(100% + 12px);
  border: 0; background: none; text-align: left; color: inherit; text-decoration: none; border-radius: 10px; cursor: pointer; }
.menu-row.static { cursor: default; flex-wrap: wrap; }
a.menu-row:hover, button.menu-row:hover:not([disabled]) { background: #F7F9FD; }
.menu-row + .menu-row { border-top: 1px solid var(--line); border-radius: 0; }
.menu-text { flex: 1 1 160px; min-width: 0; display: flex; flex-direction: column; }
.menu-title { font-weight: 600; }
.menu-sub { color: var(--text2); font-size: 12.5px; }
.menu-right { flex: none; display: flex; align-items: center; margin-left: auto; }
.lang-seg .seg { padding: 6px 12px; font-size: 13px; }

/* Company profile: the company as it stands. */
.company-head { display: flex; align-items: center; gap: 14px; padding: 18px 20px; border-radius: var(--radius); color: #fff;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%); box-shadow: var(--shadow); }
.company-head h2 { font-size: 20px; font-weight: 800; overflow-wrap: anywhere; }
.company-letter { width: 56px; height: 56px; border-radius: 14px; background: var(--accent); color: var(--navy-dark); display: flex; align-items: center; justify-content: center; font-size: 24px; font-weight: 800; flex: none; }
.company-place { color: rgba(255, 255, 255, .8); font-size: 13px; }
.company-pills { margin-top: 6px; gap: 6px; }
.detail-row { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 6px 0; }
.detail-row + .detail-row { border-top: 1px solid var(--line); }
.detail-label { color: var(--text2); font-size: 12.5px; font-weight: 600; }
.detail-value { font-weight: 600; overflow-wrap: anywhere; white-space: pre-line; }
.detail-value.unset { font-weight: 400; color: var(--text2); }
.soft-btn { flex: none; border: 0; background: var(--info-bg); color: var(--navy); font-weight: 700; border-radius: 999px; padding: 5px 13px; cursor: pointer; text-decoration: none; font-size: 13px; }
.soft-btn:hover { background: #D5E1F8; }
.bill-preview { background: var(--muted-bg); border-radius: 10px; padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; color: var(--text2); font-size: 12.5px; white-space: pre-line; overflow-wrap: anywhere; }
.bill-preview b { color: var(--text); font-size: 14px; }

/* Invoice & GST settings. */
.sub-title { font-weight: 700; }
.short-field { max-width: 260px; }
@media (max-width: 700px) { .short-field { max-width: none; } }
.logo-row { display: flex; gap: 16px; align-items: flex-start; }
.logo-box { width: 120px; height: 120px; flex: none; border: 1px dashed var(--line-strong); border-radius: 12px; display: flex; align-items: center; justify-content: center; background: #fff; overflow: hidden; }
.logo-box img { max-width: 100%; max-height: 100%; object-fit: contain; }
@media (max-width: 500px) { .logo-row { flex-direction: column; } }

/* Staff & roles. */
.table-card > .card-head { padding: 14px 18px 0; margin-bottom: 8px; }
.table-card.pad > .card-head { padding: 0; margin-bottom: 12px; }
.member-name { display: flex; flex-direction: column; min-width: 0; }
.btn.danger-text { color: var(--bad); }
.btn.danger-text:hover { background: var(--bad-bg); }
.role-item + .role-item { border-top: 1px solid var(--line); margin-top: 10px; padding-top: 10px; }
.role-item p { margin-top: 2px; }
.radio-list { display: flex; flex-direction: column; }
.radio-row { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 4px 6px; border-radius: 8px; cursor: pointer; font-weight: 500; }
.radio-row:hover { background: var(--muted-bg); }
.radio-row input { width: 18px; height: 18px; margin: 0; accent-color: var(--navy); }
.invite-code { font: 800 28px/1.2 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .08em; color: var(--navy); background: var(--muted-bg);
  border-radius: 10px; padding: 12px 16px; text-align: center; user-select: all; overflow-wrap: anywhere; }

/* Change password. */
.password-form { max-width: 460px; }
