/* Permits (wave157-permits): the project section + the register.
 * House shapes only — cards, pills and buttons come from styles.css;
 * this file carries the table, the form grid and the filter row. */

.pm-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 12px; }
.pm-h { margin: 0 0 4px; }

.pm-tablewrap { overflow-x: auto; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); }
.pm-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.pm-table th { text-align: left; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: #66707f; padding: 10px 12px; border-bottom: 1px solid var(--line-soft, #e0e5ee); white-space: nowrap; }
.pm-table td { padding: 10px 12px; border-bottom: 1px solid var(--line-soft, #e0e5ee); vertical-align: middle; }
.pm-table tbody tr:last-child td { border-bottom: none; }

.pm-portal { color: var(--accent); font-weight: 600; white-space: nowrap; text-decoration: none; }
.pm-portal:hover { text-decoration: underline; }
.pm-projlink { background: none; border: none; padding: 0; font: inherit; font-weight: 600; color: var(--accent); cursor: pointer; text-align: left; }
.pm-projlink:hover { text-decoration: underline; }

.pm-form { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; margin-bottom: 16px; }
.pm-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; }
.pm-form label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; font-weight: 600; color: var(--accent-dark); }
.pm-form input, .pm-form select, .pm-form textarea { font: inherit; font-weight: 400; padding: 8px 10px; border: 1px solid var(--line-soft, #e0e5ee); border-radius: 8px; background: #fff; color: inherit; }
.pm-notes { margin-top: 12px; }
.pm-actions { display: flex; align-items: center; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.pm-danger { color: var(--danger); margin-left: auto; }

.pm-filters { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 14px; }
.pm-filters label { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--accent-dark); }
.pm-filters select { font: inherit; font-weight: 400; padding: 7px 10px; border: 1px solid var(--line-soft, #e0e5ee); border-radius: 8px; background: #fff; }

/* wave230-permits: the documents strip + the editor's documents block */
.pm-docs-zone { margin: 4px 0 10px; }
.pm-docs { margin-top: 12px; }
.pm-docs-h { display: block; font-weight: 600; margin-bottom: 2px; }
.pm-docs p { margin: 0 0 8px; }
