/* Retainly Admin unified UI polish — typography / sizing / spacing only */
:root{--rt-admin-control-h:44px;--rt-admin-compact-h:38px;--rt-admin-action-gap:10px;--rt-admin-section-gap:18px}
html{font-size:16px}body{font-size:15px;line-height:1.6;text-rendering:optimizeLegibility}
.title{font-size:30px!important;line-height:1.25!important}.page-subtitle{line-height:1.65}.card h2,.card h3{line-height:1.4}
.nav{gap:12px}.nav-group{gap:5px}.nav a{min-height:45px;padding:10px 13px;font-size:15px;line-height:1.35}
.btn,.wa-btn{min-height:var(--rt-admin-control-h)!important;padding:9px 15px!important;border-radius:12px!important;font-size:14px!important;line-height:1.35!important;text-align:center;white-space:normal}
.buttons,.top-actions,.table-actions,.wa-actions,.wa-toolbar,.discount-form-actions,.odoo-actions,.email-toolbar,.whatsapp-toolbar,.analytics-toolbar{gap:var(--rt-admin-action-gap)!important}
.table-actions .btn,.table-actions .wa-btn{min-height:var(--rt-admin-compact-h)!important;padding:7px 11px!important;font-size:12.5px!important}
input:not([type="checkbox"]):not([type="radio"]),select,textarea,.wa-filters input,.wa-filters select,.wa-form input,.wa-form select{min-height:46px;font-size:14px;line-height:1.45}
textarea,.wa-form textarea{min-height:110px}
.filters{gap:12px!important}.form,.wa-form{gap:14px!important}label,.field{gap:7px}.card-head{gap:18px;margin-bottom:16px}
th,td{line-height:1.5}th{font-size:12px}.tabs{gap:7px}.tab,.wa-tab{min-height:40px;padding:9px 14px}
.danger-btn,.wa-btn.danger{margin-inline-start:4px}
.modal .buttons,.modal-footer,.modal-actions{gap:10px!important}
@media(max-width:760px){
  :root{--rt-admin-control-h:48px;--rt-admin-action-gap:10px}
  .main{padding-inline:16px}
  .buttons,.discount-form-actions,.odoo-actions{display:grid!important;grid-template-columns:1fr!important;width:100%}
  .buttons .btn,.discount-form-actions .btn,.odoo-actions .btn{width:100%}
  .table-actions{gap:8px!important}
  .table-actions .btn,.table-actions .wa-btn{min-height:42px!important;font-size:13px!important}
}

/* Support tickets workflow 2026-07-29 */
.support-admin-thread{display:grid;gap:12px;max-height:520px;overflow:auto;padding:4px}
.support-admin-message{border:1px solid var(--border,#e7dff0);border-radius:18px;padding:14px 16px;background:#fff}
.support-admin-message.customer{margin-inline-end:10%;background:#fbf8ff}
.support-admin-message.admin{margin-inline-start:10%;background:#eef8fb;border-color:#cfe7ee}
.support-admin-message.internal{background:#fff8df;border-color:#ead89b}
.support-admin-message-head{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:7px}
.support-admin-message-head strong{font-size:14px}.support-admin-message-head span{font-size:12px;color:var(--muted,#75687f)}
.support-admin-message p{white-space:pre-wrap;margin:0;line-height:1.75}
@media(max-width:720px){.support-admin-message.customer,.support-admin-message.admin{margin-inline:0}.support-admin-message-head{align-items:flex-start;flex-direction:column}}

/* Retainly Safari dropdown normalization — 2026-07-30 */
select:not([multiple]) {
  -webkit-appearance: none !important;
  appearance: none !important;
  color-scheme: light;
  background-color: #fff !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M2 2l5 5 5-5' fill='none' stroke='%236f7782' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-size: 14px 9px !important;
  background-position: right 14px center !important;
  padding-right: 42px !important;
  min-height: 46px;
  line-height: 1.35;
  text-overflow: ellipsis;
  -webkit-text-fill-color: currentColor;
}
html[dir="rtl"] select:not([multiple]) {
  background-position: left 14px center !important;
  padding-left: 42px !important;
  padding-right: 14px !important;
  text-align: right;
}
html[dir="ltr"] select:not([multiple]) {
  background-position: right 14px center !important;
  padding-right: 42px !important;
  padding-left: 14px !important;
  text-align: left;
}
select:not([multiple]):disabled {
  cursor: not-allowed;
  opacity: .68;
  background-color: #f5f6f8 !important;
}
select option {
  background: #fff;
  color: #17212b;
  font: inherit;
}


/* Unified clinic support details */
.modal.support-modal-wide{width:min(1080px,100%)}
.support-detail-wide .detail-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.support-detail-wide .support-admin-thread{max-height:460px}
@media(max-width:720px){.modal.support-modal-wide{width:100%}.support-detail-wide .detail-grid{grid-template-columns:1fr}}
