/* ==========================================
   Wedding Organizer Portal — Mobile First
   ========================================== */

/* === Reset & Base === */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --color-primary: #8B6F5C;
  --color-primary-dark: #6D5648;
  --color-primary-light: #A8907A;
  --color-bg: #FAF8F5;
  --color-white: #FFFFFF;
  --color-text: #2C2C2C;
  --color-text-light: #6B6B6B;
  --color-border: #E8E0D8;
  --color-error: #D94F4F;
  --color-success: #4A9B6E;
  --color-warning: #D4A843;
  --color-info: #5B8BC7;
  --radius: 8px;
  --radius-lg: 12px;
  --shadow: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-lg: 0 4px 16px rgba(0,0,0,0.12);
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  min-height: 100vh;
  min-height: 100dvh;
}

a {
  color: var(--color-primary);
  text-decoration: none;
}

a:hover {
  color: var(--color-primary-dark);
}

/* === Buttons === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border: none;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  -webkit-appearance: none;
  -webkit-tap-highlight-color: transparent;
  min-height: 44px;
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn-primary {
  background: var(--color-primary);
  color: var(--color-white);
}

.btn-primary:hover:not(:disabled) {
  background: var(--color-primary-dark);
}

.btn-outline {
  background: transparent;
  color: var(--color-primary);
  border: 1px solid var(--color-primary);
}

.btn-outline:hover:not(:disabled) {
  background: var(--color-primary);
  color: var(--color-white);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.9rem;
  min-height: 40px;
}

.btn-full {
  width: 100%;
}

/* === Header === */
.app-header {
  background: var(--color-white);
  border-bottom: 1px solid var(--color-border);
  padding: 0 16px;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  padding: 10px 0;
  gap: 8px;
}

.header-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  order: -1;
  width: 100%;
}

.header-back {
  font-size: 0.9rem;
  white-space: nowrap;
  order: -2;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 12px;
}

.organizer-name {
  display: none;
  font-size: 0.85rem;
  color: var(--color-text-light);
}

/* === Container === */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 16px;
}

.page-header {
  margin-bottom: 20px;
}

.page-header h2 {
  font-size: 1.3rem;
  font-weight: 600;
}

.page-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* === Login === */
.login-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 16px;
}

.login-container {
  width: 100%;
  max-width: 400px;
}

.login-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 28px 20px;
}

.login-header {
  text-align: center;
  margin-bottom: 28px;
}

.login-header h1 {
  font-size: 1.5rem;
  color: var(--color-primary);
  margin-bottom: 4px;
}

.login-header p {
  color: var(--color-text-light);
  font-size: 0.95rem;
}

/* === Forms === */
.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-text-light);
  margin-bottom: 6px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-size: 1rem;
  font-family: var(--font);
  background: var(--color-white);
  color: var(--color-text);
  -webkit-appearance: none;
  transition: border-color 0.2s;
  min-height: 44px;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--color-primary);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.form-divider {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: 16px 0 12px;
}

.form-section-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text-light);
  margin-bottom: 12px;
}

.text-light {
  font-weight: 400;
  opacity: 0.7;
}

.form-hint {
  font-size: 0.8rem;
  color: var(--color-text-light);
  margin-bottom: 12px;
}

.checkbox-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-bottom: 16px;
}

.checkbox-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--color-text);
  cursor: pointer;
  padding: 8px 12px;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  background: var(--color-white);
  transition: all 0.15s;
  -webkit-tap-highlight-color: transparent;
  min-height: 44px;
}

.checkbox-item:active {
  background: var(--color-bg);
}

.checkbox-item input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: var(--color-primary);
  flex-shrink: 0;
}

