/* Mediana Group CRM 1.4.0: board and account notification preferences. */
.ann-page {width:100%;min-width:0;max-width:none;margin:0;}
.ann-toolbar {display:flex;gap:12px;align-items:center;justify-content:space-between;flex-wrap:wrap;margin-bottom:12px;}
.ann-toolbar .page-title {overflow-wrap:anywhere;}
.ann-tabs,.ann-actions,.ann-pagination {display:flex;align-items:center;gap:8px;flex-wrap:wrap;}
.ann-tabs {margin-bottom:12px;}
.ann-search {display:flex;gap:8px;align-items:center;margin-bottom:12px;}
.ann-search input {min-width:0;flex:1;}
.ann-list {display:grid;gap:10px;}
.ann-card {position:relative;border:1px solid var(--crm-line);border-radius:9px;background:#fff;padding:14px 16px;min-width:0;}
.ann-card.ann-unread {border-left:3px solid var(--crm-blue);}
.ann-card h2 {font-size:20px;line-height:1.3;margin:5px 0;overflow-wrap:anywhere;}
.ann-card h2 a {color:var(--crm-ink);text-decoration:none;}
.ann-card h2 a::after {content:"";position:absolute;inset:0;border-radius:9px;}
.ann-card h2 a:focus-visible::after {outline:2px solid var(--crm-blue);outline-offset:2px;}
.ann-subtitle {font-size:15px;line-height:1.4;color:var(--crm-muted);margin:0;overflow-wrap:anywhere;}
.ann-card-meta {display:flex;gap:10px;align-items:center;flex-wrap:wrap;font-size:12px;color:var(--crm-muted);}
.ann-new,.ann-count {display:inline-flex;align-items:center;justify-content:center;background:#e6effc;color:#1a509c;border-radius:5px;padding:2px 6px;font-size:11px;font-weight:600;}
.ann-count {min-width:20px;margin-left:3px;}
.ann-count[hidden],[data-announcement-unread][hidden] {display:none!important;}
.ann-pagination {justify-content:center;margin-top:14px;}
.ann-form {display:grid;gap:12px;}
.ann-form textarea {resize:vertical;min-height:180px;}
.ann-upload {border-top:1px solid var(--crm-line);padding-top:10px;}
.ann-selected-files {list-style:none;padding:0;margin:8px 0 0;display:grid;gap:5px;}
.ann-selected-files li {display:flex;align-items:center;gap:8px;justify-content:space-between;padding:5px 0;border-bottom:1px solid var(--crm-line);}
.ann-selected-files li span {min-width:0;overflow-wrap:anywhere;}
.ann-existing {border:1px solid var(--crm-line);border-radius:6px;padding:10px;}
.ann-existing legend {float:none;width:auto;font-size:14px;margin-bottom:8px;}
.ann-file-remove {display:flex;align-items:center;gap:10px;padding:5px;overflow-wrap:anywhere;}
.ann-file-remove input {flex:none;}
.ann-detail h1 {font-size:26px;line-height:1.25;overflow-wrap:anywhere;margin:12px 0 8px;}
.ann-detail-subtitle {font-size:18px;line-height:1.45;color:var(--crm-muted);margin:0 0 16px;overflow-wrap:anywhere;}
.ann-body {white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.65;}
.ann-attachments {margin-top:20px;padding-top:14px;border-top:1px solid var(--crm-line);}
.ann-attachments h2,.ann-device h2 {font-size:17px;margin:0 0 10px;}
.ann-file {display:flex;align-items:center;justify-content:space-between;gap:10px;padding:8px 0;border-bottom:1px solid var(--crm-line);}
.ann-file-info {min-width:0;display:grid;gap:3px;overflow-wrap:anywhere;}
.ann-file-info small {color:var(--crm-muted);}
.ann-file .btn {flex-shrink:0;}
.ann-read-state {font-size:12px;color:var(--crm-muted);margin-top:12px;}
.ann-danger {margin-top:15px;font-size:13px;color:var(--crm-muted);}
.ann-danger summary {cursor:pointer;padding:8px 0;}
.ann-danger form {padding:10px 0;}
.ann-preferences {display:grid;gap:12px;}
.ann-preference {display:flex;align-items:center;justify-content:space-between;gap:16px;padding:12px 0;border-bottom:1px solid var(--crm-line);cursor:pointer;}
.ann-preference strong {display:block;font-size:15px;}
.ann-preference small {display:block;margin-top:3px;color:var(--crm-muted);line-height:1.4;}
.ann-preference input {flex:none;width:21px!important;height:21px!important;margin:0;}
.ann-device {margin-top:12px;}
.ann-device-status {display:block;margin-top:10px;font-size:13px;color:var(--crm-muted);}
.ann-customer-setting {max-width:600px;}
.ann-empty {color:var(--crm-muted);}
.ann-nav-badge {position:absolute;right:0;top:0;background:#b42336;color:white;border-radius:10px;min-width:16px;font-size:10px;line-height:16px;text-align:center;padding:0 3px;}
@media(max-width:900px){
 .ann-toolbar {gap:8px;margin-bottom:10px;}.ann-toolbar h1 {font-size:20px;}
 .ann-card {padding:10px 12px;}.ann-card h2 {font-size:18px;}.ann-subtitle {font-size:14px;}
 .ann-detail h1 {font-size:22px;}.ann-detail-subtitle {font-size:16px;}
 .ann-tabs {gap:6px;}.ann-tabs .btn {flex:1;min-width:0;white-space:normal;}
 .ann-search {flex-wrap:wrap;}.ann-search input {flex:1 1 150px;}
 .ann-card-meta {font-size:11px;gap:7px;}.ann-actions .btn {flex:1;}
 .ann-selected-files .btn {min-height:36px!important;}
 .ann-page {max-width:100%;}.ann-preference {padding:10px 0;}
}

/* Four inline styles, scoped to announcement editor/body. */
.ann-format-toolbar {display:flex;align-items:center;gap:5px;padding:6px;border:1px solid #ccd9e8;border-bottom:0;border-radius:7px 7px 0 0;background:#f4f7fb;}
.ann-format-toolbar[hidden],.ann-rich-input[hidden],.ann-text-editor textarea[hidden] {display:none!important;}
.ann-format-button.btn {display:inline-flex;align-items:center;justify-content:center;min-width:36px;min-height:34px;padding:4px 10px;font-size:16px;line-height:1;}
.ann-format-button[aria-pressed=true] {background:#dceaff;border-color:#245ba8;color:#163965;}
.ann-format-button:focus-visible,.ann-rich-input:focus-visible {outline:2px solid #245ba8;outline-offset:2px;}
.ann-rich-input {min-height:200px;max-height:50vh;overflow:auto;white-space:pre-wrap;overflow-wrap:anywhere;border-radius:0 0 7px 7px;line-height:1.5;}
.ann-body p,.ann-rich-input p {margin:0 0 .6em;}
.ann-body strong,.ann-rich-input strong,.ann-rich-input b {font-weight:700;}
.ann-body em,.ann-rich-input em,.ann-rich-input i {font-style:italic;}
.ann-body u,.ann-rich-input u {text-decoration:underline;}
.ann-body s,.ann-rich-input s,.ann-rich-input strike {text-decoration:line-through;}
@media(max-width:900px){.ann-format-button.btn{min-width:42px;min-height:42px;}.ann-rich-input{font-size:16px;min-height:180px;max-height:45vh;}}