.section-checks {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.section-check-item {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.section-check-item .checkbox-item {
  border-radius: var(--radius) var(--radius) var(--radius) var(--radius);
}

.section-check-item:has(.section-detail:not([hidden])) .checkbox-item {
  border-radius: var(--radius) var(--radius) 0 0;
  border-bottom: none;
}

.section-detail {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--color-border);
  border-top: none;
  border-radius: 0 0 var(--radius) var(--radius);
  font-size: 0.85rem;
  font-family: var(--font);
  resize: vertical;
  min-height: 44px;
  background: var(--color-bg);
  color: var(--color-text);
}

.section-detail:focus {
  outline: none;
  border-color: var(--color-primary);
}

.refs-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.ref-thumb-wrap {
  position: relative;
  width: 72px;
  height: 72px;
}

.ref-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
}

.ref-thumb-remove {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: none;
  background: rgba(0,0,0,0.6);
  color: #fff;
  font-size: 0.9rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.btn-edit-inline {
  background: none;
  border: none;
  color: var(--color-primary);
  font-size: 0.75rem;
  cursor: pointer;
  padding: 0;
  margin-left: 8px;
  text-decoration: underline;
  font-weight: 400;
}

.edit-inline-actions {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

#edit-description-input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-family: var(--font);
  resize: vertical;
  min-height: 60px;
}

#edit-description-input:focus {
  outline: none;
  border-color: var(--color-primary);
}

.register-container {
  width: 100%;
  max-width: 540px;
}

.error-message {
  color: var(--color-error);
  font-size: 0.85rem;
  margin-top: 8px;
}

/* === Loading === */
.loading {
  text-align: center;
  padding: 48px 16px;
  color: var(--color-text-light);
}

.spinner {
  width: 32px;
  height: 32px;
  border: 3px solid var(--color-border);
  border-top-color: var(--color-primary);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  margin: 0 auto 12px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* === Badges === */
.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 500;
  white-space: nowrap;
}

.badge-sm {
  padding: 2px 8px;
  font-size: 0.7rem;
}

.badge-pending { background: #FFF3CD; color: #856404; }
.badge-progress { background: #CCE5FF; color: #004085; }
.badge-completed { background: #D4EDDA; color: #155724; }
.badge-sent { background: #E2E3F1; color: #383D6E; }
.badge-declined { background: #F8D7DA; color: #721C24; }
.badge-review { background: #FFE8CC; color: #8A5A00; }
.badge-first-review { background: #E8D5F5; color: #5B2D8E; }

/* === Wedding Cards === */
.weddings-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.wedding-card {
  display: block;
  background: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 20px;
  transition: box-shadow 0.2s, transform 0.2s;
  color: var(--color-text);
  text-decoration: none;
}

.wedding-card:active {
  transform: scale(0.98);
}

.wedding-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
}

.wedding-card-header h3 {
  font-size: 1.1rem;
  font-weight: 600;
}

.wedding-card-details {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.detail-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--color-text-light);
}

.detail-icon {
  width: 20px;
  text-align: center;
  flex-shrink: 0;
}

.domain-link {
  color: var(--color-info);
  font-size: 0.8rem;
  word-break: break-all;
}

/* === Invite Link === */
.btn-invite-link {
  background: none;
  border: 1px solid var(--color-info);
  color: var(--color-info);
  font-size: 0.78rem;
  padding: 4px 10px;
  border-radius: 14px;
  cursor: pointer;
  white-space: nowrap;
  min-height: 30px;
  -webkit-tap-highlight-color: transparent;
  transition: all 0.2s;
}

.btn-invite-link:active {
  background: var(--color-info);
  color: var(--color-white);
}

.invite-link-desc {
  font-size: 0.9rem;
  color: var(--color-text-light);
  margin-bottom: 16px;
  line-height: 1.5;
}

.invite-link-box {
  display: flex;
  gap: 8px;
  align-items: stretch;
}

.invite-link-input {
  flex: 1;
  padding: 10px 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-size: 0.8rem;
  font-family: monospace;
  background: var(--color-bg);
  color: var(--color-text);
  min-width: 0;
}

/* === Empty State === */
.empty-state {
  text-align: center;
  padding: 40px 16px;
  color: var(--color-text-light);
}

/* === Tabs === */
.tabs {
  display: flex;
  border-bottom: 2px solid var(--color-border);
  margin-bottom: 20px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.tabs::-webkit-scrollbar {
  display: none;
}

.tab-btn {
  padding: 10px 14px;
  border: none;
  background: none;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-text-light);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  white-space: nowrap;
  transition: all 0.2s;
  -webkit-tap-highlight-color: transparent;
  min-height: 44px;
}

.tab-btn:hover {
  color: var(--color-primary);
}

.tab-btn.active {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
}

.tab-count {
  background: var(--color-border);
  padding: 1px 6px;
  border-radius: 10px;
  font-size: 0.7rem;
  margin-left: 4px;
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
}

.tab-toolbar {
  margin-bottom: 16px;
}

/* === Overview === */
.overview-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.overview-item {
  background: var(--color-white);
  padding: 14px 16px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.overview-item label {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--color-text-light);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.overview-item span,
.overview-item a {
  font-size: 0.95rem;
}

.overview-full {
  grid-column: 1 / -1;
}

/* === Data Table === */
.table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 0 -16px;
  padding: 0 16px;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--color-white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  min-width: 500px;
}

.data-table th,
.data-table td {
  padding: 10px 12px;
  text-align: left;
  font-size: 0.85rem;
}

.data-table th {
  background: var(--color-bg);
  font-weight: 600;
  color: var(--color-text-light);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.data-table tbody tr {
  border-top: 1px solid var(--color-border);
}

.data-table tbody tr:active {
  background: #FDFCFB;
}

/* === Messages === */
.messages-list {
  max-height: 50vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 12px;
  background: var(--color-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.message {
  padding: 10px 14px;
  border-radius: var(--radius);
  max-width: 90%;
}

.message-organizer {
  background: #E8F0E8;
  align-self: flex-end;
}

.message-admin {
  background: #F0EBE5;
  align-self: flex-start;
}

.message-couple {
  background: #E5EBF5;
  align-self: flex-end;
}

.message-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.message-sender {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-primary-dark);
}

.message-time {
  font-size: 0.7rem;
  color: var(--color-text-light);
}

.message-content {
  font-size: 0.9rem;
  white-space: pre-wrap;
  word-break: break-word;
}

.message-media-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.msg-media {
  max-width: 160px;
  max-height: 120px;
  border-radius: 6px;
  object-fit: cover;
  cursor: pointer;
}

.message-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.message-input-wrapper {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.message-input-wrapper textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-size: 1rem;
  font-family: var(--font);
  resize: vertical;
  min-height: 48px;
  -webkit-appearance: none;
}

.message-input-wrapper textarea:focus {
  outline: none;
  border-color: var(--color-primary);
}

.message-form-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
}

.message-form-actions .btn-primary {
  flex: 1;
}

.btn-attach {
  padding: 10px 14px;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  min-height: 44px;
}

.message-attachments {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.attach-item {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 6px 10px;
  font-size: 0.8rem;
}

.attach-thumb {
  width: 32px;
  height: 32px;
  object-fit: cover;
  border-radius: 4px;
}

.attach-file-icon {
  font-size: 1.2rem;
}

.attach-name {
  max-width: 80px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.attach-remove {
  background: none;
  border: none;
  font-size: 1.2rem;
  color: var(--color-text-light);
  cursor: pointer;
  padding: 4px;
  line-height: 1;
  min-width: 28px;
  min-height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* === Media Gallery === */
.media-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.media-card {
  background: var(--color-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  position: relative;
}

.media-delete-btn {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: none;
  background: rgba(0,0,0,0.55);
  color: #fff;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  -webkit-tap-highlight-color: transparent;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
}

.media-delete-btn:active {
  background: var(--color-error);
}

.media-preview {
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  background: #F0EDE8;
  display: flex;
  align-items: center;
  justify-content: center;
}

.media-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-preview video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-file-icon {
  font-size: 2rem;
}

.media-info {
  padding: 8px 10px;
}

.media-name {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.media-desc {
  display: block;
  font-size: 0.7rem;
  color: var(--color-text-light);
  margin-top: 2px;
}

/* === File Input (iOS compatible) === */
.file-input-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.file-input-label {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  border: 2px dashed var(--color-border);
  border-radius: var(--radius);
  background: var(--color-bg);
  color: var(--color-text-light);
  font-size: 0.9rem;
  cursor: pointer;
  text-align: center;
  transition: all 0.2s;
  min-height: 80px;
  -webkit-tap-highlight-color: transparent;
}

.file-input-label:hover,
.file-input-label:active {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.file-input-label.has-file {
  border-color: var(--color-success);
  color: var(--color-success);
  border-style: solid;
  background: #F0F8F0;
}

/* === Progress Bar === */
.progress-bar {
  height: 8px;
  background: var(--color-border);
  border-radius: 4px;
  overflow: hidden;
  margin: 12px 0;
}

.progress-fill {
  height: 100%;
  background: var(--color-primary);
  border-radius: 4px;
  transition: width 0.3s;
  width: 0%;
}

/* === Modals === */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 200;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
}

.modal.open {
  display: flex;
}

.modal-content {
  background: var(--color-white);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  width: 100%;
  max-height: 90vh;
  max-height: 90dvh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 20px 16px;
  padding-bottom: calc(20px + env(safe-area-inset-bottom, 0px));
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.modal-header h3 {
  font-size: 1.1rem;
  font-weight: 600;
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--color-text-light);
  cursor: pointer;
  padding: 8px;
  line-height: 1;
  -webkit-tap-highlight-color: transparent;
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-actions {
  display: flex;
  flex-direction: column-reverse;
  gap: 10px;
  margin-top: 20px;
}

.modal-actions .btn {
  width: 100%;
}

/* ==========================================
   Tablet+ (min-width: 600px)
   ========================================== */
@media (min-width: 600px) {
  .container {
    padding: 20px;
  }

  .weddings-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
  }

  .wedding-card {
    padding: 24px;
  }

  .wedding-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
  }

  .overview-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .media-gallery {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 14px;
  }

  .message {
    max-width: 80%;
  }

  .msg-media {
    max-width: 200px;
    max-height: 160px;
  }

  .message-form {
    flex-direction: row;
    align-items: flex-end;
  }

  .message-input-wrapper {
    flex: 1;
  }

  .message-form-actions {
    justify-content: flex-end;
  }

  .message-form-actions .btn-primary {
    flex: none;
  }

  .modal {
    align-items: center;
    padding: 20px;
  }

  .modal-content {
    max-width: 480px;
    border-radius: var(--radius-lg);
    padding: 24px;
  }

  .modal-actions {
    flex-direction: row;
    justify-content: flex-end;
  }

  .modal-actions .btn {
    width: auto;
  }

  .checkbox-grid {
    grid-template-columns: 1fr 1fr;
  }

  .login-card {
    padding: 40px 32px;
  }

  .tab-btn {
    padding: 12px 20px;
    font-size: 0.9rem;
  }

  .data-table th,
  .data-table td {
    padding: 12px 16px;
    font-size: 0.9rem;
  }
}

/* ==========================================
   Desktop (min-width: 900px)
   ========================================== */
@media (min-width: 900px) {
  .header-content {
    flex-wrap: nowrap;
    height: 60px;
    padding: 0;
    gap: 16px;
  }

  .header-title {
    font-size: 1.1rem;
    order: 0;
    width: auto;
  }

  .header-back {
    order: 0;
  }

  .organizer-name {
    display: inline;
  }

  .container {
    padding: 24px 20px;
  }

  .page-header h2 {
    font-size: 1.5rem;
  }

  .weddings-grid {
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  }

  .wedding-card-header h3 {
    font-size: 1.15rem;
  }

  .overview-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
  }

  .overview-item {
    padding: 16px 20px;
  }

  .messages-list {
    max-height: 400px;
    padding: 16px;
  }

  .media-gallery {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
  }

  .data-table tbody tr:hover {
    background: #FDFCFB;
  }

  .attach-name {
    max-width: 120px;
  }
}
